Search link tables for Insteon ID

Posted on
Thu Apr 18, 2019 1:01 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Search link tables for Insteon ID

I had linked Insteon's Hub Pro to a handful of devices when I was curious about their HomeKit offerings. Unfortunately it never worked out, so I would like to make sure I remove the Insteon ID of the Hub Pro from all my devices.

Is there a way to search the link tables of all devices for a particular Insteon ID? I know holding down the Option key while managing links allows one to remove unknown links.

thanks in advance...

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Fri Apr 26, 2019 10:17 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Search link tables for Insteon ID

Create an Action Group with an action that executes this embedded python script:

Code: Select all
for dev in indigo.devices:
   links = indigo.rawServerRequest("GetLinksForDevice", {"Name":dev.name})
   indigo.server.log("responder links in \"%s\":" % (dev.name))
   for link in links.get("ResponderList", []):
      indigo.server.log("%s" % (link["AddressStrUI"]))
   indigo.server.log("")
   indigo.server.log("controller links in \"%s\":" % (dev.name))
   for link in links.get("ControllerList", []):
      indigo.server.log("%s" % (link["AddressStrUI"]))
   indigo.server.log("")

Image

Posted on
Fri Apr 26, 2019 10:23 am
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Search link tables for Insteon ID

What does this error mean:

Code: Select all
   Script Error                    embedded script: 'key AddressStrUI not found in dict'
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 5, at top level
KeyError: 'key AddressStrUI not found in dict'

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Fri Apr 26, 2019 10:26 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Search link tables for Insteon ID

I'm not sure why that key doesn't exist, but just try this instead:

Code: Select all
for dev in indigo.devices:
   links = indigo.rawServerRequest("GetLinksForDevice", {"Name":dev.name})
   indigo.server.log("responder links in \"%s\":" % (dev.name))
   for link in links.get("ResponderList", []):
      indigo.server.log("%s" % (link.get("AddressStrUI", "--")))
   indigo.server.log("")
   indigo.server.log("controller links in \"%s\":" % (dev.name))
   for link in links.get("ControllerList", []):
      indigo.server.log("%s" % (link.get("AddressStrUI", "--")))
   indigo.server.log("")

Image

Posted on
Fri Apr 26, 2019 10:34 am
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Search link tables for Insteon ID

Thanks Matt,

Is there a way to search for just the unknown back links?

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Fri Apr 26, 2019 10:59 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Search link tables for Insteon ID

Not easily. I figured you had the Insteon address of the old controller and you could just search on that in the results?

Image

Posted on
Fri Apr 26, 2019 11:00 am
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Search link tables for Insteon ID

I do, thank you!

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 9 guests