Looks like your Sonos devices are not able to hit the DHCP Server. Had a similar issue a couple of years earlier. Also, my entire network would crash due to a broadcast storm the moment I brought any of these online. Finally fixed it by turning off Wifi in all devices that were connected via a wired network as well. Some troubleshooting steps that I remember.
1. Check if your Sonos devices are using the right WiFi network.
2. In Unifi Controller, check if you have defined the required VLANS in networks AND
set the right VLAN ID in the Wifi network Settings.
3. Power off all your Sonos devices (all of them).
4. One by one power your sonos devices and if they are connected via a wired network, disable the Wifi network (Disabling the WiFi Link on a Sonos Music Player
). Once it is online, proceed with the next one.
For me, everything worked like clockwork till I replaced my home network with a full Unifi Stack. Took me days of troubleshooting to figure it out. Sonos does not play well with Unifi.