I am having the hardest time playing a local mp3 from my local media folder to a new Symfonisk speaker. I’ve installed the Sonos integration. Read through other posts that discuss the NGINX reverse proxy and other issues. I can tell there is communication between HA and the speaker as when I try to play a file, the Sonos app shows the filename correctly. If I try to play it from there I get the message that the file is no longer available at the ip address of the HA instance.
There are no log entries being generated, the file just doesn’t play. My http config is as follows:
Originally I only had the 192.168.1.0/24 entry, added the specific addresses of the HA instance and the speaker specifically, but those didn’t work. I also use Nabu Casa to reach externally, so no DuckDNS or anything. This is frustrating, but I have to believe this is something simple.
I am not currently playing mp3’s from my media folder but I remember reading in the docs that you need the following in your configuration.yaml, do you have that?
media_dirs:
media: /config/media
I assume that you have no problem playing mp3’s from your www folder as in the following script:
I don’t have that config as when I read the docs I see this
Home Assistant OS and Supervised
No action is needed from your end to set it up. Home Assistant will automatically use the “media” folder that is provided on these systems.
This applies as I’m using HA on a Raspberry Pi 4. Its a pretty vanilla install. I have not set up a script as just been trying to get things to work in the developer tools, so far unsuccessful. I have tried moving the file to the www folder as well, but no luck their either.
I’m pretty sure the integration is working. If I play something through the Sonos app, the cover art and the song name show up in the media player card in Lovelace when each song changes. Seems like somethings working anyway.
Well I was able to figure it out. As I suspected the problem was me. I was using the folder media, but wasn’t calling it correctly in the uri. Now working.