KPL Led's

I’ve searched the forum and seen a few topics on controlling a KPL led’s however, I believe I’m missing something. I have an 8 button KPL and I’d like to control the led’s with scenes. For example, turn off the led of “all on” when I execute/push button “all off”. I’m sure it’s probably a simple luup code to add in the creation of the scene but I could use some help with that. I’ve also tried a few things with the “Advanced” tab to determine if the scene is active and wondering is there a way to turn off the led when the scene becomes inactive?

This requires the use of Altsteon plugin and is not compatible with the built in insteon support in Vera. Have a look here:

http://forum.micasaverde.com/index.php/topic,15248.0.html

  • Garrett

All of this assume you are using Altsteon.

If you want to turn on a single button LED:
Scene → Advanced → Select desired KPL, hit Add
Choose “SetLedIndiv” then enter the KPL button (1-8) and a value (1=On, 0=Off)

If you want to turn on a group of LED:
Scene → Advanced → Select desired KPL, hit Add
Choose “SetLedGroup” then enter the values. More info here.

[quote=“Teammac, post:1, topic:176674”]I’ve also tried a few things with the “Advanced” tab to determine if the scene is active and wondering is there a way to turn off the led when the scene becomes inactive?[/quote]Unfortunately, it possible out of the box with Altsteon, that I know of. Vera doesn’t know there are scene buttons lights to turn on and off, so it won’t. I have thought about righting some LUUP code to handle this, but haven’t yet.

Sorry, I should’ve mentioned I was running Altsteon in the first post…Thanks PurdueGuy, that worked!

Is there a way to turn the backlight on/off at certain times of the day? Basically I want the create a scene which turns on the backlight on at night and off in the day. I tried the “advance” section adding the keypad and changing the value of the “setbacklighttarget” however, that didn’t work. Thanks

[quote=“Teammac, post:5, topic:176674”]Is there a way to turn the backlight on/off at certain times of the day? Basically I want the create a scene which turns on the backlight on at night and off in the day. I tried the “advance” section adding the keypad and changing the value of the “setbacklighttarget” however, that didn’t work. Thanks[/quote]I just tried, and it works. You have to set it to “1” or “0”
For KPLs, chose the KPL itself (not the scene controller), then SetBacklightTarget, then enter 1 or 0 as the target.

When testing from the command line, you would use aa.bb.cc. set_led_backlight on aa.bb.cc. set_led_backlight off

That worked. I had to turn on the backlight at the keypad manually by holding buttons 3 and 6 at the same time. The keypad responds to the 0 1 commands however, I loose the individual led button controls when the backlight is off. When the backlight is on, the individual buttons led’s respond as normal.

The backlight settings determines whether you see any lights at all.

You can turn down the brightness of the keypad such that only buttons that are “on” have any illumination.

When the backlight is on and I activate a scene, that button led will illuminate brighter showing that button is on. When I turn off the backlight in the UI, none of the button led’s will turn on. If I manually turn off the backlight at the keypadlinc by pressing buttons 3 and 6, the individual led’s begin working again. Basically everything works fine when I turn on backlight in the UI, when I turn if off in the UI, no button led’s work.

I guess I am a little confused.

As far as I have used it, the backlight can be on or off.

If the backlight is on, it can be set to a number of brightness levels. At the lowest level, only those buttons that are “on/active” will have any light behind them. All others will be appear off (dark). If you are not at the dimmest setting, all the buttons will glow at a uniform level, and brighten when an individual button is “on/active”.

If the backlight is off, no buttons at all will be lit, ever.

Is this not what you are seeing?

Yes, that’s what I’m seeing. What I’m trying to accomplish is at night have the backlight on, day backlight off. Either night or day, whatever scene is active, the corresponding button led I want to illuminate. I’m thinking I need a value other than 1 or 0/on or off? Because when I enter 0 for off, I get no button illuminations. Maybe a value for that lowest level where only buttons that are active have light?

I haven’t looked into setting the backlight level via Altsteon, if that is implemented right now.
I’ll look into that later today.

Sorry I didn’t get to this sooner.

You can set the backlight level via the command line already:

aa.bb.cc set_global_led_brightness <BUTTON> <LEVEL>

can be 1-8 (any button, doesn’t matter, since it is global).
can be 0-127*

The manuals say 32 levels, so you will only notice changes for every 4 steps, and they are subtle. I couldn’t notice a change every 16 levels myself, so there might only be 8 levels.

Full brightness:

aa.bb.cc set_global_led_brightness 1 127

Medium brightness:

aa.bb.cc set_global_led_brightness 1 63

Off:

aa.bb.cc set_global_led_brightness 1 0

Thank you again, I tested it in cmd and works. Sorry for the newbie question in advance but, how do I run this in a scene in the UI?

It is not in the LUA files to put it in a scene. I will check into adding that.

I just checked in the changes. Now for KPLs, after you select your device, you can choose SetKPLBrightness and enter a value of 0-127.

These will be included in the development builds that are generated at or after: Thu Sep 5 23:01:57 PDT 2013

*Note: added build date

I think I’m missing something, I uploaded the new files and did a reboot but SetKPLBrightness isn’t showing up as an option in the UI. Just to clarify, which LUA files need to be updated?

You need to upload:

[ul][li]I_InsteonPlm.xml[/li]
[li]S_InsteonOptions.xml[/li]
[li]I_InsteonDimmerKpl.xml[/li]
[li]I_InsteonRelayKpl.xml[/li][/ul]

Still no SetKPLBrightness…

Verify that in I_InsteonDimmerKpl.xml (line 153), I_InsteonRelayKpl.xml (line 121), & S_InsteonOptions.xml (line 171) that you have an entry for:<name>SetKPLBrightness</name>

Check in I_InsteonPlm.xml (line 208) that you have: function setKPLBrightness(lul_device, lul_settings)

Be sure are selecting the dimmer/switch in the Advanced menu, and not the scene controller.