Changing the text in Indigo's Address column for a device?

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

Posted on
Fri Sep 07, 2012 9:17 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Changing the text in Indigo's Address column for a device?

Matt and Jay,

I'm trying to find out if it's possible to have a custom device display a "custom" address in the Address column of the Indigo Device list?

The X10 devices in Switchboard show as blank in the list, and the address appears to be a read only field?

Is there an equivalent to UiDisplayStateId for the address field? I didn't see one in the SDK documentation....

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Fri Sep 07, 2012 9:24 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Changing the text in Indigo's Address column for a devic

Hi Ben,

Sure, try this:

Code: Select all
dev = indigo.devices[1234]
newProps = dev.pluginProps
newProps['address'] = "something custom"
dev.replacePluginPropsOnServer(newProps)

Image

Posted on
Fri Sep 07, 2012 10:45 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Changing the text in Indigo's Address column for a devic

matt (support) wrote:
Hi Ben,

Sure, try this:

Code: Select all
dev = indigo.devices[1234]
newProps = dev.pluginProps
newProps['address'] = "something custom"
dev.replacePluginPropsOnServer(newProps)


Thanks!

Just to clarify, will this change persist through Indigo Server restarts, etc?

In other words, should I be concerned with the overhead of doing this at DeviceComStart, or should I do this only when the Security ID is changed in the Device Preferences screen?

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Fri Sep 07, 2012 10:47 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Changing the text in Indigo's Address column for a devic

Yep, all plugin props pushed to the server till be saved. Doing it in DeviceComStart should be fine I think.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests