Spotify integration trouble

Hi
I have been trying to install Spotify integration, i have follow instruction and troubleshoot
but now luck, i always get “INVALID_CLIENT: Invalid client”
i have done spotify developers setup with my Redirect URIs
https://192.168.0.8:8123/auth/external/callback
http://homeassistant.local:8123/auth/external/callback

what else could try any tips?

thanks

As it says in the documentation, use Link to OAuth2 Authorize Callback – My Home Assistant

Screenshot 2025-02-03 160413

im not using my.home-assistant.io as the url for my server, but if i have to use it then im not sure how to change that

@Mcbain
You don’t have to change your Home Assistant url; you just need to specify the https://my.home-assistant.io/redirect/oauth entry in the Spotify Developer Application settings “Redirect URIs” entry. You need to specify the entry exactly as it is spelled, and without the ending slash. This is an internal url that Home Assistant uses to intercept the OAuth2 request redirect result.

Hope it helps!

Sorry same error… i dont understand it

@Mcbain
You might try going to the Application Credentials settings (under Settings \ Devices, click on 3 vertical dots menu in upper right and select Application Credentials) and see if it created any oauth2 application credentials related to spotify. If so, delete them.

You might also open the Spotify Web Player and logout of Spotify. That might at least force you into a logon screen the next time you try.

Can you supply a screen capture of your Spotify Developer Application settings? Just want to verify your Redirect URI’s are correct, and that you have the Web API option checked.

Hope it helps!

Hi
it works! :slight_smile:
thanks alot, can i buy you a coffee?

1 Like

@Mcbain
Not necessary on the coffee, glad I could help. I’ve received a lot of help on this forum, and I’m just paying it forward. Glad you got it resolved.

@Mcbain
I also added this to my SpotifyPlus Frequently Asked Questions list, as this has been asked a few times before.

If you’re interested in Spotify, check out the SpotifyPlus Integration; it can do everything that the HA Spotify integration can do, and it supports both Sonos and Google Chromecast devices (Spotcast not required). You can also use the same Spotify developer account Client ID / Secret that you created for the HA Spotify integration if you want. You can run them side-by-side to compare features too.

There is also a SpotifyPlus Card user-interface that contains a media player, and allows you to manage your Spotify favorites as well as search the Spotify catalog. You have to install the SpotifyPlus integration first though, and get it configured before you can use the SpotifyPlus Card.