Moving the door chime script to its rightful place

This commit is contained in:
Jeffrey Stone 2020-09-23 10:56:08 -04:00
parent cc18f773ae
commit 76c2c1d78e
1 changed files with 19 additions and 0 deletions

View File

@ -603,6 +603,25 @@ automation:
service: input_boolean.turn_off
script:
door_chime:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
- service: media_player.turn_on
entity_id: media_player.ha_speaker
- service: media_player.volume_set
data_template:
entity_id: media_player.ha_speaker
volume_level: .5
- service: media_player.play_media
entity_id: media_player.ha_speaker
data:
media_content_id: /media/sounds/door_open.wav
media_content_type: "music"
lockdown_issue:
sequence:
- condition: state