Check Garage Door at a specified time and close it if it's open, LUUP?

Thanks up front as I’m sure this has probably been answered. The words I’m searching for are not showing me what I’m looking for.

Here is what I have.

My Vera Lite is tied to my GE Networx Panel. All of this is fine. I have a door contact on my garage door as a zone on my Alarm panel. I have also soldered Remotec Zwave dry contact switch onto my garage door opener. The VeraLite can tell if the door is open or closed. Also the Remotec switch works perfectly. I do have an automatic scene that turns the Remotec off imediatley once it’s turned on. The 1-2 sec delay is long enough to act as though someone is pushing the garage door opener without holding it down.

With what I hope is enough info this is what I’m wanting to do:

At a specified time and only if the garage door is open I want it to close. I have Combination switches installed for other tools so I added another one thinking I could set it based on the sensor and then on time, but I don’t see time as an option. I then installed the Virtual Clock app to set an alarm and then see if the Combination switch could check that and it can’t. I know I can build a scene based on a trigger or on a schedule but that is one or the other, not both being true, unless I’m wrong about that. So I’m thinking my only option is LUUP code but I’m not real familiar with that.

Thoughts? ???

Thanks to everyone.

Have you searched the forum? There are already a few threads discussing this. Have a look at the pleg plugin.

  • Garrett

Garrett,

I have searched for some key words that I thought would pull this up. I haven’t looked up Pleg and will do that now. Thanks.

See http://forum.micasaverde.com/index.php?topic=12837.0

  • Garrett

That link was great. However neither using the schedule under PLEG or setting a condition like “(22:00:00; NOW) and GarageDoorOpened” is working. The PLEG device does see the Garage Door opened in either setup but it never shows true on the time. I also have the PLEG running the Action to close the Garage Door. Is it the Action that is not working? Also why would you want to use “22:00:00;NOW” instead of the Schedules under an input?

The syntax:
(22:00:00; NOW)

Uses the implicit periodic schedule called NOW, It runns every minute. So the above will run when the 1 minute timer passes 10:00 PM. There is more than 1 way to anything in programming!

You need to arm your PLEG for the actions to fire.

Also, the Status report will NOT show the update for conditions that are triggered by NOW … there is a reason. Put another trigger in there … even if you do not use it in your conditions. Then trigger it before you do a Status command.

I use the Countdown plugin. Create a scene where it starts when the door is open, and another where it gets canceled when the door is closed. Then another to do your action (in my case, notify me; in yours, close the garage door) when the Countdown hits the specified duration. You can also make this scene active only at certain times of the day.

Thanks guys. Got it working. I was being dumb. Honestly I thought the Arm and Bypass buttons were similar to what my sensors show from my alarm panel and were more of a status than an option. Once I Armed my event it’s working perfectly. I wasn’t even thinking about doing that. Thanks to everyone.