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
Turning KeypadLinc secondary button lights on/off
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
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
- 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
Use the setLedState method in the indigo.dimmer or indigo.relay command spaces.
-
Perry The Cynic
- Posts: 857
- Joined: Mon Apr 07, 2008 9:46 pm
Re: Turning KeypadLinc secondary button lights on/off
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
I assume this works even on relay-type KeypadLincs, even though it's a method on dimmer?
Thanks
-- perry
- 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
Reread my post... 
-
Perry The Cynic
- Posts: 857
- Joined: Mon Apr 07, 2008 9:46 pm
Re: Turning KeypadLinc secondary button lights on/off
Uh... sorry. I'm going to get some more emergency coffee now. 
-- perry
-- perry