Description
Adds a pause in the automation execution. All actions listed after the DelayAction
will execute after the pause.
Fields
Key | Type | Description |
---|---|---|
for
|
Duration |
The length of the pause. For example, '30sec' will pause the execution of the automation for thirty seconds. Required |
Examples
Turn on a light and turn off it after 5 minutes.
actions:
- type: device.command.OnOff
devices: Light A - Living Room
on: true
- type: time.delay
for: 5min
- type: device.command.OnOff
devices: Light A - Living Room
on: false