From 4d6c0a623093213577c66858fb34ec12ca6beb99 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 2 Aug 2023 20:23:18 -0400 Subject: [PATCH] Doorbell alert extended to light strip --- packages/presence.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/packages/presence.yaml b/packages/presence.yaml index 753616d..9356a0f 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -545,9 +545,9 @@ automation: data: scene_id: doorbell_lights_restore snapshot_entities: - - light.living_room_color_1 - - light.living_room_color_2 - - light.living_room_color_3 + - light.living_room_overhead + - light.living_room_led_strip + - light.dining_room_lamp - light.tina_lamp_top - light.tina_lamp_side - light.tina_desk_strip @@ -564,6 +564,10 @@ automation: entity_id: - switch.adaptive_lighting_tina_lamp - 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" service: light.turn_on target: @@ -571,8 +575,20 @@ automation: - light.living_room_lights - light.tina_lamp - light.tina_desk_strip + - light.living_room_led_strip data: 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" wait_template: "{{ is_state('binary_sensor.front_door','on') }}" timeout: @@ -583,6 +599,10 @@ automation: entity_id: scene.doorbell_lights_restore - delay: 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" service: scene.turn_on target: