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.

One KPL button, two scenes

Featured Replies

Posted

I have an "evening" KPL button that I'd like to grant three states:

 

1. One press to turn on my "evening" scene of half a dozen different lights.

2. A second press to activate a second scene (really just a much dimmer version of the same scene).

3. Third press to off.

 

So, two questions:

 

1. I'm imagining a solution consisting of a state variable for that button and executing the right scene based on that state. Does this sound like the best approach? Are there better ways? Since the KPL will send an off on the second press, I'm going to have to do something to flip it back on. I assume just turning it on in the second scene will take care of this?

 

2. Since the scenes are the same, differing only in dim levels, would you advise I use multiple Adjust Scene commands instead of two different scenes?

 

Any advice or ideas on how to approach this would be appreciated.

There are posts in here somewhere describing doing what you are doing with variables. But basically it is something like this:

 

If

$i.3scenes = 0

And

Control kpl is switched on

Then

set scene x on

set $i.3scenes = 1

 

If

$i.3scenes = 1

And

Control kpl is switched on

Then

set scene y on

set $i.3scenes =2

 

If

$i.3scenes = 2

And

control kpl is switched on

Then

set scene y off

set $i.3scenes = 0

 

You need to change the kpl button settings to always turn "on" with a button press. Of course your 3rd option then will have trouble. You can use your programs to turn the button on or off even when set to always turn on with a press but there will be a delay. For example, if you have the kpl button always set to turn on with a press, and you get to your 3rd press where a program shuts things off, when you press the button, the program will trigger, but it will take a second or two before the program executes and everything shuts off (the entire scene which I would include the kpl button in).

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.