Home Assistant Community Add-on: Spotify Connect

Sorry for that. The question was more in the line of “is it doable somehow?”

Don’t be sorry, that is a perfectly valid question.
Doable, sure if you are running Hassio on a Generic Linux machine (e.g., Ubuntu) I guess you could create some kind of virtual audio device that actually sends it out. (But that is just tinkering, and not actually tried by myself).

The Google Home is already a Spotify Connect enabled device btw, so you don’t need anything special for that.

Sure it is, but Sonos´sound quality is superior by far.

I hope integration with GA comes soon, otherwise I´m looking into Volumio and a new sound setting.

Maybe you missed my point, Google Home already support Spotify Connect, since it is actually a Spotify client itself. Adds Spotify to your Google Home, and it will popup just like this add-on does.

If you use librespot, the actual library I imagine @frenck is using, you can output to a named pipe. Then you find a tool that accepts a named pipe as input and can cast to Sonos.

I use forked-daapd to do this with Airplay, for example.

Sounds promising, but I don´t know squat about programming. I was looking into consumer level stuff, thanks!

:tada: Release v0.2.0

Full Changelog

This release adds password checks against the HaveIBeenPwned password database and now supports the use of your Home Assistant secrets file! So you can now use !secret spotify_password as your password and the add-on will fetch the actual password from your secrets file.

Added

  • Secrets support and HaveIBeenPwned checks

Changed

  • Upgrades base image to v2.1.0
  • Sets default Shell
  • Less aggressive cleanup
  • Sets default Shell
  • Pins Ubuntu packages to specific versions
  • Updates README and links

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v0.2.1

Full Changelog

Changed

  • Upgrades base image to v2.1.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Is it possible to use this addon with multiple spotify-users?

So that the device pops up in my account and in the account of my wife? (linked in one family-account of spotify)

That is not yet possible, nevertheless, it is under development at the upstream project.

Hey Frenck, thanks for the great add on. Just wondering if this can output to a chromecast audio device? My goal is to use Alexa to stream audio to my speakers which are connected with the Chromecast Audio. Please let me know if this is possible already?

Discourse had this handy search button at the top: Home Assistant Community Add-on: Spotify Connect

Do you know of any other solution I can achieve this then, mate?

I’ve been searching my ass of for such a solution, none found.

As far I discovered/found out, it is currently simple impossible to technically achieve this. This is based on answers to the same questions on similar projects and based on my own research.

Hi, I am not sure if here is the right place to pose the question. Trying to setup, i get an error in the log of Home Assisitan (About):
Login attempt or request with invalid authentication from 89.200.45.76
Followed the installation to the letter, found some treads in various sites with similar issues, nothing helped.
Any thought where i might need to look for a solution?

:tada: Release v0.3.0

Full Changelog

Changed

  • Upgrades Ubuntu Base image to 2.2.0
  • Adds Hassio API security role

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

First of all thank you for this amazing addon but I’m encountering this problem:

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 00-banner.sh: executing…
[cont-init.d] 00-banner.sh: exited 267.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…
s6-maximumtime: warning: child process crashed
[cont-finish.d] 99-message.sh: exited 111.
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.

Any ideas what I could be doing wrong?

Thanks in advance!

Same issue here… did you manage to fix it?

Food for thought. Can this be used to recognize all other devices on the network (just like the phone app) in order to resolve the disappearing source list situation for the spotify media player component?

No, this add-on just acts like a Spotify client that supports the Spotify Connect protocol.
As far as I know it’s not capable to do what you want since Spotify Connect itself is very dynamic.

1 Like