๐ต Music Assistant
![]()
Music Assistant is a music library manager and multi-room player. It combines your streaming services (Spotify, Apple Music, Tidal, Deezer, YouTube Music โฆ), internet radio and local files into one library, and plays them on almost any speaker: Sonos, AirPlay, Chromecast, Squeezebox, DLNA, Snapcast and Sendspin (e.g. TECHO5 voice satellites).
Together with Home Assistant it gives you voice control like โplay Linkin Park in the bathroomโ and a media player entity for every speaker.
๐ท๏ธ Category: Media, Home Automation
๐ณ Image: ghcr.io/music-assistant/server:latest
โ ๏ธ Requires: Host networking (mDNS/SSDP discovery of speakers) ยท Same (V)LAN as your speakers
๐ Links
| ย | ย |
|---|---|
| ๐ฆ Project | github.com/music-assistant/server |
| ๐ Documentation | music-assistant.io |
| ๐ Home Assistant | home-assistant.io/integrations/music_assistant |
| ๐ Support | GitHub Issues |
๐ Network
| Setting | Value |
|---|---|
| Network mode | host (required โ speakers are discovered via mDNS/SSDP/multicast) |
| Port | 8095 TCP โ web interface and API (Home Assistant connects here) |
| Port | 8097 TCP โ audio streams to the players |
There is no port mapping because the container uses the host network stack.
๐พ Volumes
| Host Path | Container Path | Mode | Description |
|---|---|---|---|
/mnt/cache/appdata/music-assistant | /data | RW | Settings, library database and cache. Back this up. |
โ๏ธ Environment Variables
| Variable | Default | Masked | Description |
|---|---|---|---|
TZ | Europe/Vienna | โ | Timezone |
LOG_LEVEL | info | โ | critical, error, warning, info, debug |
๐ Extra Parameters
--cap-add=SYS_ADMIN --cap-add=DAC_READ_SEARCH --security-opt apparmor:unconfined โ needed only if Music Assistant should mount SMB/NFS shares for local music files. Without network shares you can remove them.
๐ Setup
- Install the template and open
http://YOUR_SERVER_IP:8095. - Create the admin account, then add music providers (e.g. Spotify โ needs Premium, Apple Music, Radio Browser, a local folder).
- Add player providers: Sonos, AirPlay, Chromecast, Sendspin โฆ โ most are found automatically.
- In Home Assistant: Settings โ Devices & services โ Add Integration โ Music Assistant โ URL
http://YOUR_SERVER_IP:8095. - For voice control, expose the Music Assistant players to Assist; an LLM conversation agent can then use โplay โฆ in โฆโ.
๐ ๏ธ Troubleshooting
| Problem | Fix |
|---|---|
| Speakers are not found | Host networking? Same VLAN? mDNS not blocked by the firewall? |
| Sonos plays but stutters | Check port 8097 is reachable from the speakers |
| Home Assistant canโt connect | URL must point to port 8095, no trailing path |
| Local share canโt be mounted | Keep the extra parameters (SYS_ADMIN, DAC_READ_SEARCH, apparmor:unconfined) |
๐ก Best Practices
- Run it on the same host as Home Assistant for the lowest latency
- Use the Radio Browser provider for internet radio, or add your own stream URLs
- Back up
/dataโ it holds your providersโ logins and your library