PM67 has it.
- Make sure your https://my.home-assistant.io/ link points to the right instance
- Point your My Dashboard | Spotify for Developers link to Link to OAuth2 Authorize Callback – My Home Assistant
This should then work!
PM67 has it.
This should then work!
Hi there.
I have followed the instructions you posted and i get an error INVALID_CLIENT: Invalid client
My developer app is pointed to https://my.home-assistant.io/redirect/oauth
And when i try to add the integration i get redirect_uri=https://my.home-assistant.io/redirect/oauth
in the address bar.
I cant see whats wrong. Ive followed multiple guides and it refuses to work.
Thanks, this was the solution for me, tried most of the options in the above replies. Cheers
After following the updated official documentation I ran into this error, the URI that I had to enter was quite a bit different from the URI people have been mentioning in this thread:
Link to OAuth2 Authorize Callback – My Home Assistant
I am using duckdns on my HomeAssistant instance, but thought this was a pretty strange URI.
Thanks for this super helpful guide!
Does anyone had following problem?
I managed to change the Redirect URI in developer dashboard to:
In node-red click Start Authentication, then Spotify asked for my permission, i agreed, and then 401: Unauthorized error occured.
Can anyone help?
After my first try with RedirectionURL set to Link to OAuth2 Authorize Callback – My Home Assistant
Spotify integration did not appeared in the list of integrations.
After changing the RedirectionURIs in Spotify Developer when I try to Add Spotify Integration in HA again, the authorizationURL still uses the first RedirectionURL and fails to create integration (again).
It ignores any changes I make to RedirectionURL in Spotify Developer.
Even removing the Spotify Credential in HA and re-creating them doesn’t help.
Does anyone know where in HA should I delete the old URL to persuade HA to apply current/changed RedirectionURL from Spotify Developer?
I’ve got exactly same issue. Seems like link is not refreshing.
when I add the Spotify HA integration the URL shown it’s not even including my correct client_id and there is no way to make it working.
I tried to force-paste the correct client_id into the url and then it’s opening a new web page where I’m asked to “Link account to Home Assistant?” but when I link it I’m sent back to HA integration page with an “Error” window popped up.
I think I need to force-past my client_secret as well but I can’t figure out where in the URL it should stay.
I fixed my issue. Hope what below can help someone with same condition:
Basically I discovered HA kept stored credentials from a previous Spotify setup.
This was also the reason the URL generated was not matching with my client’s details.
Removing them worked and now I can add properly my Spotify integration.
To do that you should go to http://homeassistant.local:8123/config/application_credentials
and check if any Spotify credential is already stored. Then simply remove it.
After this, the process should work well
Thank you, seems that I also managed to link my spotify account to the integration.
You saved me from doom! 60+ minutes wasted. The documentation really should be updated.
Thanks for sharing this solution @andriy7811 ! I was stuck on this for a while.
I’ve now submitted a pull request on the HA Spotify documentation to make it clear past Spotify credentials may need to be removed and how.
fixed
Too bad the music assistant also does not work, for this moment until a new version is out
Hey PM67,
Sorry to bother u but im not very computer savvy but i having the same issues with my login to Spotify on HA. I just installed HA a few days ago after seeing a few you tubes and buying the Odroid M2+. It works like a dream but when i tied to add and integrate spotify via the HA it came back with the to the “INVALID_CLIENT: Invalid client”. I dont know where to find the Spotify developers option to make the changes listed. Any thoughts or baby steps to get it done. Maybe a you tube, i couldnt find anything
Cheers Jonathan (Thailand)
jeez this is complicated. The guide is misleading. It says Please copy and paste the exact URL above. You **do not** have to change it.
. Well, I copied it as such, and I get INVALID_CLIENT: Invalid redirect URI
. Now that I retry this, removing the failed oauth in between each time from :8123/config/application_credentials
, it still always uses the redirect url of the guide. Somehow it’s stuck in system, event though I went to spotify page and edited the real dns name along with the port there.
Where do I need to remove the https://my.home-assistant.io/redirect/oauth
url? I tried even private browser in FF, and it still remembers the original url from guide.
I figured. The problem is https://my.home-assistant.io link takes me to another HA instance than my home. I found there is edit button for the real HA url on the given page. I changed it to my home instance url with the port. But still I get the same invalid redirect url.
I removed the app from spotify.com, and recreated with slightly different name. This time I put my real url https://host.domain:port/redirect/oauth there, not the example domain. Still it uses the example url: redirect_uri=https://my.home-assistant.io