Jump to content

need help setting up a vacation mode


stealle

Recommended Posts

Posted (edited)

I'm just getting started with my new ISY. I only have about Insteon 6 switches installed. I'm going on a vacation. The outside lights are already setup to do the usual sunset on / sunrise off program.  I'd like to setup my master bedroom light to come on at random times to give a little bit of a lived in look in the evenings. Can I get some constructive criticism on my program below.  I'm leaving in the morning so I won't have much time to trial this program.  What I have below, I think, will turn on the master bedroom light for at least 11 minutes but it could be up to 30 minutes then turn off the master light for at least 11 minutes to 30 minutes.  This will repeat from sunset until 11:59pm.  I realize that for now I will have to manually start this program when I leave and disable it when I return. 

Should I have the then "repeat every 0 seconds" at the beginning or the end of the list of then commands? Do I even need the repeat every 0 seconds" command? Will it repeat on its own? 

Do I even need an "else" command? Is it serving a purpose.  Seems like that could just be left blank.  

Vacation - [ID 0007][Parent 0001]

If
        From    Sunset 
        To      11:59:00PM (same day)
 
Then
        Repeat Every  0 seconds
           Set 'Master / Master Light' On
           Wait  10 minutes 
           Wait  20 minutes  (Random)
           Set 'Master / Master Light' Off
           Wait  10 minutes 
           Wait  20 minutes  (Random)
 
Else
        Set 'Master / Master Light' Off
 

Edited by stealle
Posted (edited)
19 hours ago, stealle said:

I'm just getting started with my new ISY. I only have about Insteon 6 switches installed. I'm going on a vacation. The outside lights are already setup to do the usual sunset on / sunrise off program.  I'd like to setup my master bedroom light to come on at random times to give a little bit of a lived in look in the evenings. Can I get some constructive criticism on my program below.  I'm leaving in the morning so I won't have much time to trial this program.  What I have below, I think, will turn on the master bedroom light for at least 11 minutes but it could be up to 30 minutes then turn off the master light for at least 11 minutes to 30 minutes.  This will repeat from sunset until 11:59pm.  I realize that for now I will have to manually start this program when I leave and disable it when I return. 

Should I have the then "repeat every 0 seconds" at the beginning or the end of the list of then commands? Do I even need the repeat every 0 seconds" command? Will it repeat on its own? 

Do I even need an "else" command? Is it serving a purpose.  Seems like that could just be left blank.  

Vacation - [ID 0007][Parent 0001]

If
        From    Sunset 
        To      11:59:00PM (same day)
 
Then
        Repeat Every  0 seconds
           Set 'Master / Master Light' On
           Wait  10 minutes 
           Wait  20 minutes  (Random)
           Set 'Master / Master Light' Off
           Wait  10 minutes 
           Wait  20 minutes  (Random)
 
Else
        Set 'Master / Master Light' Off
 

My preference would be to use multiple time line triggers with a random time element. No looping is needed.
Add more lines to the If section to simulate real life  little better.

 

Your repeats will be disabled at the end of the time frame and may leave lights on at 11:59. In your program, the Else is needed.

Fake home - [ID 0012][Parent 0001]

If
        Time is Sunset  +  5 hours 
     Or On Sat, Mon, Wed
        Time is Sunset  +  1 hour 
     Or On Sun, Tue, Thu, Fri
        Time is Sunset  +  2 hours 

 
Then
        Wait  2 hours  (Random)
        Run Program 'Fake TV and Bed' (If)
 
Else
   - No Actions - (To add one, press 'Action')

 

Edited by larryllix
Corrected logic Or for And
  • Like 1
Guest
This topic is now closed to further replies.

  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...