If you have your HomeAssistant running in a different VLAN than your Sonos. You might find that Sonos doesn't get discovered. Even if you put your phone on a different VLAN than Sonos and open the app Sonos will tell you there are no devices. Sonos confirmed that the devices should be in the same subnet.
Now this could be troublesome. Because if you move Sonos to your server environment, you can't use Sonos on your phone, unless you migrate your phones as well. I tried everything from mDNS to UPD relays, opening my whole firewall... Nothing worked.. While I could access everything from HA, read the sonos files etc... I just couldn't discover them.
You can also migrate your whole HA to the Sonos VLAN, but the issue for me was clients are not allowed to reach management, but HA should be able to reach management... Also a lot of application immediately broke when I did.
My setup:
ProxmoxVE running HA.
VLANS
10 Management
20 Servers (HA)
30 Clients (Phones, Sonos because you really want them on the same net)
40 IoT
50 Cameras
60 Guests
FW rules
Servers -> Management
Servers -> Clients
Clients X Management
Clients -> Servers (not all clients are allowed all server access but this is just for visuals).
So, in proxmox, what I did was create a second network interface. The first one has tag 20 and the second one has tag 30. Note I use vmbr1 on LAN side as vmbr0 is WAN side as I run OPNsense router in Proxmox as well.

Now HA receives 2 IP addresses. Let HA boot, and in network settings you see 2 adapters. The left one is often the primary one.
If it is the wrong one, scroll down and deselect automatic. From here you can select them manually. Make sure your original VLAN is the standard one.
Reboot HA and check if the original VLAN is primary, and the seconday is the sonos VLAN. If it doesn't auto-discover go to intergrations -> Add -> Sonos and it should find your speakers.
If someone got a better solution I would greatly appreciate it.



