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.