tpolito Posted January 18, 2012 Posted January 18, 2012 I want to set a program that anytime my Elk is armed in away mode, and the time is between sunset and 11:30, a light randomly turns on. Here is the program that I wrote: If From Sunset To 11:30:00PM (same day) And Elk Area 'Alarm' 'Armed State' is Armed Away Then Set Scene 'Lights' On Wait 20 minutes Wait 45 minutes (Random) Set Scene 'Lights' Off Else Set Scene 'Lights' Off The problem is that if we are home all day and have the lights on, once sunset hits, the ISY sees that the Alarm state is disarmed and initiates the else. For some reason I have having troube thinking through the logic. If I remove the else statement altogether, and we go out of town for a couple days, and that 11:30 hits, and the lights are still on. Would they turn off after the wait period even though the program conditions are no longer true? Or would they stay in their current state once 11:30 hits?
oberkc Posted January 18, 2012 Posted January 18, 2012 If I remove the else statement altogether, and we go out of town for a couple days, and that 11:30 hits, and the lights are still on. Would they turn off after the wait period even though the program conditions are no longer true? No. They would stay in their current status. I am not sure that I fully understand your requirements, but what about removing the else path, then creating a second program: if time is 1130 then set scene "lights" off else
apostolakisl Posted January 18, 2012 Posted January 18, 2012 probably would want your second program to also have "and elk is armed away" as a provision, unless you want it to shut the lights off at 1130 even when you are home.
tpolito Posted January 18, 2012 Author Posted January 18, 2012 Thanks. I think that will do it. Pretty obvious answer I guess I was just over complicating it in my head
Recommended Posts