From 667a044f173cfd0c7cb67bb1f2833d09f35da6a9 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 18 Sep 2022 19:11:11 -0400 Subject: [PATCH] Changed announcement on reboot to respect studio quiet toggle --- automations.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/automations.yaml b/automations.yaml index 8eb92d6..38b0dbc 100644 --- a/automations.yaml +++ b/automations.yaml @@ -305,10 +305,18 @@ data: {} - service: script.kallen_desktop_refresh data: {} - - service: script.status_annc - data_template: - who: basement - call_ha_started: 1 + - if: + - condition: state + entity_id: input_boolean.studio_quiet + state: 'off' + then: + - service: script.status_annc + data_template: + who: basement + call_ha_started: 1 + else: + - stop: Studio has requested quiet, and Jarvis respects this + alias: Announce back online, unless studio has requested quiet - if: - condition: trigger id: hass_stop