home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.61k stars 29.92k forks source link

Home connect doe not work for me? #119837

Open Pleeriezer opened 3 months ago

Pleeriezer commented 3 months ago

The problem

I have made an developer account for Home Connect.

I logged out, wait for 15 minutes, set the powe on my dishwasser and goint to add the Home connect integration.

The integration askes me you need to connect to a external website wich I do and I am getting this error:

{ "error": "unauthorized_client", "error_description": "Invalid client id", "state": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmbG93X2lkIjoiYmE0MjI5NmVmNzcwZTY5NjRhMzg4ZjY2NWE5ZmRhMTkiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL215LmhvbWUtYXNzaXN0YW50LmlvL3JlZGlyZWN0L29hdXRoIn0.R5AnGxa6VkeUsUzxP48gPpVflBR-yBHvnmOgPz0VMHo" }

What I am doing wrong?

Thanks and greetings,

Erik.

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Connect

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @davidmstraub, mind taking a look at this issue as it has been labeled with an integration (home_connect) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `home_connect` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign home_connect` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


home_connect documentation home_connect source (message by IssueLinks)

mib1185 commented 3 months ago

Hi

This sounds like a request for support? We use GitHub for tracking issues with Home Assistant Core itself, not for providing support. If you are in need of support, you should try our Community Forum or join our Discord chat server.

Thanks! 👍

maciejpolanczyk commented 2 months ago

Hi, I had the same issue.

There are two ways to fix it:

  1. Use My Home integration (which is used by default for Home Connect integration). You just need to go to https://my.home-assistant.io/ and make sure your Home Assistant url is set there, for example: http://homeassistant:8123/ . Next go to https://developer.home-connect.com/ and make sure that Redirect URIs is set to https://my.home-assistant.io/redirect/oauth . Log out from Home Connect for Developers. Wait ~20minutes if you applied any changes there. And now you can start Home Connect Integration. Some people suggest to use private profile in web browser for integration process but in my case it was not needed.

  2. Don't use My Home integration. You need to disable it in default_config in configuraiton.yaml. To achieve this I used https://github.com/tronikos/default_config_disabler . In addition make sure there is no my: in configuration.yaml. Next go to https://developer.home-connect.com/ and make sure that Redirect URIs is set to /auth/external/callback, for example: http://homeassistant:8123/auth/external/callback . Log out from Home Connect for Developers. Wait ~20minutes if you applied any changes there. And now you can start Home Connect Integration. Some people suggest to use private profile in web browser for integration process but in my case it was not needed. I noticed that some integrations are not working correctly when default_config_disabler is disabling My Home integration, so after setting up Home Connect integration I enabled My Home integration in default_config_disabler.

wntgd commented 1 week ago

Hi, above solutions didn't work for me, so i found this https://github.com/home-assistant/core/blob/e83aa864266a08081180edabf24d93c6e8c665d8/homeassistant/helpers/config_entry_oauth2_flow.py#L138 home assistant looks for my component and always returns it's redirect.

I had to install this https://github.com/tronikos/default_config_disabler to disable my without messing with default_config. Worked after that with https://%myexternalurl%/auth/external/callback