Jump to content

Using Sunset + Random minutes


rmazzaro

Recommended Posts

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?

Link to comment

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.

Link to comment

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.

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.6k
    • Total Posts
      367.9k
×
×
  • Create New...