Jump to content

"Vacation" Program


tpolito

Recommended Posts

Posted

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?

Posted
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

Guest
This topic is now closed to further replies.

×
×
  • Create New...