Doorbell alert extended to light strip

This commit is contained in:
2023-08-02 20:23:18 -04:00
parent 4c23c6c446
commit 4d6c0a6230

View File

@ -545,9 +545,9 @@ automation:
data: data:
scene_id: doorbell_lights_restore scene_id: doorbell_lights_restore
snapshot_entities: snapshot_entities:
- light.living_room_color_1 - light.living_room_overhead
- light.living_room_color_2 - light.living_room_led_strip
- light.living_room_color_3 - light.dining_room_lamp
- light.tina_lamp_top - light.tina_lamp_top
- light.tina_lamp_side - light.tina_lamp_side
- light.tina_desk_strip - light.tina_desk_strip
@ -564,6 +564,10 @@ automation:
entity_id: entity_id:
- switch.adaptive_lighting_tina_lamp - switch.adaptive_lighting_tina_lamp
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_living_room
- alias: "Turn dining room lamp off"
service: light.turn_off
target:
entity_id: light.dining_room_lamp
- alias: "Turn Lights On" - alias: "Turn Lights On"
service: light.turn_on service: light.turn_on
target: target:
@ -571,8 +575,20 @@ automation:
- light.living_room_lights - light.living_room_lights
- light.tina_lamp - light.tina_lamp
- light.tina_desk_strip - light.tina_desk_strip
- light.living_room_led_strip
data: data:
color_name: green color_name: green
- alias: "Make LED strip flash"
service: lifx.effect_pulse
target:
entity_id: light.living_room_led_strip
data:
power_on: true
mode: ping
period: 1
cycles: 30
color_name: white
brightness: 255
- alias: "End early if door opened" - alias: "End early if door opened"
wait_template: "{{ is_state('binary_sensor.front_door','on') }}" wait_template: "{{ is_state('binary_sensor.front_door','on') }}"
timeout: timeout:
@ -583,6 +599,10 @@ automation:
entity_id: scene.doorbell_lights_restore entity_id: scene.doorbell_lights_restore
- delay: - delay:
seconds: 3 seconds: 3
- alias: "Stop LED strip effect"
service: lifx.effect_stop
target:
entity_id: light.living_room_led_strip
- alias: "Return Adaptive Lighting to previous state" - alias: "Return Adaptive Lighting to previous state"
service: scene.turn_on service: scene.turn_on
target: target: