Pfsense Unifi VLAN and mdns

By any chance are you running pfblocker, or know if pfblocker can cause any disruptions?

Update: after setting up avahi on ri4 my phone/tablet can see the soundbar across vlans but no other devices can cast. is not a private internal IP address, that is a external real Internet Address. Try changing that ip range to range.