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.

Conditions based on both Time and Sunset

Featured Replies

Posted

I am changing to Time of Day billing with Southern California Edison, and want to change my existing "Sunset" program (which operates a dozen lights) so that a few turn on at sunset, regardless of the time, but the remainder only turn on when the sun has set AND it is after 6:00 PM (when electrical rates are cheaper). How do I to this?

 

My existing program merely turns the lights on at sunset (to the appropriate levels) regardless of the time of day.

 

Thanks!

I don't have the program in front of me but it is very easy. I'm a newbe but what I would do is

 

If:

(

Time is Sunset

And Time is >6:00:00Pm

)

 

Then:

Set 'Yourlights' On

Hi mitch236,

 

That will work if sunset is after 6PM.

 

mhornak,

 

Create a program called Sunset Status

If
       From    Sunset 
       To      Sunrise (next day)

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

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

 

Make a folder with your Night Rates.

Folder Conditions for 'Night Rates'
Add conditions to limit when programs in this folder are allowed to run.



If
       From     6:00:00PM
       To       6:00:00AM (next day)

Then
  Allow the programs in this folder to run.

 

In this folder another program, Outside Lights On

If
       Program 'Sunset Status' is True
   And Folder  'Night Rates' is True

Then
       Set Scene 'OL Evening' On

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

 

By using the conditions of both the folder and the sunset the program will Run Then when both become true.

 

Rand

I see the logic.

 

But what if I changed my program to say:

 

If:

(

Time is From Sunset

To Sunrise (same day)

And Time is >6:00:00Pm

)

 

Then:

Set 'Yourlights' On

  • Author

Thanks very much guys. This helps a lot. I'll tweak it a bit, as I don't need the 6:00 PM qualifier on weekends, as rates on weekends are night rates.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.