diff --git a/config/packages/audio.yaml b/config/packages/audio.yaml index 4d05f49..6ee7a1a 100755 --- a/config/packages/audio.yaml +++ b/config/packages/audio.yaml @@ -143,6 +143,28 @@ automation: script: + local_audio: + sequence: + - condition: state + entity_id: input_boolean.audible_notifications + state: 'on' + - condition: state + entity_id: sensor.family_status + state: Home + - 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: > + {{ volume }} + - service: media_player.play_media + entity_id: media_player.ha_speaker + data_template: + media_content_type: "music" + media_content_id: > + {{ media }} + youtube_audio: sequence: - condition: state