Finding INSTEON devices with buttons

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

Finding INSTEON devices with buttons

Post by Perry The Cynic »

Is there a way to enumerate INSTEON devices that have buttons? (Not "setup" buttons - real buttons the user presses to make things turn on and off.) I know how to enumerate INSTEON controllers - iter("indigo.insteon,indigo.controller") - but that includes controllers that don't have actual user-pressable buttons like motion sensors.

The buttonGroupCount doesn't seem to help - it's 3 for an INSTEON motion sensor (I assume it counts controller scenes).

Cheers
-- perry
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Finding INSTEON devices with buttons

Post by matt (support) »

Try the iter you have above (insteon + controller), then add:

Code: Select all

if type(dev) is indigo.SensorDevice:
  continue
That should exclude motion sensors, TriggerLincs, etc., while keeping RemoteLincs and ControLincs (and relay/dimmer switches).

One gotcha I can think of (might be more) is that will still include dual-band LampLincs and other plugin modules that act as controllers (older firmware LampLincs, etc., are not controllers, so those will not be included). In this case the SET button though does turn on/off the load (and can control other modules) so technically one could think of that as a controller button. If you want to exclude those then you could search for LampLinc, ApplianceLinc, and OutletLinc in the type name.
Image
Locked

Return to “Extending Indigo with Plugins and Python”