Can't add some integrations

Hi there!

I’m very, very new to HS and new to doing these programming things. I am an excellent Googler tho and I’ve searched and searched and read the threads, but I don’t know how to fix this issue or what I’m doing wrong.

When installing some integrations ie. Spotify and Google, I create my tokens and API keys according to the documentation provided, but when I get to the last step to link my account to HS, the link opens in a new tab and then gives me an error. (See attached images.)

I have read something about redirects for authorizations and stuff, but I don’t understand how to make it work specifically. I did go back to Spotify and modified my app to add these two URLs as Redirect URIs and it still didn’t work. I even created a whole new app and tried to restart, but still nothing works. :frowning:

Link to OAuth2 Authorize Callback – My Home Assistant
http://homeassistant.local:8123/auth/external/callback

In my Application Credentials, my Google and Spotify credentials are there, but I still don’t see the apps on my Integrations page and I can’t configure them.

This happens for all the sites that I have to get APIs for. Can someone point me in the right direction?

Thank you so much in advance!

Gina

The URL at the bottom of the “My” page, is it correct?


Because according to the second screenshot, it is not.
You can edit it.

Hi Oliver!

Yes, the URL is correct. I’m running HA on an old HP laptop running Windows 10 through Virtual Box and I’m editing HA through that URL remoting from my main computer.

Gina

You get DNS error. Try change the instance URL by your IP, maybe Chrome can’t get the local DNS from Virtual Machine.

No the URL is incorrect for spotify access.
Home assistant needs to be accessible from the www.
2 options;

  1. Open port 8123 in your router to the local IP adress of your Home Assistant router
  2. Setup a domain, for example: https://homeassistantginjo.com:8123

Change the marked url according to the above option

afbeelding

Option 1 is insecure
Option 2 is (partially) covered

Thank you everyone! I figured it out. I’m so dumb! I didn’t realize you could edit the URL at the bottom of the first image where it asks to link your account.

I appreciate everyone’s replies.

:smiley: :hugs:

Isn’t it what I’ve “circled” in red on my reply telling you that you can edit it? :wink:
Anyway, it is solved, that’s what matters, right.

You sure did tell me! :smiling_face: LOL. Don’t know how I didn’t see or realize that.

Thanks so much, Oliver!