Garage Door Plugin and using PLEG to check if the door is open - Issues

Hi All,

I’ve been battling a issue for a bit and have searched/read through a lot of posts but I’m thinking a little bit of help might be in order for me.

I’m running UI5 on a Vera Lite. I’m using the Garage Door Plugin successfully with a Remotec ZFM-80 and a Aeotec Door Sensor. So far, if I keep this alone then everything works as how I want it. Use the Plugin and still have door button and remotes working.

However, I’m trying to determine the best way to solve my issue. I want the system to check if my garage door is open at several times during the night, (i.e. so i don’t go to bed with it open). I’ve read a bunch of threads on closing it after some period of open time. That might work but I would also like to check at 9pm, 10pm and 11pm to see if it is open and then use the Garage Door Plugin to close it.

I started off building 3 schedules and triggers and conditions and got all screwed up. It would appear to work but alas would fail.

My most recent attempt was to go simple. In the input section, I created a schedule for 9pm for 7 days, then a device properties to see if the sensor was tripped. Then created a condition on GarageDoorOpen AND NOW. (Thinking it would evaluate it based on the schedule at 9pm). Then the action would be to run the Garage Door Plugin.

Tested it last night and seemed to work. However, this morning I was leaving and pressed the garage button and it would start opening, then immediately stop. I would that the Garage Door Check scene was conflicting with the Garage Door plugin and the door would trip and Garage Door would try to close it.

Garage Door Check
Device ID: 532013-11-24 15:05:12.242 PLC Version: 5.4
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay
Garage9pm Weekly 21:00:00 1,2,3,4,5,6,7 None None None
Device Properties
Name Device Name Device Variable
GarageDoorOpen Garage Door Sensor Tripped
Conditions
Name Expression
_c1leftopen GarageDoorOpen AND NOW
Actions
Actions for Condition: _c1leftopen
Immediate
Device Action Arguments
Garage Door SetTarget newTargetValue=1

Please point me in the right direction.

Thanks.

Dennis

Your close … you confused a few things.
To fix your setup change your condition _c1leftopen
to

GarageDoorOpen AND Garage9pm

[hr]
The keyoword NOW is the equivalent of a 1 minute interval timer … and has nothing to do with any timer that you may create. So basically you garage would shut down with 1 minute of it being open … whenever the NOW timer fired!

Thanks Richard! What’s the most efficient way to add checks at other times? Create a Garage9pm, Garage10pm and Garage 11pm?

Then is the logic using a OR? Would it look like the following?

(GarageDoorOpen AND Garage9pm) OR (GarageDoorOpen AND Garage10pm) OR (GarageDoorOpen AND Garage11pm)

Or is it better to Check at 9pm and then leverage a timer, say check every 15 minutes?

The above questions are more for me to understand the logic of it. What’s the best method in your opinion to not let your garage door be open at night?

Thanks for all the help.

Dennis

Setup two timers, one for the duration of testing:
NightInterval: On at 8:59 PM every day, Off every day at 8:01 AM.
CheckInterval: Every 30 Minutes

Then your condition would be:
GarageDoorOpen and NightInterval and CheckInterval

That’s more elegant.

Thanks.