Adding wait template to ensure announcements dont cut off audio
This commit is contained in:
parent
7c9750b4c0
commit
e045a814c8
|
@ -184,6 +184,7 @@ automation:
|
||||||
condition: template
|
condition: template
|
||||||
value_template: '{{ states.calendar.skylar_school.state == "Off" }}'
|
value_template: '{{ states.calendar.skylar_school.state == "Off" }}'
|
||||||
action:
|
action:
|
||||||
|
- 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 +203,7 @@ automation:
|
||||||
entity_id: input_boolean.blackout_time
|
entity_id: input_boolean.blackout_time
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
|
- 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
|
||||||
|
@ -236,7 +238,7 @@ automation:
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: input_boolean.school_is_digital
|
entity_id: input_boolean.school_is_digital
|
||||||
state: 'off'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.skylar_desk_off
|
entity_id: scene.skylar_desk_off
|
||||||
|
|
Loading…
Reference in New Issue