This addon allows you to play Spotify music on your HomePods.
It is based on OwnTone and librespot. And can be integrated into Home Assistant with the OwnTone integration.
Please keep in mind that this addon is experimental. I have been using it myself for a long time without any major issue. But small audio drops (for like 1-10 seconds) are really common. So please do not report them.
Updating from an older version (28.x)
The image was rebuilt on the official OwnTone container and now uses librespot instead of librespot-java, since neither linuxserver/daapd nor librespot-java is maintained anymore. Two things to do after updating:
- Select “Home Assistant” in Spotify once more. The old login cannot be reused.
- If you customized
librespot-java.toml, the settings moved to/config/owntone/librespot.conf. The oldlibrespot-java.tomlandcredentials.jsoncan be deleted.
Your owntone.conf is kept as it is.
Features
- OwnTone & librespot inside one Docker image
- Ready out of the box with zeroconf & Home Assistant integration
- Control OwnTone through Home Assistant
- Metadata support (visible in Home Assistant)
- Fully customizable through the config files in
/config/owntone
Requirements
- A Spotify Premium account
- At least one HomePod
- Correct set up in the Home app
- Home → Home Settings → Allow Speaker & TV Access → Anyone On the same Network
- Home → Home Settings → Allow Speaker & TV Access → Require Password: Disabled
- VSCode addon or any other text editor to edit the configuration
Limitations
- You cannot control the playback through the HomePods. Only through Spotify. (Volume adjustments are possible, though)
- Sometimes the addon becomes unresponsive. A restart should fix it.
- The streams are maybe not in perfect sync. You will notice that if you have multiple HomePods in the same room.
- Sometimes the playback stops for a few seconds and then continues afterwards. (Without issuing play/pause commands)
Installation
Configuration
You can use the VSCode add-on to customize the configuration.
You can configure OwnTone through its configuration file. It can be found at /config/owntone/owntone.conf.
librespot is configurable through /config/owntone/librespot.conf, where you can set the name shown in Spotify (LIBRESPOT_NAME) and any extra librespot flags (LIBRESPOT_OPTS), for example the audio quality, autoplay or the initial volume. The file lists the most useful ones.
After adjusting something, please restart the add-on.
There is no account to configure. Spotify dropped username/password logins, so you selehe device list in the Spotify app once and the add-on stays paired with that account. Topair it with a different account, stop the add-on, delete /config/owntone/librespot and select it again from there.
Access OwnTone
You can access OwnTone through [Home Assistant IP]:3689
OwnTone Credentials
Username: admin
Password: owntoneadmin8765
Automation
I also created a blueprint that can automatically start and stop music in different roode an occupancy or motion sensor.
Import the blueprint:
Troubleshooting
I cannot see the Home Assistant speaker through Spotify Connect.
The speaker is announced over zeroconf/mDNS, so the device running Spotify has to be able to reach Home Assistant directly:
- Both have to be on the same network. mDNS does not cross VLANs or subnets unless you
- Client/AP isolation on the Wi-Fi has to be disabled.
- Check the add-on log. It should show a line like
librespot 0.8.0shortly after the - Restart the add-on and close and reopen Spotify afterwards.
Providing your Spotify username and password is not possible anymore, Spotify removed that login method. The device list is the only way in.
References
- This addon is inspired by the OwnTone addon from a-marcel
- Source code of the Docker image: custom-images/owntone at main · AlexanderBabel/custom-images · GitHub
- Source code of the addon: GitHub - AlexanderBabel/hassio-addons: Hass.io Add-ons by AlexanderBabel · GitHub

