跳到主要内容

Sleep with YAML

List of YAML parameters and examples for the "Sleep" action

YAML parameters for Sleep

名称类型描述
action
必填
String操作名称
type
必填
StringThe type of the action. Should be set to SLEEP.
sleep_in_sec
必填
IntegerThe time (in seconds) to sleep. The value should be between 0 and 1200.

YAML example for Sleep

actions:
- action: "Sleep well, darling"
type: "SLEEP"
trigger_time: "ON_EVERY_EXECUTION"
sleep_in_sec: 600