Make security lockdown alerts also go off in basement when applicable
This commit is contained in:
@ -390,17 +390,38 @@ automation:
|
|||||||
|
|
||||||
Doors:{% if is_state('binary_sensor.exterior_doors','on') %} {{ extdoors }} {% else %} None {% endif %}
|
Doors:{% if is_state('binary_sensor.exterior_doors','on') %} {{ extdoors }} {% else %} None {% endif %}
|
||||||
Windows:{% if is_state('binary_sensor.windows','on') %} {{ windows }} {% else %} None {% endif %}
|
Windows:{% if is_state('binary_sensor.windows','on') %} {{ windows }} {% else %} None {% endif %}
|
||||||
- service: scene.create
|
- if:
|
||||||
data:
|
- condition: state
|
||||||
scene_id: light_state_before_lockdown_issue
|
entity_id: binary_sensor.basement_occupied
|
||||||
snapshot_entities:
|
state: 'on'
|
||||||
- light.living_room_color_1
|
then:
|
||||||
- light.living_room_color_2
|
- service: scene.create
|
||||||
- light.living_room_color_3
|
data:
|
||||||
- light.tina_lamp_side
|
scene_id: light_state_before_lockdown_issue
|
||||||
- light.tina_lamp_top
|
snapshot_entities:
|
||||||
- light.tina_desk_strip
|
- light.living_room_color_1
|
||||||
- light.stairwell_led_strip
|
- light.living_room_color_2
|
||||||
|
- light.living_room_color_3
|
||||||
|
- light.tina_lamp_side
|
||||||
|
- light.tina_lamp_top
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.stairwell_led_strip
|
||||||
|
- light.basement_stairwell
|
||||||
|
- light.basement_tall_lamp
|
||||||
|
- light.basement_short_lamp
|
||||||
|
- light.basement_led_strip_1
|
||||||
|
else:
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: light_state_before_lockdown_issue
|
||||||
|
snapshot_entities:
|
||||||
|
- light.living_room_color_1
|
||||||
|
- light.living_room_color_2
|
||||||
|
- light.living_room_color_3
|
||||||
|
- light.tina_lamp_side
|
||||||
|
- light.tina_lamp_top
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.stairwell_led_strip
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
seconds: 1
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
@ -408,16 +429,34 @@ automation:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- switch.adaptive_lighting_living_room
|
- switch.adaptive_lighting_living_room
|
||||||
- switch.adaptive_lighting_tina_lamp
|
- switch.adaptive_lighting_tina_lamp
|
||||||
- service: light.turn_on
|
- switch.adaptive_lighting_basement_studio
|
||||||
target:
|
- if:
|
||||||
entity_id:
|
- condition: state
|
||||||
- light.living_room_lights
|
entity_id: binary_sensor.basement_occupied
|
||||||
- light.tina_lamp
|
state: 'on'
|
||||||
- light.tina_desk_strip
|
then:
|
||||||
- light.stairwell_led_strip
|
- service: light.turn_on
|
||||||
data:
|
target:
|
||||||
color_name: red
|
entity_id:
|
||||||
brightness_pct: 100
|
- light.living_room_lights
|
||||||
|
- light.tina_lamp
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.stairwell_led_strip
|
||||||
|
- light.basement_studio_lights
|
||||||
|
data:
|
||||||
|
color_name: red
|
||||||
|
brightness_pct: 100
|
||||||
|
else:
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- light.living_room_lights
|
||||||
|
- light.tina_lamp
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.stairwell_led_strip
|
||||||
|
data:
|
||||||
|
color_name: red
|
||||||
|
brightness_pct: 100
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
who: common
|
who: common
|
||||||
@ -472,6 +511,7 @@ automation:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- switch.adaptive_lighting_living_room
|
- switch.adaptive_lighting_living_room
|
||||||
- switch.adaptive_lighting_tina_lamp
|
- switch.adaptive_lighting_tina_lamp
|
||||||
|
- switch.adaptive_lighting_basement_studio
|
||||||
|
|
||||||
- id: ea52c580-dcf4-4eec-8d25-adda3b9e7cf4
|
- id: ea52c580-dcf4-4eec-8d25-adda3b9e7cf4
|
||||||
alias: Alexa Guard Handling
|
alias: Alexa Guard Handling
|
||||||
|
Reference in New Issue
Block a user