For a while, it`s impossible to me to add the SONOS components. I always have an error mentioning “No Sonos device for on the Network.”
Any idea what can be causing this ? I tried the old way with the configuration.yaml and now with the integration tab but still I never get any speakers.
Im using only one subnet (my Sonos are in the same subnet as my home assistant and Im on a flat VLAN). I used to have my HASS in a PI (I had the same issue). I moved to Ubuntu with Docker and issue is still there. I also tried with a fresh install and… same problem. They used to work and they just stopped suddenly. By the way, no firewall is in the path.
For Docker, be sure to use the --net=host setting. If that doesn’t help, try enabling Sonos logging and send me the logs (my e-mail address in on my GitHub profile or you can put it somewhere and PM me a link).
logger:
default: info
logs:
homeassistant.components.sonos: debug
pysonos: debug
Oh … don’t run with that logger configuration permanently, it will generate a lot of logs. Just enable it, restart Home Assistant, copy the log file, remove the configuration and restart again.
For others who find this thread: my problem was I had a firewall on my raspberry pi. I tried a bunch of allow based on ports that sonos said to open, but it didn’t work.Then I just turned it off and all was good: sudo ufw disable
It seems like it, I found this issue with the same error message in the supporting library: https://github.com/SoCo/SoCo/issues/518. Apparently, the number of groups cannot exceed about 20.
It is possible to fix the library but that requires a developer with access to such a big system.
It is hard to say what to change when you don’t tell what you currently have.
You must enable host networking (see the note at the top of Installation - Home Assistant ) and disable any local firewall. Sonos and Home Assistant should be on the same VLAN.
When configuring Sonos Integration via yaml, you can specify hosts by IP address - this lets Sonos to be found across VLANs. This manual ability to add IPs would be helpful in the UI based config.
I do have an IoT VLAN/network. Across my VLANs I do have enabled mDNS Auto-Discovery.
The SONOS application itself can find m Sonos devices. Is there a way how I can manually add the Sonos Integration? I can’t add it now as I get the message that Home Assistant did not found any devices.
I had problems for a long time adding my Sonos speakers to my Home Assistant installation. The official integration indicated that no Sonos speakers were available, and when manually adding them, nothing showed up as available.
Finally, I found a solution to my problem, my speakers were apparently still linked to another Home System, that of my parents. I had to transfer ownership of my speakers to my personal Sonos account to make them available again in Home Assistant. In the Sonos app, this can be done under Settings > General Settings > Transfer System Ownership. Just make sure you have access to the Sonos account that the speakers are currently linked to. I believe it’s also possible to do a Factory Reset of the speakers, but I haven’t tested this method.
After transferring the speakers to my personal Sonos account, I was able to use the official Sonos integration and my speakers became available again in Home Assistant.
It might be a very specific problem that I had, but possibly a solution for multiple people here.
I have same issue started recently. My sonos speaker (only have one) stopped working. When I try to added it to the HA does load but do not show any entities for it. I have removed it several times and reload it but no luck. It was working fine last week. On the Sonos app on the phone I have tried to change the network to a different ones but still nothing. I can use my sonos speaker from my phone and no issues. HA is on plugged in directly to router and and Sonos is on the WiFi network. Today when I try to add it, I get no speaker found on the network. Appreciate any help. I have HA green.