Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using Sunset + Random minutes

Featured Replies

Posted

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?

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.

  • Author

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!

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.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.