Jump to content

One KPL button, two scenes


marvel

Recommended Posts

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.

Posted

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.

×
×
  • Create New...