DelayAction
Stay organized with collections
Save and categorize content based on your preferences.
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Incorrect information","incorrectInformation","thumb-down"],["Not enough information/samples","notEnoughInformationSamples","thumb-down"],["Too complicated","tooComplicated","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-05 UTC."],[],[]]