Adding wait template to ensure announcements dont cut off audio
This commit is contained in:
parent
57fae43147
commit
bd2377456b
|
@ -172,6 +172,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.kat_travel_monitor
|
entity_id: input_boolean.kat_travel_monitor
|
||||||
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data:
|
data:
|
||||||
speech_message: 'Kat has arrived at work.'
|
speech_message: 'Kat has arrived at work.'
|
||||||
|
@ -188,6 +189,7 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.kat_travel_monitor
|
entity_id: input_boolean.kat_travel_monitor
|
||||||
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data:
|
data:
|
||||||
call_interuption: 1
|
call_interuption: 1
|
||||||
|
@ -202,6 +204,7 @@ automation:
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
- service: script.jeff_destination_home
|
- service: script.jeff_destination_home
|
||||||
|
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data:
|
data:
|
||||||
call_interurption: 1
|
call_interurption: 1
|
||||||
|
|
Loading…
Reference in New Issue