Jump to content

Random Security Lights


Vortec4800

Recommended Posts

I'd like to have some of the lights in my house randomly turn on and off when I'm away between sunset and midnight. Does anyone have a good algorithm to do this? I've already got the "when I'm away" part working, and I have some basic lights working, I just want the best way to do it.

Link to comment

If you add a Wait command there is a Random option.

 

Clipped example:

If
       On Never
       Time is Last Run Time for 'Cycle Outside Lights'

Then
       Repeat Every  1 second
          Set Scene 'XBlue XMas Lights' On
          Wait  5 minutes 
          Wait  3 minutes  (Random)
          Set Scene 'XBlue and Red Lights' On
          Wait 20 seconds

Else
  - No Actions - (To add one, press 'Action')

 

Rand

Link to comment

Archived

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


×
×
  • Create New...