Hi all,
Thanks for helping as I am struggling with triggering a plugin with a (external) variable change. What is the best way to achieve this?
eg. motion sensed by external camera - RestfulAPI post to Indigo - to change indigo variable. But need running Plugin to see this change and respond.
Options:
- subscribetoChanges() ?is there a specific variable subscribetoIncoming() or does the devices one cover both or just devices.
Would seem quite process heavy for the simple task that is needed.
- Check variable for change within Plugin every second and then trigger if changed?
Probably fairly low-level impact ?
Or is there another way of achieving this which is essentially a external event (via RestfulAPI) triggering a Plugin.
Thanks - I'll have a look at some plugins that probably face the same issue to get some ideas...
Glenn