Adding wait template to ensure announcements dont cut off audio

This commit is contained in:
Jeffrey Stone 2020-09-28 20:00:11 -04:00
parent 7c9750b4c0
commit e045a814c8
1 changed files with 3 additions and 1 deletions

View File

@ -184,6 +184,7 @@ automation:
condition: template
value_template: '{{ states.calendar.skylar_school.state == "Off" }}'
action:
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
- service: script.ah_report
data:
call_interuption: 1
@ -202,6 +203,7 @@ automation:
entity_id: input_boolean.blackout_time
state: 'on'
action:
- wait_template: "{{ not is_state('media_player.ha_speaker', 'playing') }}"
- service: script.ah_report
data:
call_interuption: 1
@ -236,7 +238,7 @@ automation:
condition:
condition: state
entity_id: input_boolean.school_is_digital
state: 'off'
state: 'on'
action:
- service: scene.turn_on
entity_id: scene.skylar_desk_off