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

30 lines
673 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
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