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.

Sunrise Sunset or Light level - Help

Featured Replies

Posted

All,

 

I have the following program

 

If

From Sunset +30 min

To Sunrise - 30 min (next day)

or Module climate light <=5

 

Then

Set lights on

Else

Set lights off

 

The issue is it looks like to light turn off all the time based on light level rather than 30 min before sunrise, any help would be appreciated.

Have you tried a different light level to see if it better matches your expectaions?

  • Author
Have you tried a different light level to see if it better matches your expectaions?

 

I am happy with the light level when it works on its own, however I want to combine the two for darker days. Currently my sunrise is at 5:08 am and the lights turn off at 7:45 not at 4:38. So I am not sure what is going on. The intent is to turn off based on time (sunrise) or light level. I have determined that the lights are turning off based on the last run time, I assume this is ok as nothing else should be triggered and/or trying to run this program ?

Ah! So it is actually PASSING sunrise and waiting until the light level kicks in?

 

I can see why your program does this. BOTH conditions (time and dark) must be FALSE for the program to be false. If time is sunrise-30 while it is still dark, the program will remain TRUE.

 

Without thinking too much about this, you may need to break into two programs

 

If

time is sunset

or it is dark

then

turn lights on

 

if

time is sunrise

or it is light

then

turn lights off

  • Author

I will give this a try. On a side note I just looked at the status again and it last ran at 12:30, obviously there was enough light, any ideas ?

Yes, I do have an idea. I suspect that the lighting levevs continue to change over the morning (and evenings). Each change triggers the program. In your case it was last triggered at 12:30. The status was likely already false, so the program probably sent an OFF command to lights that were already off.

 

That sort of thing probably happens several times each morning, and each night.

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.