I would like to do the following:
When a device changes its value and becomes=1, then run a script once every minute as long as the device's value is a 1, but when the device's value changes and becomes = 0, then I need to stop running the script every minute. I have not found a way to stop the event from running once it starts.
When a device changes its value and becomes=1, then run a script once every minute as long as the device's value is a 1, but when the device's value changes and becomes = 0, then I need to stop running the script every minute. I have not found a way to stop the event from running once it starts.
Comment