Home Connect integration error

Found any solutions on this?

The integration does not work for me. For some reason I get an error after linking my HA.

but in your case, the redirect URI is wrong.

You need to enter https://my.home-assistant.io/redirect/oauth in the Redirect URIs and have My Home Assistant - Home Assistant integration activated (it is by default).

Does not work

I had the same problems, reloaded the error page where I got "error": "unauthorized_client" and then logged in with my account and then it worked. GL!

Hey guys, just solved this and sharing for future reference:

change the redirect uri from https://my.home-assistant.io/redirect/oauth to https://my.home-assistant.io/auth/external/callback

For some reason the instructions (Home Connect - Home Assistant) have wrong URL for the callback. I will make a pull request and propose a change.

2 Likes

I have tried with the updated URL without luck.
Are there any possible delays or caching done that I need to think about?

Apparently, yes, it’s all a matter of caching and propagating the changes to the defined applications in developer.home-connect.com.

I don’t know how long it actually takes, but I’ve done nothing but retry for ~20 minutes and it finally worked without any changes to any settings.

1 Like

I found the URL given in the documentation (https://my.home-assistant.io/redirect/oauth) works fine.

But I had to try a different browser for it to work. Adblocker addons in Firefox probably prevented it from working.

Have tried to add home-connect integration with Safari browser. Spent couple hours and tried several Redirect URIs.
After i found this thread - changed browser to Chrome and integration started to work fine. Only last step failed, but after i changed home-assistan.local:8123 to my url added successfully.

1 Like

I’m also gettting the same error, same wth Chrome nad safari. Any other suggestions?

So if I forward the address to hir there is always an error.
that’s the list on the home assistant or.

link — 0Auth2 Authorize Callback

image

Thanks @t-my this worked for me!!!

Hello,
I’m having the same issue.
error message bellow :

many thanks for your help and advice.

i also tried about 1 hour.
changed from chrome to edge and it worked.
i used reirect URL: https://my.home-assistant.io/auth/external/callback

I think i found a solution and the root of the problem.
I think https://my.home-assistant.io/ makes a cookie on your local computer or something to make a redirect. Automatically it uses http:// for redirecting to homeassistant.local.
If you have set up duckdns in your instance, then reqular http will not work (you can probably make it to work, but if you have followed the tutorial, it will not work out of the box). All you need to do is, click my.home-assistant link, and when it says that you can create a new redirect path, replace http to https.
This is how i managed to make it work.

2 Likes

I got the same error message. When I switched to a a separate browser profile, it worked. This is what I think happens:
The OAuth dance must happen with your private Home Connect account. Not your Home Connect Developer account. But since you’ve just (if you followed the installation instructions) used your Developer account to create the app, the Developer account is what you are logged in with.

So if you log out of your Home Connect Developer account before performing the OAuth dance, it will probably work.

3 Likes

YES, this WORKED for me… Thx a lot…

In detail. Signup for developer account at https://developer.home-connect.com/, add Application (follow Home Connect - Home Assistant with Application ID: HomeAssistant, OAuth Flow: default, Redirect URL: https://<HOME_ASSISTANT_URL>/auth/external/callback), copy Home Connect user account, Client ID, Client Secret somewhere e.g. text document, LOGOUT!!!, then add integration in HA and add the details from the text document like email, client id, client secret… voilà

1 Like

Thanks for confirming @inv1sible
I have created Clarify home_connect prerequisites by mfalkvidd · Pull Request #25389 · home-assistant/home-assistant.io · GitHub to improve the documentation.

Hello together,
I try to get the integration running for some hours now. First I tried it the way the documentation says and I got the same error as everyone here. Then I had read this thread and tried everything:
Changed the Redirect URI to all the following things:
https://my.home-assistant.io/redirect/oauth
https://my.home-assistant.io/auth/external/callback
http://<INTERNAL IP:8123>/auth/external/callback

I even set up a new application in developer account for every Redirect URI to be sure. And yes I deleted the application credentials in HA and tried different browsers.

I tried the OAUTH2 Authorize Callback Feature which points to https://my.home-assistant.io/redirect/oauth/
And for sure I tried MikaelFs infos and logged out to my developer account. Nothing worked for me so far.
My Home Assistant is activated also, but Home Assistant is not reachable by an external URL over DynDNS or something like that.

So does anyone has any idea what to try next?