Home Assistant Sonos: Do They Work Well Together?
In this article
Yes, Home Assistant and Sonos work well together for most users, offering robust local control, automation, and multi-room audio integration that goes beyond the official Sonos app. While setup requires some technical comfort and occasional troubleshooting, the integration is stable and feature-rich for everyday use.
How the Integration Works
Home Assistant connects to Sonos speakers through your local network using the Sonos HTTP API and UPnP discovery. The official integration, built into Home Assistant, automatically finds your speakers and lets you control playback, volume, sources, and groups. It also exposes each speaker as a media player entity, which means you can use them in automations, dashboards, and voice assistants like Alexa or Google Home.
Key capabilities include:
- Play, pause, stop, next, and previous track control
- Volume and mute control per speaker or group
- Selecting sources (e.g., line-in, TV, or a specific playlist)
- Grouping and ungrouping speakers (e.g., for whole-home sync)
- Using Sonos as a text-to-speech (TTS) output for announcements
The integration relies on your speakers being on the same network as Home Assistant, and it communicates locally—no cloud dependency for basic control. That means if your internet goes down, you can still control local music sources and volumes, though streaming services like Spotify will still need internet.
Why People Use Home Assistant with Sonos
Most users pair the two to create automations that the Sonos app alone cannot do. For example, you can set your speakers to play a specific playlist when your front door unlocks, or lower the volume automatically when your smart doorbell rings. You can also use Sonos as a notification system: when a sensor detects motion or a calendar event starts, Home Assistant can speak a message through the speakers.
Another common use is integrating Sonos with other smart home devices. For instance, you can sync your lights to the beat of the music using the media player’s state and a light automation. Or you can pause music when you start a movie on your home theater system, and resume it afterward.
Home Assistant also gives you a unified dashboard. Instead of switching between the Sonos app and your smart home app, you can control everything from one interface, including volume sliders, playlists, and group management.
What Works Well
For most users, the integration is reliable and responsive. Playback control, volume changes, and grouping generally work instantly. The media player entities update in real time, so if you change the volume in the Sonos app, Home Assistant reflects that change almost immediately.
Text-to-speech is a standout feature. Home Assistant can send TTS messages to any Sonos speaker, and it handles the audio stream locally. You can choose from various TTS engines (like Google TTS or Microsoft Edge TTS) and even adjust the volume for announcements separately from the music volume.
Multi-room audio is also well-supported. You can create groups in Home Assistant and control them as a single entity, or use the Sonos app to group and then see the group in Home Assistant. This flexibility makes it easy to build whole-home audio scenes.
Common Problems and Limitations
Despite the overall stability, users report a few recurring issues. One is that the integration can occasionally lose connection, especially after a Sonos firmware update or a network change. A quick reload of the integration usually fixes it, but it can be annoying if it happens frequently.
Another limitation is that not all Sonos features are exposed. For example, you cannot adjust the bass or treble EQ directly from Home Assistant, nor can you access some advanced audio settings. You also cannot create or manage Sonos playlists from Home Assistant; you must do that in the Sonos app.
Streaming services can be tricky. While you can select a Spotify playlist as a source, you need to have the Sonos app set up with that service first. Home Assistant does not manage service credentials; it just controls playback.
Network configuration matters. If your Sonos speakers are on a different VLAN or subnet than Home Assistant, discovery may fail. You may need to configure mDNS or use static IPs to make it work reliably.
How to Set It Up
Setting up the integration is straightforward for most Home Assistant installations, especially if you use Home Assistant OS or a supervised installation.
- Ensure your Sonos speakers are powered on and connected to the same network as Home Assistant.
- In Home Assistant, go to Settings > Devices & Services.
- Click Add Integration and search for “Sonos”.
- Select your Sonos speaker from the discovered devices, or enter the IP address manually.
- Follow the prompts to complete the setup. Home Assistant will automatically find all other Sonos speakers on the network.
After setup, you can add the Sonos entities to your dashboard or start creating automations. If you have a large Sonos system, you may want to enable the “media player” and “group” entities for each speaker.
Choosing the Right Hardware
If you’re starting from scratch, consider which Sonos speakers are compatible with Home Assistant. All current Sonos models work, including the One, One SL, Beam, Arc, Move, Roam, and the older Play:1, Play:3, Play:5, and Connect. The integration uses the local API, so any speaker that supports Sonos’ local control will work.
For Home Assistant, you need a device that runs Home Assistant 24/7, such as a Raspberry Pi, a NAS, or a dedicated mini PC. The integration is lightweight and does not require a powerful machine. However, if you plan to use TTS frequently, ensure your Home Assistant device has enough CPU to stream audio without lag.
Network quality is crucial. Sonos uses a mesh network (SonosNet) if you connect one speaker via Ethernet, but if all speakers are on Wi-Fi, a strong router is essential. Home Assistant communicates over the same network, so a stable connection is key.
Costs and Alternatives
Home Assistant itself is free and open-source, but you will need hardware to run it (a Raspberry Pi costs around $50–$100). Sonos speakers are premium-priced, with the entry-level One starting around $200. There are no ongoing fees for the integration.
If you’re looking for alternatives, other multi-room audio systems like Bose, Bluesound, or Denon HEOS also have Home Assistant integrations, but they are generally less mature than Sonos. You could also use a Raspberry Pi with a DAC and software like Snapcast or Logitech Media Server for a DIY solution, but that requires more technical effort.
For those who already own Sonos, the integration is a no-brainer. If you’re deciding between Sonos and another system, the Home Assistant integration is a strong argument for Sonos because it is one of the most reliable and feature-complete options available.
Frequently Asked Questions
Can I use Home Assistant to play music from Spotify on Sonos?
Yes, but you need to link your Spotify account in the Sonos app first. Once that’s done, you can select Spotify as a source in Home Assistant and choose a playlist, album, or track. Home Assistant can also start playback based on automations, like playing a specific playlist when you arrive home.
Does Home Assistant work with Sonos when the internet is down?
Basic control (volume, play/pause, grouping) works locally without internet, as long as your speakers and Home Assistant are on the same network. However, streaming services like Spotify or Apple Music require an internet connection. If you have local music files (e.g., on a NAS), you can play those without internet.
Why does my Sonos speaker disappear from Home Assistant?
This usually happens after a Sonos firmware update or a network change. Try reloading the integration from Settings > Devices & Services. If that doesn’t work, restart your Sonos speakers and Home Assistant. Persistent issues may indicate a network problem, such as a firewall blocking UPnP or mDNS.
Can I control Sonos groups from Home Assistant?
Yes, you can create and manage groups. Home Assistant exposes each speaker as a media player, and there is a “group” feature that lets you combine speakers. You can also use the Sonos app to create a group, and Home Assistant will see it as a single entity.
Is it possible to use Sonos as a doorbell chime?
Yes, you can use an automation that plays a chime sound or TTS message when a doorbell button is pressed. Many users do this with a smart doorbell like Ring or a simple Zigbee button. You can also set different sounds for different events, like a door open or a motion sensor.