1
0
ansible-home-assistant/roles/automations/files/vacation.yaml

33 lines
770 B
YAML
Raw Permalink Normal View History

- id: vacation_enable
2022-06-05 23:27:38 +00:00
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
2022-06-05 23:27:38 +00:00
alias: '[Vacation] mode disabled'
trigger:
- platform: state
entity_id:
- input_boolean.vacation_mode
to: 'off'
action:
- service: presence_simulation.stop