Announcement

Collapse
No announcement yet.

Cancel a Delayed Device Action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cancel a Delayed Device Action

    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.

    Click image for larger version

Name:	DelayedActions.PNG
Views:	271
Size:	19.5 KB
ID:	1269923

    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.

    Click image for larger version

Name:	CancelDelayedDeviceAction.PNG
Views:	231
Size:	24.1 KB
ID:	1269924

    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.

    Click image for larger version

Name:	CancelDelayedDeviceAction1.PNG
Views:	232
Size:	38.3 KB
ID:	1269925
Working...
X