1
0
ansible-home-assistant/automations/modes.yaml
2021-05-24 20:26:03 +02:00

20 lines
432 B
YAML

- id: sleep_on
alias: Turn on sleep time
trigger:
- platform: time
at: input_datetime.sleep_mode
action:
- service: input_boolean.turn_on
entity_id: input_boolean.sleep_mode
mode: single
- id: sleep_off
alias: Turn off sleep time
trigger:
- platform: time
at: input_datetime.day_mode
action:
- service: input_boolean.turn_off
entity_id: input_boolean.sleep_mode
mode: single