Vortec4800 Posted June 3, 2008 Posted June 3, 2008 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.
bjdraw Posted June 3, 2008 Posted June 3, 2008 I've thought about doing this, but instead of being random I thought it'd make more sense to mimic my habits. So turn on the living room lights from sunset to 10pm, turn on bedroom lights from 10pm until 10:30 etc.
Sub-Routine Posted June 3, 2008 Posted June 3, 2008 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
Recommended Posts