Home Assistant Community Add-on: Spotify Connect

Boa noite

Infelizmente não funciona.
O Spotfy do celular se conecta ao home assistant, no log é possível ver que quando dou play na música o addon recebe isso porém não reproduz o som.

Either Home Assistant OS 11.2 (aarch64 / odroid-n2) or Home Assistant Core: 2023.12.0 broke/removed the support for the analog 3.5mm output jack. I created an issue here 11.2 broke Audio out via 3,5 jack on Hass Blue (Odroid n2+) · Issue #3010 · home-assistant/operating-system · GitHub
And post here
3.5mm analog output jack doesn't work anymore since 11.2

I hope this get fixed soon and the analog output becomes a regression test item for every release so we don’t run into this again…

1 Like

Supervisor 2023.12.1 fixed this for me.

Is there a way to control volume in a different way then through Spotify client? The volume of this addon is way lower than the squeezelite addon, even with volume in Spotify client turned to max.

My issue was closed & locked on the github :frowning: Volume very low · Issue #246 · hassio-addons/addon-spotify-connect · GitHub

Hi!
Im hoping that someone can help me understand some things with this add-on.

So, i installed this add-on and it works perfectly! However, i was hoping to have a media_player entity created with this, and that did not happen.

To rectify this, i used the VLC add-on which made my pi as a media_player - great! Called this “backyard speakers”.
I then installed MASS to play music/radio to this new entity from HA (not only spotify).

HOWEVER, if i am playing music from the spotify app to my spotify connect add-on, I have no way to stop the playback from HA.
ADDITIONALLY, if i choose to play something now from MASS to my “backyard speakers” media_player entity from HA, it plays OVERTOP of the spotify that is playing, as in, at the same time…

I guess i should have expected this as its two separate services with no relationship to one another, but i was still surprised.

Can somone smarter than me please help me unify things here so i can:

  • control media playback from HA of the spotify connect device
  • if playback is started from MASS, it should stop the spotify connect playback and visa-versa

Thank you so much in advance!

I wanted to install this addon from HACS, but I cannot find it, also the link provided on github us not working for me.

Are the any updated installation instructions for 2024.8?

I think the repo was moved at some point from it’s original location.

Is this what you are looking for?
Home Assistant Community Add-on: Spotify Connect

Hope it helps!

Yes, this is exactly the github repo I am referring to. The link provided there does not work, also manully searching in HACS does not show any results for Spotify Connect.

What am I doing wrong?

@petwri
Your link looks OK to me.

You could also try this one:
http://homeassistant:8123/hassio/addon/a0d7b954_spotify/info

You could also just go to your HA \ Settings \ Addons \ Store and search for Spotify Connect.

Here’s another document with the install config parameters that might help:
https://github.com/hassio-addons/addon-spotify-connect/blob/a1f0d43a60172cb7f5df569742977d5838e70bc5/spotify/DOCS.md

It only took me 10 times reading the instructions to finally realize it: we’re talking addons here, not integrations. My home-assistant is not running HAOS, but in a Docker container, so no Add-on store.

Are there any installation instructions for running this addon in a docker and manually installing it?

Not for sure on that. You will probably need to reach out to the add on author for that one.

My add-on is crashing…

[2024-08-30T22:04:50Z INFO  librespot] librespot 0.4.2 UNKNOWN (Built on 2024-01-06, Build ID: 8ZfE3H9w, Profile: release)
[2024-08-30T22:04:50Z WARN  librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:4070
[2024-08-30T22:04:50Z WARN  librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:443
[2024-08-30T22:04:50Z WARN  librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:80
[2024-08-30T22:04:50Z WARN  librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:443
[2024-08-30T22:04:50Z INFO  librespot_core::session] Connecting to AP "ap-guc3.spotify.com:4070"
[2024-08-30T22:04:51Z ERROR librespot] Connection failed: Login failed with reason: Bad credentials
[00:04:51] WARNING: spotifyd crashed, halting add-on

so I was thinking my spotify username and pass are not correct ? But they are…

@Faecon
Ya, unfortunately librespot is still having issues due to some changes that Spotify made to their API. I’m not sure where they are at on figuring it out, but you can check this link for librespot and this link for SpotifyConnect addon for more details.

so at the moment it is not possible to play a spotify playlist ? I wan to play some playlists on my sonosses.
It’s no disaster, but would be nice…

@Faecon
Not sure if librespot has been fixed yet - check the links in my previous reply. I don’t use librespot, so not sure.

So what do you use ?

@Faecon
I am the author of the SpotifyPlus integration, which is a direct replacement for the native HA Spotify integration. I also wrote the underlying SpotifyWebApiPython Python 3 Library that interfaces with the Spotify Web API. It does not use librespot, snapcast, or the SpotifyConnect addon.

SpotifyPlus supports Sonos devices, as well as most devices that implement the Spotify Connect protocol (Bose, Yamaha, TCL, etc). I personally use it with my Sonos Symfonisk speaker as well as Bose SoundTouch devices. It does not support Chromecast devices at this time.

More Information Links

Hope it helps!

1 Like

Top. Thanks for your reply. I will check it tomorrow

1 Like

Installed it. Will search tomorrow to find out how to play a playlist. Not enough time today

1 Like

@Faecon
I would suggest that we move the SpotifyPlus discussion to SpotifyPlus integration HA Community forum post for more help and information, as the detailed questions are off-topic for the current SpotifyConnect integration forum post. With that said …

Check out the Services Provided wiki documentation for a list of provided services.

Quick example of the Player Media Play Context service call (change the entity_id value to yours):

service: spotifyplus.player_media_play_context
data:
  entity_id: media_player.spotifyplus_john_s
  context_uri: spotify:playlist:6M8n0Sp9895BXEE0MbGPde
1 Like

Are you still maintaining your fork? I really, really need the option to set the initial volume.
Also, I see you added changing the volume control (linear, log, fixed) - is it possible to also add cubic volume control?