From 9c9c4b5f50f6316e0fa64f7afb9e9682668d8dd7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 20 Jul 2023 14:30:22 -0400 Subject: [PATCH] Announce when E wakes up, if we are in the basement --- packages/emmalynn.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/emmalynn.yaml b/packages/emmalynn.yaml index 3bab76c..cf6de28 100644 --- a/packages/emmalynn.yaml +++ b/packages/emmalynn.yaml @@ -832,6 +832,16 @@ script: # Lighting - variables: brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') }}" + - if: + - condition: state + entity_id: binary_sensor.basement_occupied + state: 'on' + then: + - service: script.speech_engine + data: + who: basement + type: normal + message: Emma has awoken, so it is time to make your way upstairs now - if: - condition: template value_template: "{{ is_state('binary_sensor.morning','on') or is_state('binary_sensor.midday','on') }}"