1
0
ansible-home-assistant/configuration/automations/vacation.yaml

33 lines
770 B
YAML
Raw Normal View History

2022-06-05 23:27:38 +00:00
- 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
2022-07-15 16:38:16 +00:00
- cover.bedroom_blinds
- cover.dining_blinds
- cover.office_blinds
2022-06-05 23:27:38 +00:00
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