stillen_i30 Posted September 11, 2018 Posted September 11, 2018 I would like some of the lights outside to fade up when I open my garage door (after it gets dark outside). These lights may already be running on a timer and be at a very dim level. I want them to stay on full brightness for 10 mins (regardless of whether the garage door continues to remain open or closes during that time frame). I have a program that works to turn on the lights (whether I use a variable for the garage door or an insteon status), however, if the door is closed within 10 mins, the program nullifies suddenly and the "Then" portion stops running. Then, these outside lights end up staying on full brightness forever. How do I get the program to continue to stick with running the "then" portion even if the door's status changes within the 10 mins? I have attached the two programs below: Outside Recessed Lights On - [ID 0019][Parent 000D] If From Sunset + 5 seconds To Sunrise (next day) And $s.GarageDoorStatus is 1 Then Set 'Outside Lights / Outside Foyer' Fade Up Set 'Outside Lights / Outside Garage' Fade Up Wait 10 minutes Run Program 'Recessed Lights Timer' (If) Else - No Actions - (To add one, press 'Action') _________________ Recessed Lights Timer - [ID 0013][Parent 0003] If From Sunset + 5 seconds To 1:30:00AM (next day) Then Set 'Outside Lights / Outside Foyer' On 15% Set 'Outside Lights / Outside Garage' On 15% Else Set 'Outside Lights / Recessed Lights Outside' Off
kclenden Posted September 11, 2018 Posted September 11, 2018 The WAIT statement executes the specified wait, but also allows the IF to be reevaluated any time one of its conditions changes. So you need to move the commands under the THEN to another program that has no conditions in its IF and call that program from your existing THEN.
stillen_i30 Posted September 11, 2018 Author Posted September 11, 2018 Incredibly dumb of me, I can't believe I have my other programs set like that and I didn't think to do that with this one Thanks
Recommended Posts