From 5dd003e9947bc7168437f8d3d0eca3f0571afd8f Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 24 Feb 2026 03:28:59 -0500 Subject: [PATCH] Don't reset basement briefing if I'm still down here --- scripts.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/scripts.yaml b/scripts.yaml index d6df739..54c101d 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -2673,16 +2673,28 @@ kallen_night_meds: reset_annc_switches: alias: Reset Announcement Switches sequence: - - service: input_boolean.turn_off - target: + - target: entity_id: - input_boolean.good_morning - input_boolean.daily_briefing - input_boolean.nightly_briefing - input_boolean.kallen_morning_briefing - input_boolean.kallen_nightly_briefing - - input_boolean.basement_briefing data: {} + action: input_boolean.turn_off + alias: Turn off housewide briefing switches + - if: + - condition: state + entity_id: binary_sensor.basement_occupied + state: + - 'off' + then: + - action: input_boolean.turn_off + metadata: {} + target: + entity_id: input_boolean.basement_briefing + data: {} + alias: Turn off basement briefing switch if basement is not occupied mode: single icon: mdi:bullhorn-outline emma_rainbow_lights: