first check if you have a folder called www. if not just create one. then put the mp3 there or in a subfolder. and then the path should start with /local/mp3.mp3 or if you made a subfolder /local/subfolder/mp3.mp3
then create a script like this one. you can copy and paste it, just change according to your setup. and then you can make a automation. let me know if you need help with the automation
alias: mp3
sequence:
- service: media_player.play_media
data:
media_content_id: 'https://*******.duckdns.org:8123/local/sounds/welcome.mp3'
media_content_type: music
target:
device_id: 1380171f542aae627bed17e4c0075f56
mode: single
icon: 'hass:music'
Judging by your UI, you’re on HA latest version, so you can do it through the media integration which is enabled by default.
On your local integration, you’ll have a path like this: \\192.168.0.120\media, drop the .mp3 file there and then add the data below to your automation:
service: media_player.play_media
data:
media_content_id: 'media-source://media_source/local/welcome.mp3'
media_content_type: music
target:
device_id: 1380171f542aae627bed17e4c0075f56