JerseyJohn Posted March 16, 2017 Share Posted March 16, 2017 Hello I'd like the garage to stay on for 5 minutes after the garage door opens and then turn off so, I've created the program below. The problem is that the light comes on when the door opens but doesn't turn off. The events are door opens; light comes on; door closes; light continues to stay on indefinitely. Any ideas? If Status "Garage Door-Sensor' is On Then Set 'Garage Near' On Wait 5 minutes Set 'Garage Near' Off Else - No Actions - (To add one, press 'Action') Thanks, John Link to comment
Teken Posted March 16, 2017 Share Posted March 16, 2017 Hello John, Is the light from the GDO unit motor or a light fixture attached to the home? Link to comment
KeviNH Posted March 16, 2017 Share Posted March 16, 2017 (edited) The problem is that the light comes on when the door opens but doesn't turn off. The events are door opens; light comes on; door closes; light continues to stay on indefinitely. Any ideas?The problem is that when "Garage Door-Sensor' changes status to Off while the wait is in progress; this event immediately causes the program to be re-evaluated. Because it is false, it stops the wait and the program is ended before it can get to the "Off" command. Here's a quick-and-dirty workaround to ensure the light gets turned off: If Status "Garage Door-Sensor' is On Then Set 'Garage Near' On Wait 5 minutes Set 'Garage Near' Off Else Wait 5 minutes Set 'Garage Near' Off There are cleaner ways to accomplish exactly what you want, but all the approaches I know of require creating a second program. Edited March 16, 2017 by KeviNH Link to comment
oberkc Posted March 17, 2017 Share Posted March 17, 2017 I think KeviNH nailed the problem. There may be an alternative solution to the "second program" approach. Try using "control" rather than "status" for the garage door sensor condition. (Suggested ELSE path not needed.) Link to comment
JerseyJohn Posted March 17, 2017 Author Share Posted March 17, 2017 Thank you all so much. I noticed today that when the GD was left open that the light went off after 5 mins so that reinforced the idea that the wait was being interrupted by the close. I changed "status" to "control" as per oberkc and that did the trick Link to comment
Recommended Posts