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