Audio in Home Assistant
10 min Read in this browser
You will be able to
- Add Sonos and WiiM to Home Assistant through the right integration
- Use the zones for announcements and grouping
- Work through a zone that's missing or slow to update
With every zone playing from the app, Home Assistant usually finds the system on its own. Each zone becomes a media player: the entity that automations play to, group, and announce through.
Sonos
Sonos speakers show up under Discovered in Devices & Services: confirm once, and every zone comes in, named as in the Sonos app. No password: the Sonos integration talks to the speakers on the local network.
The speakers also talk back, which is what keeps Home Assistant up to date the moment someone presses pause:
- Each speaker sends its updates to Home Assistant on TCP port 1400. Blocked, the integration falls back to polling, and Home Assistant lags behind the room.
- Announcements need TCP port 1443 on each speaker, the other way.
On a home network with the Hub on the same network as the speakers, neither needs any setting. They matter when a firewall or VLAN sits in between.
WiiM
A WiiM device is found by four integrations at once: WiiM, LinkPlay, Google Cast and DLNA, because it speaks all their protocols. Add it under WiiM only, and ignore the other discoveries. Each one you accept adds a second media player for the same device, and automations end up split between them.
The WiiM integration is new (Home Assistant 2026.4), and some guides still say LinkPlay. Use WiiM. Like Sonos, the device sends its updates back, so Home Assistant needs a correct internal URL (Settings › System › Network) that the device can reach.
What the homeowner gets
- Announcements. "The washing machine is done" plays over the music,
which drops in volume and comes back after. On Sonos, that's
media_player.play_mediawithannounce: true. - Grouping.
media_player.joinputs zones together, as the app does: "music everywhere" is one action. Sonos groups with Sonos, WiiM with WiiM. - Scenes. A "dinner" scene can start a playlist in the kitchen at a low volume, along with the lights.
A zone that's missing or slow
From the most likely cause:
- It's on another network: the guest network, or a VLAN the Hub isn't on. Discovery doesn't cross networks.
- Its address changed. Check the reservation.
- For Sonos, UPnP is off: adding it fails with a 403.
- Updates arrive late: something blocks the speakers from reaching Home Assistant (port 1400 for Sonos, the internal URL for WiiM).
Integration
The part of Home Assistant that connects one brand or protocol, such as Sonos, Lutron Caséta or Frigate, and brings its devices in.
VLAN
A virtual LAN: a separate network carried on the same cables and switches, kept apart from the others by the router and its firewall rules. Used to keep cameras or guests off the home network.
UPnP
Universal Plug and Play: a way for devices to find and control each other on the local network. Sonos needs it on for Home Assistant to control it; on a camera, turn it off.
Go further on selorahomes.com
What you read is saved in this browser only. Sign in to keep it in your account, take the quizzes and get certified.
This lesson by Selora Homes is licensed CC BY 4.0 : share and adapt it, even commercially, crediting Selora Homes with a link. Photos by others keep their own licences, as credited.