Jump to content

"Vacation" Program


tpolito

Recommended Posts

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?

Link to comment
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

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...