Home Assistant Community Add-on: Spotify Connect

:tada: Release v0.5.0

Full Changelog

Changed

  • :arrow_up: Upgrades add-on base image to 3.0.0
  • :hammer: Makes log_level optional
  • :fire: Removes custom log format override
  • :arrow_up: cargo to 0.32.0-1~exp1ubuntu1~18.04.1
  • :arrow_up: rustc to 1.31.0+dfsg1+llvm-2ubuntu1~18.04.1
  • :arrow_up: Upgrades Spotifyd to 0.2.8
  • :hammer: Rewrite add-on onto Bashio
  • :ambulance: Workaround Docker issue by reinstating legacy tags

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

Hi,

HomeAssistant in Spotify Addon is writing me this:

[WARN] e(BFailed to register IPv6 receiver: Os { code: 19, kind: Other, message: “No such device” }

And in spotify I can see this: (“this cant be played now”)
35

Please, can you help me? :slight_smile:

Docker 18.09.1 (or newer) forbids access to sound devices which Hass.io relies on.

*There is no remediation for this available yet.

When you say not available yet, is that something you are working on or does that need addressing somewhere else?

I am running Hass.io on Ubuntu server and see the same “no output available”

That issue has been addressed, but you might be required to run the Hass.io installer again (in case of a generic Linux install). Don’t worry, you can just run it again on an existing server.

:tada: Release v0.5.1

Full Changelog

Changed

  • :arrow_up: Upgrades base image to v3.1.0
  • :fire: Removes default config options
  • :hammer: Simplifies add-on code logic

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

Complete newbie to Hassio

How do i add output sources as only have hass.io or how do I connect to my sonos which is on the hassio server. Thanks

:tada: Release v0.5.2

Full Changelog

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to 3.1.1

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

I have to restart the spotify addon like everyday before I can start streaming music to the client. Otherwise it seems to be offline.

Is this a known limitation or am I able to fix it anyhow?

Many thanks in advance! :nerd_face:

:tada: Release v0.6.0

Full Changelog

This release upgrades all internals of the add-on.

:hammer: Changes

  • :arrow_up: Upgrades cargo to 0.33.0-1ubuntu1~18.04.1
  • :arrow_up: Upgrades rustc to 1.32.0+dfsg1+llvm-1ubuntu1~18.04.1
  • :arrow_up: Upgrades spotifyd to 0.2.9
  • :arrow_up: Upgrades spotifyd to 0.2.10
  • :arrow_up: Upgrades add-on base image to v3.1.3
  • :arrow_up: Upgrades libssl-dev to 1.1.1-1ubuntu2.1~18.04.3
  • :arrow_up: Upgrades Spotifyd to 0.2.11
  • :pencil2: Maintaince -> Maintenance
  • :sparkles: Adds FUNDING.yml

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

Same here!

Wed Jul 10 2019 15:42:20 GMT-0300 (Horário Padrão de Brasília)
http status: 404, code:-1 - https://api.spotify.com/v1/me/player/play:
 Player command failed: No active device found
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/spotipy/client.py", line 121, in _internal_call
    r.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.spotify.com/v1/me/player/play

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call
    self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 194, in handle_service
    required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 316, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/spotify/media_player.py", line 229, in media_play
    self._player.start_playback()
  File "/usr/local/lib/python3.7/site-packages/spotipy/client.py", line 913, in start_playback
    return self._put(self._append_device_id("me/player/play", device_id), payload=data)
  File "/usr/local/lib/python3.7/site-packages/spotipy/client.py", line 190, in _put
    return self._internal_call('PUT', url, payload, kwargs)
  File "/usr/local/lib/python3.7/site-packages/spotipy/client.py", line 126, in _internal_call
    headers=r.headers)
spotipy.client.SpotifyException: http status: 404, code:-1 - https://api.spotify.com/v1/me/player/play:
 Player command failed: No active device found

Using Add-on v0.6.0
Hass.io 168
HassOS 2.12
HA 0.95.4

same here it seems that they will never fix

Just to add a comment:

This is the log into Spotify Connect add-on:

07:59:34 [INFO] e(BTrack "Lisboa Antiga" loaded
10:13:24 [ERROR] e(BOs { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }

After some time without playing any music, the source disappear and shows this “error”.

Maybe if we had a button to restart the add-on when this happened, it would solve the problem (at least, for now)…

:tada: Release v0.6.1

Full Changelog

This general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v3.2.0
  • :arrow_up: Upgrades cargo to 0.36.0-0ubuntu1~18.04.1
  • :arrow_up: Upgrades libssl-dev to 1.1.1-1ubuntu2.1~18.04.4
  • :arrow_up: Upgrades rustc to 1.35.0+dfsg0.1+llvm-0ubuntu1~18.04.1

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

Hello,

I am new to this and I would like to know where to add the repository so that they work, since you will only get me to play the song but I cannot change the song or pause,

thank you

guys

on my Denon receive, i also have the spotify connect, but since a year alomost, spotify connect is now included in the free subscription, but my denon is quite old, and doesnt get the update anymore to use connect as a free service (new sdk needed on receivers)

so i was thinking about this add-on
is it possible to install this addon on my hassio, then when i play/stream something, this add-on will forward the stream to a media_player entity in hassio ?

i have hassio on my esxi server, so not a PI or something, so i cant add speakers to it :slight_smile:
thats why i wanted to know if its possible to forward the stream or something like that

Hi Franck,
great adds-on!!
I would like to automate the spotify entity using media_player or other entity type but I didn’t find nothing.
I checked into the entities list in the configuration panel.
Is this feature supported ?

Can I create an automation that will trigger play “next” or “previous” song in a playlist? If so, what are the variables that I need to use?

Hi,
Since the HA update 100.2 i’ve got some mistakes using spotify conect.
I run spotify connect on PI3+ and the sound throught my amplifier with jack 3.5 is very slow and not at is normal volume who’s level is low.

I test with my phone and the problem is not my amplifier.

I don’t now if the update is the problem or spotify connect.

I’m the only one in this situation or someones meet the same issu ?

Regards

Hi,
Call this service :
media_player.media_next_track
with data : {‘entity_id’:‘media_player.spotify’}