- Posted on
Thu Jan 25, 2018 11:51 am
-
johnpolasek
offline
-
- Posts: 911
- Joined: Aug 05, 2011
- Location: Aggieland, Texas
Lots of ways to flay this feline; I had a similar issue with my garage light and solved it with a variable, an action group, and 2 triggers;
Create a variable called "GarageStayOn" initially set to false.
Create a Manual GarageOn action group that turns the garage light on, sets the variable to true and cancel delayed actions in the Door open trigger.
Create the door open trigger that turns the light on with a condition that GarageStayOn is false and an auto off after 15 minutes
Create a second trigger on the Garage Light device which sets GarageStayOn to false when the device becomes equal to off
If the door has been opened and turned the light on and then you call the manual group, it cancels the auto off, so the light stays on till something (manual hit the switch, go to sleep at midnight schedule, Indigo Command, etc) turns it off.
If you turn the light on with the action group and then the door is opened, those actions on with delayed off never take pl;ace because the light is already on and the variable is true.
When anything in your system turns the light off, the variable quits blocking the open door trigger.
I think that's what you are trying to accomplish, right?