list all properties for a device?

Posted on
Thu Oct 05, 2017 10:54 am
blysik offline
Posts: 213
Joined: Jan 06, 2015

list all properties for a device?

As I play with the influxdb plugin, I really need an easy way to see all the various properties a device has. It doesn't appear that it's possible to see this in the UI. Is there a simple python snippet I can run, where if I give it a device id, it would show print out all the properties it has?

Thanks!

Posted on
Thu Oct 05, 2017 11:03 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: list all properties for a device?

Code: Select all
indigo.server.log(u'Device:\n%s' % indigo.devices[12345678])
Hope this helps. :)

Posted on
Thu Oct 05, 2017 11:06 am
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: list all properties for a device?

autolog wrote:
Code: Select all
indigo.server.log(u'Device:\n%s' % indigo.devices[12345678])
Hope this helps. :)


Perfect! Thanks!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests