I can set this up manually but after having looked at the Trigger documentation I was wondering if it is possible to dynamically create a new trigger for this at run time in the Plugin as a device is created
The trigger details are:
Trigger = Z-Wave Event, Z-wave Command, Thermostat, Temperature Update
Condition = Always
Actions = Plugin Action, Plugin Device
I have looked in the database at the trigger created via the UI, which shows as:
- Code: Select all
<Trigger type="dict">
<ActionGroup type="dict">
<ActionSteps type="vector">
<Action type="dict">
<Class type="integer">999</Class>
<DeviceID type="integer">503785618</DeviceID>
<ObjVers type="integer">12</ObjVers>
<PluginID type="string">com.perceptiveautomation.indigoplugin.stellaZcontroller</PluginID>
<TypeIdPlugin type="string">zwave</TypeIdPlugin>
<TypeLabelPlugin type="string">Process Z-Wave Command</TypeLabelPlugin>
</Action>
</ActionSteps>
<ObjVers type="integer">2</ObjVers>
</ActionGroup>
<Class type="integer">598</Class>
<Condition type="dict">
<ObjVers type="integer">5</ObjVers>
<Type type="integer">0</Type>
</Condition>
<Enabled type="bool">false</Enabled>
<FolderID type="integer">611445155</FolderID>
<ID type="integer">38026735</ID>
<MetaProps type="dict">
<com.perceptiveautomation.indigoplugin.zwave type="dict">
<commandReceived type="string">17</commandReceived>
<description type="string">z-wave "T10_Thermostat" temperature update received</description>
<targetDev type="string">525749084</targetDev>
</com.perceptiveautomation.indigoplugin.zwave>
</MetaProps>
<Name type="string">Stella-Z10 Zwave</Name>
<ObjVers type="integer">7</ObjVers>
<PluginID type="string">com.perceptiveautomation.indigoplugin.zwave</PluginID>
<PluginUiName type="string">Z-Wave</PluginUiName>
<TypeIdPlugin type="string">zwaveCommand</TypeIdPlugin>
<TypeLabelPlugin type="string">Z-Wave Command</TypeLabelPlugin>
<UploadToInterface type="bool">true</UploadToInterface>
</Trigger>
Thanks for any help