Turning on buttons on KeyPadLinc

Reading through http://forum.micasaverde.com/index.php/topic,14967.msg113598.html , I am trying to accomplish the same thing. My KeyPadLinc Dimmer is Subcat 09, thus I updated I_InsteonPlm.xml to include ‘09’, but I saw some mention in this other post that there may be other software that I need to update? I am using the latest build of 0.8. I tried the Dev build, but couldn’t get that working at all.

I’m really interested in sending the set_button_led to button A of the 6-button KPL at the same time that I trigger my lamplinc; but for simplicity I’d be willing to settle for the backlight option that was suggested. To this end. I’ve tried sending codes to the KPL from within altsteon_cli, and none work other than info. I’ve tried ‘on’, ‘off’, ‘set_button_led 1 5’, ‘set_led_backlight on’, etc.

I’d be very grateful if someone could share with me what I might be missing. I’ve spent three days working on this one issue, and have learned a lot about Altseon, but am just out of ideas. On a side note, I did test that this scenario works with HouseLinc software, thus confirmed that none of the issues are with interference, etc.

Cat 0x01/subcat 0x09 are already supported as KPLs.

When you do “aa.bb.cc info” what do you get back?

If on and off won’t work, there is more to it than missing support for that subcat (since all cat 0x01 should work for on/off, regardless of subcat).

Thanks for the quick response, and the incredible work you guys are doing on this interface! When you mention that Cat 0x01/subcat 0x09 is already supported, is it just within the daemon? I ask because the I_InsteonPlm.xml file needed to be updated to include Subcat 09 for DevCat 01, as mentioned in that posting.

Cmd : 07.D6.8C info
07.D6.8C:0007,02,01,09,29 - DevCat : 01 SubCat : 09 Ver : 29

07.D6.8C:001A,02 - Program lock is off.
07.D6.8C:0018,02 - LED off during transmit.
07.D6.8C:0016,02 - Resume dim disabled.
07.D6.8C:0022,02,06 - Button density is 6.
07.D6.8C:0012,02 - Backlight is on.
07.D6.8C:0015,02 - Key beep is off.

I did finally get the on command to work, though I needed to send the on command 3 times, waiting about 30 seconds between each try. With the exception of the time that it turned on, there was no meaningful response from the daemon - just updates about other switches being on or off.

Cmd : 07.D6.8C on

Not having much luck getting it to turn off.

Cmd : 07.D6.8C off
07.D6.8C:0024,02,FF - Light brightness is 255.

Sorry, you’re right, I looked in the development build. It is supported there.
What issues did you have with the development build?

As far as the on/off is concerned, if it works sometimes, but not always, I would think that is a range/phase issue. Can you get the PLM closer to the KPL? Or on the same power leg?

Regarding the development build, even that copy of I_InsteonPlm.xml doesn’t contain the subcat = 09. I assume you are suggesting that the daemon is updated, but this xml still needs to be manually updated? See below for the code excerpt:

elseif (ddevcat == 0x01) then
local dsubcat = devtype_lookup_table[devname].subcat
– luup.log("Subcat is " … dsubcat)
if ((dsubcat == 0x05) or (dsubcat == 0x1B) or (dsubcat == 0x1C) or (dsubcat == 0x41) or
(dsubcat == 0x42))
then insteonDimmerKplProcess(device, devname, event, paramTable)

With the development build, I left the name as it was (with the .dev) and started it the same way I would the other daemon, while first making sure the other was not running. Is this correct, or do I need to rename the file without the .dev. The issue that I had was when I ran altsteon_cli.dev and did an info on a device, it mentioned that the device was unknown. As I’m typing this, I’m thinking that I needed to add all the devices again, as it is a different daemon. Is this correct?

One other question. Do you know a way to stop the daemon, shy of rebooting the Vera3? I tried with -stop, -halt commands with no luck.

[quote=“skierdude, post:5, topic:177305”]Regarding the development build, even that copy of I_InsteonPlm.xml doesn’t contain the subcat = 09. I assume you are suggesting that the daemon is updated, but this xml still needs to be manually updated? See below for the code excerpt:

elseif (ddevcat == 0x01) then
local dsubcat = devtype_lookup_table[devname].subcat
– luup.log("Subcat is " … dsubcat)
if ((dsubcat == 0x05) or (dsubcat == 0x1B) or (dsubcat == 0x1C) or (dsubcat == 0x41) or
(dsubcat == 0x42))
then insteonDimmerKplProcess(device, devname, event, paramTable)[/quote]Wow…strike 2 for me! I looked in the javascript files, and it’s there, but not in the I_InsteonPlm.xml. :-[

It is in the development daemon, as well as in the J_InsteonOptions.js. If you add it to I_InsteonPlm.xml you should be good to go.

Right. Every time the daemon is restarted, even if it is the same one, you need to add the devices. You can do this from the CLI, or Restart LUUP and let Vera add them all. Remember, depending on the size of your Insteon network, it can take a while for it to “settle” after a restart and start functioning normally. There are delays in the startup code to prevent jamming the network.

With a super fast look, I don’t see anything built in. I stop it manually by using the following on Vera:

ps -ef | grep altsteon

You’ll get a line back like: 560 root 800 S /overlay/sbin/altsteon ...
That first number (560 in my example) is the process ID. You can kill that with:

kill 560Then run the “ps” command again and make sure the altsteon daemon is gone.

During testing, you can run the daemon in the forerground in a window. Add the “-f” option. Then when you want to stop it, just hit CTRL-C in that window. When you are ready for normal operations, run it without the “-f” to make it background.

Thanks, again, for the suggestions. I apologize in advance for the length of this response. I’m just trying to provide as much info, as well as troubleshooting steps as I can ::slight_smile:

I made the change to I_InsteonPlm.xml (based on the dev build), uploaded all of the new LUA files, and restarted the Vera 3. Since I had all the devices previously defined within the Vera 3 Web App, I assumed that they would automatically make there way into the new daemon, as they had in the older daemon, and as you suggested in your response, but they did not.

** edit: After sleeping on it, I realized that the only way the devices would automatically make it into the daemon is to start the daemon from within Vera, as opposed to manually via the command line. Even still, using the development build, all devices are not known, but when I revert back to the 0.8 build everything works fine other than the KPL.

Before testing the KPL, I thought I’d start with a dimmer that I know works fine; thus I passed the following command, and note the response:

Cmd : 06.D9.AA info
06.D9.AA:FFFE,02 - Unknown device ‘06.D9.AA’.

I ran the following:

Cmd: add_device 06.D9.AA
Cmd : 06.D9.AA info
06.D9.AA:0007,01,01,01,27 - DevCat : 01 SubCat : 01 Ver : 27

Next I tried turning the light on with the Vera Web App, and got nothing. So, then I deleted the device in the Web GUI, and recreated it, but still no luck. Interestingly I can control it from the command line just fine, it turns on and off within 0.5 seconds from when I issue the command. I’m quite impressed with the performance.

One thing I’ve noticed with the development build is that within the Web GUI, I see the message “plm[98]: Running Lua Startup” for much longer than I had with the stable build. It seems to run for about 7 minutes, while version 0.8 build ran for no more than 30 seconds. Is this true in your case as well? Additionally it seems to run over and over, taking a break for about 1 minute between runs.

One further test I thought I’d try is testing the functionality of the KPL. Since it was not recognized, I ran the following:

Cmd : plm link_new_device 07.D6.8C
plm:003B,02,64 - PLM command success.

Cmd : 07.D6.8C info
07.D6.8C:FFFE,02 - Unknown device ‘07.D6.8C’.

Cmd : add_device 07.D6.8C
07.D6.8C:001C,02,00 - Insteon version 0.
07.D6.8C:003D,02 - Device added. (0x01)

Cmd : 07.D6.8C on —> No response, just like before.

You had suggested moving the KPL to a different location, closer to the PLM, but I have another Dimmer at the same location and it responds fine. Interestingly, if I turn the KPL on manually, I see an update in the CLI that the device was turned on; and if I press one of the scene buttons, it tells me that button/group 6 is on. I just can’t control it from Altsteon. I may try moving it as a last resort, but it doesn’t seem logical given the other troubleshooting.

Note that none of my other devices are recognized. Really appreciate your guidance on this. I am leaning towards reverting back to the old build, unless you can suggest a next step.

I ran the daemon in verbose mode, and see the following, thus it is obvious that Altsteon is not reaching the KPL, though it has no trouble reporting the status change if I manually press the button.

[TRACE] [10/11/2013 - 22:16:47] - Found the device : 07.D6.8C (07.D6.8C)
[TRACE] [10/11/2013 - 22:16:47] - Processing EdEcho using base class!
[TRACE] [10/11/2013 - 22:16:47] - Got an ACK!
[TRACE] [10/11/2013 - 22:16:47] - There are 0 byte(s) left in the buffer.
[TRACE] [10/11/2013 - 22:16:48] - Waiting for command response. (Timeout = 1)
[TRACE] [10/11/2013 - 22:16:49] - Waiting for command response. (Timeout = 2)
[TRACE] [10/11/2013 - 22:16:50] - Waiting for command response. (Timeout = 3)
[TRACE] [10/11/2013 - 22:16:51] - **** Polling device ‘05.E6.20’.
[TRACE] [10/11/2013 - 22:16:51] - Adding : 026205E6200F1900. Multi = false
[TRACE] [10/11/2013 - 22:16:51] - Queued poll request for 05.E6.20
[TRACE] [10/11/2013 - 22:16:51] - Next poll in 600 second(s).
[TRACE] [10/11/2013 - 22:16:51] - Resending…
[DEBUG] [10/11/2013 - 22:16:51] - Sending : 026207D68C1F2E0001000000000000000000 00000000

One final observation. I restarted the daemon, and added a dimmer, and tested on/off, which worked just fine with no delays. I then added another dimmer, which again works fine with no delays. As soon as I add the KPL, all performance goes down. An on/off command takes 5-10 seconds while it appears that the daemon is stuck in a loop trying to contact the KPL.

[ERROR] [10/11/2013 - 23:01:01] - 07.D6.8C didn’t respond within 3 seconds, moving on…
[ERROR] [10/11/2013 - 23:01:21] - 07.D6.8C didn’t respond within 3 seconds, moving on…
[INFO ] [10/11/2013 - 23:01:21] - 06.D9.AA is on.
[ERROR] [10/11/2013 - 23:01:42] - 07.D6.8C didn’t respond within 3 seconds, moving on…
[ERROR] [10/11/2013 - 23:02:02] - 07.D6.8C didn’t respond within 3 seconds, moving on…

Sorry for missing this.
I know you said one dimmer is fine, and sitting next to it, but it might be on the boundary edge. (KPL->PLM works, but PLM->KPL doesn’t work).

Try the following from the CLI:

plm get_first_aldb_rec

Then repeat the following until you get a “failed” response:

plm get_next_aldb_rec

Make sure you see at least 2 links for the KPL in questions, one with flags=A2 and the other with flags=E2 (I think those values are correct).

If you can’t find them, I’d try manually linking with the KPL and PLM, and watching the daemon output.
Press/hold PLM set, then press/hold the dimmer Set - both should double-beep.