Page 1 of 1

Turning KeypadLinc secondary button lights on/off

PostPosted: Mon Jun 17, 2013 10:56 pm
by Perry The Cynic
I have a dreadful feeling you've answered that one before, but I can't find it on the boards now. How do I turn individual (or groups of) KeypadLinc button lights on or off from Python code in a plugin?

I know about the "INSTEON Commands" way of doing this, but how would I script this? (I assume you'd like the plugin this calls to be an implementation detail you can change later.)

Thanks
-- perry

Re: Turning KeypadLinc secondary button lights on/off

PostPosted: Tue Jun 18, 2013 8:53 am
by jay (support)
Use the setLedState method in the indigo.dimmer or indigo.relay command spaces.

Re: Turning KeypadLinc secondary button lights on/off

PostPosted: Tue Jun 18, 2013 9:04 am
by Perry The Cynic
Oops. Yes. It's right there. I keep forgetting you have class methods (of a sort) in there; I was looking for methods on the device object. Sorry about that.

I assume this works even on relay-type KeypadLincs, even though it's a method on dimmer?

Thanks
-- perry

Re: Turning KeypadLinc secondary button lights on/off

PostPosted: Tue Jun 18, 2013 9:39 am
by jay (support)
Reread my post... :)

Re: Turning KeypadLinc secondary button lights on/off

PostPosted: Tue Jun 18, 2013 10:07 am
by Perry The Cynic
Uh... sorry. I'm going to get some more emergency coffee now. :)
-- perry