Hi, I’m using Hass.IO on a raspberry with the Spotify connect plugin.
Following this tutorial: https://www.home-assistant.io/integrations/spotify/ I managed to connect to Spotify and control the player, IF hass.io is selected as a player in spotify.
But if that is not the case, because I maybe listened to spotify on my phone or PC in betwwen, I get this error:
Failed to call service media_player/media_play_pause. http status: 404, code:-1 - https://api.spotify.com/v1/me/player/play: Player command failed: No active device found
Is there a way to tell spotify to use hass.io as a player via a command/service/event, before sending a playlist command?