Turning KeypadLinc secondary button lights on/off

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Perry The Cynic
Posts: 857
Joined: Mon Apr 07, 2008 9:46 pm

Turning KeypadLinc secondary button lights on/off

Post 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
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Turning KeypadLinc secondary button lights on/off

Post by jay (support) »

Use the setLedState method in the indigo.dimmer or indigo.relay command spaces.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Perry The Cynic
Posts: 857
Joined: Mon Apr 07, 2008 9:46 pm

Re: Turning KeypadLinc secondary button lights on/off

Post 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
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Turning KeypadLinc secondary button lights on/off

Post by jay (support) »

Reread my post... :)
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Perry The Cynic
Posts: 857
Joined: Mon Apr 07, 2008 9:46 pm

Re: Turning KeypadLinc secondary button lights on/off

Post by Perry The Cynic »

Uh... sorry. I'm going to get some more emergency coffee now. :)
-- perry
Locked

Return to “Extending Indigo with Plugins and Python”