Jump to content

Best way to use non-toggle KPL button with LED always off?


swbrains

Recommended Posts

Posted

Hi,

 

Here's what I'd like to do, and I'm wondering what the best (cleanest) way is to accomplish it:

 

I have a 6-button KPL. One of the sub-buttons (say Button 'B') is being used to turn on a scene. Normally, I could just put Button B into the scene as a controller and set it to Toggle or Non-Toggle ON and it would control the scene. In my case, I want the button to always turn the scene on when pressed, so I selected Non-Toggle ON as the toggle mode. It works fine and turns the scene on whenever pressed.

 

The problem (for me) is that the button's LED is always on. I would like the button's LED to always be off (or at the same level as the OFF level), kind of the way it works when you set the button to Non-Toggle OFF; that is, it flashes when pressed but then returns to an off state after the scene action is taken.

 

I ended up writing a program that says:

if 
 status 'button b' is off
 or status 'button b' is on
then
 wait 2 seconds
 set scene 'button b led' to fast off

'button b led' is a scene that has only 'button b' as a responder in it so I can control the led for that button.

 

This works: It activates the controlled scene and then turns off the button's LED but seems kind of clunky. Is there a better, simpler way to achieve what I want that I'm just not seeing?

 

Thanks!

Guest
This topic is now closed to further replies.

×
×
  • Create New...