Skip to content

Commit

Permalink
Adding wait template to ensure announcements dont cut off audio
Browse files Browse the repository at this point in the history
  • Loading branch information
thejeffreystone committed Sep 29, 2020
1 parent 57fae43 commit bd23774
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/packages/presence.yaml
Expand Up @@ -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.'
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bd23774

Please sign in to comment.