This Action will cancel any delayed Actions for a particular Device. When an Action to Control a Device is used, there is an option to Delay the Action. This is covered here.
As described in the thread linked above, each Delayed Device Action is stored in a special Delayed Actions Event Group
The Events will refer to the specific Device and be named as such. Here is the result of an Event being run 4 times. The Event action is to turn Device 1 On.
If Event below Cancelling Delayed Device Actions for Device1, it will Cancel all Delayed Device Actions for that device, whether there is only 1 or many. In this case, all 4 temporary Events will be deleted.
A use case for this Action can be for motion controlled lighting. Say you have an Event that turns the lights On after there is Motion and you want them to be turned Off after 5 minutes as long as Motion is not triggered again. This simple Event will do it all. If Motion is detected, the Event Runs. The first thing it does is to look for any Delayed Device Actions for the Light that might have been created by prior running of this Event. Then the light is turned on and finally a Delayed Device Action to turn the light Off after 5 minutes is created. If the Event is run again the entire process is repeated. If it is run again before the 5 minute delay has elapsed, the Delayed Device Action is removed and a fresh one for 5 minutes later is created. This can be repeated as lo9ng as there is motion in the room, preventing the lights from being turned Off while someone is in the room.
As described in the thread linked above, each Delayed Device Action is stored in a special Delayed Actions Event Group
The Events will refer to the specific Device and be named as such. Here is the result of an Event being run 4 times. The Event action is to turn Device 1 On.
If Event below Cancelling Delayed Device Actions for Device1, it will Cancel all Delayed Device Actions for that device, whether there is only 1 or many. In this case, all 4 temporary Events will be deleted.
A use case for this Action can be for motion controlled lighting. Say you have an Event that turns the lights On after there is Motion and you want them to be turned Off after 5 minutes as long as Motion is not triggered again. This simple Event will do it all. If Motion is detected, the Event Runs. The first thing it does is to look for any Delayed Device Actions for the Light that might have been created by prior running of this Event. Then the light is turned on and finally a Delayed Device Action to turn the light Off after 5 minutes is created. If the Event is run again the entire process is repeated. If it is run again before the 5 minute delay has elapsed, the Delayed Device Action is removed and a fresh one for 5 minutes later is created. This can be repeated as lo9ng as there is motion in the room, preventing the lights from being turned Off while someone is in the room.
Comment