Sonos discovery across subnets

Hi, does anyone know which ports to open up to allow Sonos discovery across subnets? My HA server is in a secure IoT vlan, the Sonos speakers are in the base network. If I unsecure the firewall and open up everything between the subnets, discovery works fine, as long as I specify the Sonos IP addresses in the config, as per the docs. But with the firewall in place it doesn’t work. I have tried opening up all the ports as per this Sonos support article: https://support.sonos.com/s/article/688?language=en_US and also port 1400 which is mentioned in the integration docs but no go. I have a Ubiquiti UDM for a router. Cheers, Colin.

Hey,

anything new on this?
Have the same issue. Android and PC App works fine, after I configured my unifi by this post: https://help.ui.com/hc/en-us/articles/360001004034-UniFi-Best-Practices-for-Managing-Chromecast-Google-Home-on-UniFi-Network, but home-assistant cannot find any Sonos devices.
I can ping my devices from hass host via name and ip, but discovery wont work.

Thanks and have a nice one

Did you try setting up the configuration.yaml according to the doc? This is what I had to do and it works perfectly. Since you can reach your Sonos units from HASS via ping, I imagine this should be all you need:

sonos:
  media_player:
    hosts:
      - 192.0.2.25
      - 192.0.2.26
      - 192.0.2.27
3 Likes

While having the firewall ports open is important, the bigger piece of the puzzle is making sure that igmp_proxy is configured correctly on your UDM. My Sonos devices are all on my IoT VLAN and get discovered automatically by HA without having to define their IP addresses in any config.

This article is almost two old, but still applies. Pay close attention to setting up igmp_proxy correctly.

http://www.jeffsloyer.io/post/sonos-usg-firewall-ports/

1 Like