Invalid path error when playing from the media folder

After updating to 2021.2 I cannot seem to play from the media folder whether thru a script/automation or even using the media browser.

I get an “Failed to call service script.. Invalid path” error if i run a script with a play_media service call

- service: media_player.play_media
      data:
        media_content_id: media-source://media_source/local/Sound/homedoorbell.mp3
        media_content_type: music
      entity_id: media_player.kitchen_speaker

Even when using the media browser. clicking play produces an “Failed to call service media_player/play_media/ Invalid path” error


Not sure why but this started after i updated to 2021.2 yesterday.
Anyone having this same issue? How did you resolve this?
Thanks in advance.

Try adding the file directory to allowlist_external_urls in your homeassistant: configuration, https://www.home-assistant.io/docs/configuration/basic/#allowlist_external_dirs

It’s a bug, it’s fixed in 2021.2.1

2 Likes

I suspected it was a bug. Thanks for the info!!! @ludeeus
I hope they roll it our soon. It is affecting the baby sleep automation!! :laughing: