New lighting automation for helpers while we're on vacation
This commit is contained in:
@ -1045,6 +1045,75 @@ automation:
|
||||
adapt_brightness: "{{ is_state('switch.adaptive_lighting_adapt_brightness_living_room','on') }}"
|
||||
adapt_color: "{{ is_state('switch.adaptive_lighting_adapt_color_living_room','on') }}"
|
||||
|
||||
- id: 21771a12-1120-4d65-aabd-d499c4a30bf1
|
||||
alias: Vacation Lighting
|
||||
description: Turns on lights for helpers who come over (such as to take care of the cats) while we are gone
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_door
|
||||
to: 'on'
|
||||
id: door
|
||||
- platform: event
|
||||
event_type: timer.finished
|
||||
event_data:
|
||||
entity_id: timer.vacation_helper
|
||||
id: timer-finished
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'on'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: door
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id:
|
||||
- light.basement_studio_lights
|
||||
- light.first_floor_lights
|
||||
- light.second_floor_lights
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.presence_simulation
|
||||
- delay:
|
||||
seconds: 3
|
||||
- service: input_select.select_option
|
||||
target:
|
||||
entity_id:
|
||||
- input_select.basement_studio_scenes
|
||||
- input_select.living_room_scenes
|
||||
- input_select.downstairs_bathroom_scenes
|
||||
- input_select.dining_room_lamp_scenes
|
||||
- input_select.mud_room_scenes
|
||||
- input_select.upstairs_hallway_scenes
|
||||
- input_select.upstairs_bathroom_scenes
|
||||
- input_select.master_bedroom_scenes
|
||||
- input_select.kallen_bedroom_scenes
|
||||
- input_select.emma_bedroom_scenes
|
||||
data:
|
||||
option: Adaptive
|
||||
- service: input_select.select_option
|
||||
target:
|
||||
entity_id: input_select.tina_desk_scenes
|
||||
data:
|
||||
option: Evening Mode
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: timer-finished
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.basement_studio_lights
|
||||
- light.first_floor_lights
|
||||
- light.second_floor_lights
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.presence_simulation
|
||||
|
||||
script:
|
||||
stairwell_led_strip:
|
||||
alias: Stairwell LED Strip
|
||||
|
Reference in New Issue
Block a user