From 3f7a7b5fef4ac7e3d61746d6c24e5cc4ea5e8dbd Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 25 Sep 2023 12:34:09 -0400 Subject: [PATCH] Basement echo dot do not disturb mode tweaks #148 --- packages/announcements.yaml | 1 - packages/presence.yaml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/announcements.yaml b/packages/announcements.yaml index 134c63c..df6dc87 100644 --- a/packages/announcements.yaml +++ b/packages/announcements.yaml @@ -123,7 +123,6 @@ automation: - service: switch.turn_off target: entity_id: - - switch.basement_echo_dot_do_not_disturb_switch - switch.living_room_echo_dot_do_not_disturb_switch - service: script.volume_reset diff --git a/packages/presence.yaml b/packages/presence.yaml index 764d121..fe98f9a 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -803,6 +803,25 @@ automation: target: entity_id: light.front_porch_light + - id: 6017b580-44bc-48f2-adfe-52540eb9c1e2 + alias: Echo Dot Room Presence + description: This is mostly so that if I go into the basement before everybody wakes up, it unmutes the echo dot + mode: restart + trigger: + - platform: state + entity_id: binary_sensor.basement_occupied + from: 'off' + to: 'on' + id: basement-occupied + condition: + - condition: state + entity_id: binary_sensor.people_sleeping + state: 'on' + action: + - service: switch.turn_off + target: + entity_id: switch.basement_echo_dot_do_not_disturb_switch + script: family_is_away: alias: Family Is Away