AmpliPi Spotify Connect device disappears from available devices API

Hi,

I’m trying to use AmpliPi as a reliable Spotify Connect target for a Home Assistant automation (functioning as an alarm clock), but I’m seeing inconsistent availability.

The AmpliPi Spotify Connect stream sometimes disappears from Spotify’s available devices list, even though the amp is powered on and connected. When that happens, API calls fail with Device not found.

Specifically, the stream drops out of the response from:

https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices

At the same time, other sinks (Web Player, TV, laptop) may still be listed, even if they are not actively playing.

Since AmpliPi is intended to be always-on, I would expect its Spotify Connect stream to remain consistently present in /me/player/devices. Is there a reason it would stop advertising itself to Spotify while still powered and online?

Thanks.

Hey CtrlAltMusic!

This appears to be an example of the issue explained in another recent thread. Basically, Spotify has done some sort of update that has caused even official (non community) implementations of their Spotify Connect functionality to break or be very unpredictable on a per-account basis

We’re currently testing an upgrade to our spotify provider, go-librespot, just in case that helps but we’ve only just updated our office unit with that this morning and have a lot of testing to due given how inconsistent the issues were on a per-account basis previously

For what its worth I’m sorry you have to go thru this.. Fingers crossed for a clean fix

1 Like