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.

Why does this keep setting Night scene????

Featured Replies

Posted

I am trying to create a simple away button on a KPL. The button is set to non-toggle mode with LED off. When you press the button I want it to check if it's daytime or night time and set the appropriate scene. Problem is, whenever it's sunset, it always sets the Away Night scene.

 

If

 

Control 'L-KPL C - Goodbye' is switched Off

 

And From Sunrise

 

To Sunset (same day)

 

 

 

Then

 

Set Scene 'Away Day' On

 

 

 

Else

 

Set Scene 'Away Night' On

Hello retsell,

 

The problem is:

You have a non-toggle mode and thus the Control will never ever change its state from Switched Off to anything else (after the first time you switch it off, the state will never ever change). Therefore, your condition amounts to evaluating whether or not it's day time.

 

What you might want to consider is to make this button toggle and use the the program to set its status (you have to put the button inside a scene as a responder) when it's day time.

 

With kind regards,

Michel

 

I am trying to create a simple away button on a KPL. The button is set to non-toggle mode with LED off. When you press the button I want it to check if it's daytime or night time and set the appropriate scene. Problem is, whenever it's sunset, it always sets the Away Night scene.

 

If

 

Control 'L-KPL C - Goodbye' is switched Off

 

And From Sunrise

 

To Sunset (same day)

 

 

 

Then

 

Set Scene 'Away Day' On

 

 

 

Else

 

Set Scene 'Away Night' On

You could also just use two programs:

 

If
       Control 'L-KPL C - Goodbye' is switched Off
   And From    Sunset
       To      Sunrise  (next day)

Then
       Set Scene 'Away Night' On

Else
       - No Actions -

 

If
       Control 'L-KPL C - Goodbye' is switched Off
   And From    Sunrise
       To      Sunset  (same day)

Then
       Set Scene 'Away Day' On

Else
       - No Actions -

  • Author

I ended up creating 2 programs like you suggested for now...

Create an account or sign in to comment

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.