My end goal is to provide three actions that have a config UI with a picker. The picker has content driven by the plugin.
My plugin *has no device types*.
However, Indigo shows the "Device" pick list for the action, and won't let me edit the action config without picking a device (and there are no devices).
What d****$ thing am I doing wrong?
Here's my actions.xml file:
- Code: Select all
<?xml version="1.0"?>
<!-- If your plugin wants to add actions to the action step dialog that are independent
of a device (devices define their own actions), define them here.
-->
<Actions>
<Action id="lockDoor">
<Name>Lock Door</Name>
<CallbackMethod>lockDoor</CallbackMethod>
<ConfigUI>
<Field type="menu" id="where">
<Label>Door</Label>
<List class="self" method="doorListGenerator"/>
</Field>
</ConfigUI>
</Action>
<Action id="unlockDoor">
<Name>Unlock Door</Name>
<CallbackMethod>unlockDoor</CallbackMethod>
<ConfigUI>
<Field type="menu" id="where">
<Label>Door</Label>
<List class="self" method="doorListGenerator"/>
</Field>
</ConfigUI>
</Action>
<Action id="momentaryUnlockDoor">
<Name>Momentarily Unlock Door</Name>
<CallbackMethod>momentaryUnlockDoor</CallbackMethod>
<ConfigUI>
<Field type="menu" id="where">
<Label>Door</Label>
<List class="self" method="doorListGenerator"/>
</Field>
</ConfigUI>
</Action>
</Actions>
Help!
-A