1
0
ansible-home-assistant/configuration/automations/vacation.yaml
2022-07-15 18:38:16 +02:00

33 lines
770 B
YAML

- id: vacation-enable
alias: '[Vacation] mode enabled'
trigger:
- platform: state
entity_id:
- input_boolean.vacation_mode
to: 'on'
action:
- service: presence_simulation.start
data:
entity_id:
- light.bedroom_lights
- light.bed_lamps
- light.office
- light.kitchen_lights
- light.hallway_light
- cover.bedroom_blinds
- cover.dining_blinds
- cover.office_blinds
delta: 5
restore_states: True
random: 300
- id: vacation-disable
alias: '[Vacation] mode disabled'
trigger:
- platform: state
entity_id:
- input_boolean.vacation_mode
to: 'off'
action:
- service: presence_simulation.stop