Hi friends,
I am trying to use the HA integration for Spotify and it seems to be struggling at listing devices available.
The “source list” (in the card or in the states) typically only contains devices that are currently selected on a Spotify app (eg. my desktop or someone’s smartphone’s app). So if I have the speaker I want to use selected as a target device on any app (eg. my smartphone’s Spotify app), I can see the source in HA and play on this device. If not, I don’t see my speaker in my source list and my scripts fail trying to address it…
Now, I don’t think that this is a problem with the HA integration, if I try to list devices with the API, I get the same results: I only see the devices currently selected on an app with my account at this moment.
Eg.
import spotipy
from spotipy.oauth2 import SpotifyOAuth
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="***",
client_secret="***",
redirect_uri="https://my.home-assistant.io/redirect/oauth",
scope="user-read-playback-state"))
print(sp.devices())
Has anyone been facing the same issue? Any known workaround ? … or am I missing the obvious ?
Cheers