Dynamic Lists and Device States.

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 May 04, 2012 9:49 pm
Swancoat offline
Posts: 503
Joined: Nov 20, 2009
Location: Houston

Dynamic Lists and Device States.

My plugin is coming along nicely enough that I decided to tackle a dynamic list. Works well, and I have a config dialog in an Action that fully calls a list contingent on what gets set up in pluginConfig.

Now, I also want to make my Device States share the same dynamic list. At this point I thought it would be as easy as replacing the list element in Devices.xml just like in Actions.xml, but it doesn't work.

Here's the error message:
Code: Select all
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "plugin.py", line 29, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 5/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 64, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 5/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 379, in _parseDevicesXML
<type 'exceptions.LookupError'>: <List> elements must have at least one <Option> element


Any ideas what's going wrong here?

http://nerdhome.jimdo.com

Posted on
Sat May 05, 2012 8:58 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic Lists and Device States.

State values cannot currently be dynamic. States are more complicated because they are used in Trigger (Device State Changed) processing and UI, conditional UI, and control page UI. We do have plans to improve how states can be defined in the future, but not in the immediate future.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests