Toggle a Keypad Linc Button

Posted on
Fri Aug 19, 2016 7:10 am
Radjin offline
User avatar
Posts: 151
Joined: May 13, 2015

Toggle a Keypad Linc Button

I know I can turn KPL buttons on and off but is there a way to toggle it on and off like you can a device? If not this would be a useful feature.

It's not rocket science...

Posted on
Fri Aug 19, 2016 7:00 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Toggle a Keypad Linc Button

There isn't currently an action or UI for this (I'm adding it to our request list now), but here is a handy python script that can do it in just 2 lines.

Image

Posted on
Fri Aug 19, 2016 8:51 pm
Radjin offline
User avatar
Posts: 151
Joined: May 13, 2015

Re: Toggle a Keypad Linc Button

That was brilliant; those two lines of code saved me four triggers based on a variable.

dev = indigo.devices["bedroom keypadlinc"]
indigo.relay.setLedState(dev, 2, not dev.ledStates[2])

One note: 2 = KPL button 3, 3 = 4 and so on.

It's not rocket science...

Posted on
Thu Jan 26, 2017 5:58 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Toggle a Keypad Linc Button

This thread is old but I wanted to follow-up that Indigo 7.0 is now available (has been for a while). It adds a new INSTEON Toggle Keypad LED action option to the UI.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 15 guests