core: Unable to setup Home Connect - fails with client or redirection URI not authorized

The problem

I’ve had the Home Connect integration working for a long time - today it stoped working and when I try to reinstall I get this error which opens in a new tab: { “error”: “unauthorized_client”, “error_description”: “client or redirection URI not authorized”, “state”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbG93X2lkIjoiOTI5MzE3OTBiMWQ1ZmJlNzEzODY5NjEzMTFjNTVkMmEiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL215LmhvbWUtYXNzaXN0YW50LmlvL3JlZGlyZWN0L29hdXRoIn0.jua7oFgTTopLEGqsDWoEAg5dDpcaHam6QMtB9joNGU8” }

I tried creating a new Application in the Home Connect Developer website but it fails with same error

What version of Home Assistant Core has the issue?

Core 2022.6.7

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

https://www.home-assistant.io/integrations/home_connect

Diagnostics information

None

Example YAML snippet

NA

Anything in the logs that might be useful for us?

This appears on the webpage that opens when installing integration:

{
  "error": "unauthorized_client",
  "error_description": "client or redirection URI not authorized",
  "state": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbG93X2lkIjoiOTI5MzE3OTBiMWQ1ZmJlNzEzODY5NjEzMTFjNTVkMmEiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL215LmhvbWUtYXNzaXN0YW50LmlvL3JlZGlyZWN0L29hdXRoIn0.jua7oFgTTopLEGqsDWoEAg5dDpcaHam6QMtB9joNGU8"
}

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 17 (6 by maintainers)

Most upvoted comments

@allenporter thanks for all your work on OAuth2 and for making things easier to use with HA - much appreciated!

Hi – see updated pre-reqs in https://www.home-assistant.io/integrations/home_connect/#prerequisites and https://www.home-assistant.io/blog/2022/06/01/release-20226/#streamlining-the-oauth2-experience – in particular the redirect url was changed.

This is not related to application credentials, but generally i have been helping home connect users and in all cases we’ve seen before issues have been due to misconfiguration or needing an updated configuration.