I followed the documentation set the config.yaml correct added the local address and nabucasa address. But when adding the integration it keeps giving this error:
âerrorâ: âunauthorized_clientâ,
âerror_descriptionâ: âclient or redirection URI not authorizedâ
I did recreate an App on the home connect portal and copy and pasted the Client and secret keys to config.yaml. Reloaded the config, rebooted the HA device.
Nothing seems to fix it what am i missing it should be straight forward but apparently not
Already done, it took a while to âsyncâ on the Home connect side of things (they do warn it can take some time). I now get the login screen on the Home connect page after trying to add the integration. After filling in the credentials i get a new error:
File â/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.pyâ, line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message=âBad Requestâ, url=URL(âhttps://api.home-connect.com/security/oauth/tokenâ)
I know I also spent a lot of time to get the integration running. And I spent even more time trying to get another instance of the API running in HA or Node red.
And that message about token, I have seen it way to many times.
EDIT:
I just remembered something. The access token is saved in the hidden folder of Home Assistant and is used as bearer to access the API.
Most likely the error is because the auth process has not worked as it should.
So try and remove the integration from HA and restart HA, and try and add the integration again.
Not sure it will work but that perhaps clears all the old stuff and you can start fresh in HA.
Thanks for your patience and support, the Integration doesnât end up in the integrations dashboard since it canât finalize the setup. Is there a way to manually remove the token? Or is Home Connect somehow (half) installed on HA and is there a way to remove that manually?
The file where itâs saved is: /config/.storage/core.config_entries
And the domain should be home_connect.
You can probably just do a CTRL+F and search for it.
Just look at the file, donât edit it and donât save it. Right now we just need to look if itâs there