From bd2377456bb83fa935f25e463bb43e421490a270 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 28 Sep 2020 20:01:58 -0400 Subject: [PATCH] Adding wait template to ensure announcements dont cut off audio --- config/packages/presence.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/packages/presence.yaml b/config/packages/presence.yaml index 550ec46..1ceb172 100755 --- a/config/packages/presence.yaml +++ b/config/packages/presence.yaml @@ -172,6 +172,7 @@ automation: action: - service: input_boolean.turn_off entity_id: input_boolean.kat_travel_monitor + - wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}" - service: script.ah_report data: speech_message: 'Kat has arrived at work.' @@ -188,6 +189,7 @@ automation: action: - service: input_boolean.turn_on entity_id: input_boolean.kat_travel_monitor + - wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}" - service: script.ah_report data: call_interuption: 1 @@ -202,6 +204,7 @@ automation: condition: [] action: - service: script.jeff_destination_home + - wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}" - service: script.ah_report data: call_interurption: 1