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 7c9750b commit e045a81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/packages/events.yaml
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e045a81

Please sign in to comment.