The automation below works great, however I cannot get it work for local files (saved in my media folder)
alias: ZZZ - Play media
description: ''
trigger: []
condition: []
action:
- service: media_player.play_media
data:
entity_id: all
media_content_id: http://soundbible.com/grab.php?id=2142&type=mp3
media_content_type: audio/mp3
entity_id: media_player.mpd
mode: single
Here are my files:
I tried the following ways but no success:
media_content_id: root/media/ alert-outdoor.mp3
media_content_id: /root/media/ alert-outdoor.mp3
media_content_id: media/ alert-outdoor.mp3
media_content_id: /media/ alert-outdoor.mp3
media_content_id: local:track:alert-outdoor.mp3
media_content_id: alert-outdoor.mp3
How can I reference those mp3 files so the automation works?