Help with mp3 script

Everything that I have read, says that this is correct, but I’m not getting the sound. Any help appreciated

vader:
  alias: Vader
  sequence:
  - data:
      media_content_id: "/config/www/sounds/darthvader.mp3"
      media_content_type: "music"
    entity_id: media_player.den_speaker
    service: media_player.play_media

You may have to white-list the config directory. https://www.home-assistant.io/docs/configuration/basic/#whitelist_external_dirs

Also I think the content ID must be specified as a URL rather than a path, e.g.

media_content_id: "https://myhassio.duckdns.org:8123/local/sounds/darthvader.mp3"

or

media_content_id: "http://<ip_address:8123>/local/sounds/darthvader.mp3"

One final thing, did you restart after creating the config/www directory?

One other thing is that when you reference the config/www directory it needs to be replaced with /local.

So

config/www/ == local/

Only for URLs, you can and should still use config/... when specifying paths.

Thanks for the reply,
Yes the www/… folder has been there for awhile.
I use Nabu Casa, should I use that address? I’ve tried the ip address but still nothing.

hmm…i guess i didn’t realize that.

thanks for the info.

I’ve tried every combination of addresses I can think of and nothing works. This is a Google Home Mini, if that makes a difference.
I’ve white listed the config directory
I’m at a loss
I get the “bleep” from the mini, but it doesn’t play the mp3

Can you play the mp3 in a web browser using the mp3 URL and a device not connected to your local network (mobile phone with wifi off for example)?

No I cannot
edit #1
I am running HA in Docker with Ubuntu 19.10 on a laptop
edit #2
I set up a Rpi as a file server, moved the mp3 to the share directory, and I still can’t get it to work. Apparently, I have some permission issues, somewhere
edit # 3
media_content_id: “http://<ip_address:8123>/local/sounds/darthvader.mp3”
P.S. One thing that I did do was to remove the Google devices and reintegrate them
is now working…I thought I tried that but apparently not.
Thanks