- Posted on
Tue Feb 16, 2016 5:38 pm
-
cramer
offline
-
- Posts: 33
- Joined: Feb 03, 2015
Thanks for your response Matt.
Having read through the Indigo docs, I am wondering if I take the following approach :
Create a custom plugin which receives, as an action argument, a device id and action to be sent to that device.
My script would always call, with a delay, the plugin passing the target device and action in the property dictionary.
The plugin would then initiate an immediate action on the target device
e.g in my script
action to custom plugin, delay = ?, property dictionary : somedeviceid=n, action=turnon
in custom plugin action method
extract the somedevice id and action from the property dictionary and generate an action, with no delay to somedevice n, action turnon
Clearly, the above example does not require the extra level of indirection but the plugin action would include processing that may affect whether the device action is actually performed etc.
I have yet to run any code in Indigo yet so if there is any possibility of the above working, I will need some advice on how to construct the plugin.
Let me know if I haven't been clear.