rmazzaro Posted November 16, 2016 Posted November 16, 2016 I'm wondering if there's a way to create a daily (somewhat) random time to shut off lights using the "sunset time" + random number of minutes from 1-30 minutes. For example, if the sunset time is 7:00 PM, have the controller turn off the lights somewhere between 7:01 and 7:30. Then the following day perform the same thing...using a random number between 1 and 30. Any thoughts or ideas?
Scottmichaelj Posted November 16, 2016 Posted November 16, 2016 I'm wondering if there's a way to create a daily (somewhat) random time to shut off lights using the "sunset time" + random number of minutes from 1-30 minutes. For example, if the sunset time is 7:00 PM, have the controller turn off the lights somewhere between 7:01 and 7:30. Then the following day perform the same thing...using a random number between 1 and 30. Any thoughts or ideas? This is in the program schedule IF time already. Add your max random minutes before or after sunset and click the random button. Done.
rmazzaro Posted November 16, 2016 Author Posted November 16, 2016 Thanks Scott and thanks Bleepblorp! I guess I was thinking this would be more complicated. But in [Action], when [Wait] is selected, there's a "[ ] Random" radio box... Perfect!
KeviNH Posted November 19, 2016 Posted November 19, 2016 Specifically, you want a program that has Schedule set to "At Sunset", and has no other conditions, then the action in the program would be Wait ... Random (which may wait as briefly as zero seconds). If you have any other conditions set in the If clause, keep in mind that program Conditions are re-tested after a Wait or while Repeating, which could cause statements after the Wait not to be executed.
Recommended Posts