jwillemsen / daikin_onecta

Home Assistant Integration for devices supported by the Daikin Onecta App
https://github.com/jwillemsen/daikin_onecta
GNU General Public License v3.0
251 stars 9 forks source link

[Issue]: "Something went wrong" message from daikin website during integration setup #184

Closed wittimagic closed 4 months ago

wittimagic commented 4 months ago

I just tried to update the Integration with new credentials. I created an App in the developer portal and got the credantials there. Then I tried to reinstall the integration.

During the installation of the Daikin Onecta Integration I was redirected to the Daikin website and faced the error message "something went wrong".

The Daikin Status Page shows that the service is online.

Did I do something wrong ?

Btw: can't provide logs because the integration is not installed yet.

jwillemsen commented 4 months ago

Do you have a correct redirect uri? Maybe you can contact daikin also

jwillemsen commented 4 months ago

The http link of the error page sometimes contains the underlying error, copy and paste it here

wittimagic commented 4 months ago

The redirect URI is configured with local IP like within the example you stated and wich I use with this device. The link within the error message redirects to a very general FAQ site.

I opened a ticket with Daikin support.

willliamchan commented 4 months ago

Do you have a correct redirect uri? Maybe you can contact daikin also

Hi. I am having the exact same issue here. The redirect URL somehow fixed to my.home-assistant.io.

https://id.daikin.eu/cdc/onecta/oidc/registration-login.html?error=true&mode=error&message=The%2Bredirect%2BURI%2Bin%2Bthe%2Brequest%3A%2Bhttps%3A%2F%2Fmy.home-assistant.io%2Fredirect%2Foauth%2Bdid%2Bnot%2Bmatch%2Ba%2Bregistered%2Bredirect%2BURI.&code=invalid_request&skipConsent=false

dynamicpete commented 4 months ago

Hi, same for me. The URL stucks to my.home-assistant.io which I've never used...

https://id.daikin.eu/cdc/onecta/oidc/registration-login.html?error=true&mode=error&message=The%2Bredirect%2BURI%2Bin%2Bthe%2Brequest%3A%2Bhttps%3A%2F%2Fmy.home-assistant.io%2Fredirect%2Foauth%2Bdid%2Bnot%2Bmatch%2Ba%2Bregistered%2Bredirect%2BURI.&code=invalid_request&skipConsent=false

willliamchan commented 4 months ago

Recreate OAuth using https://my.home-assistant.io/redirect/oauth fixes the issue.

wittimagic commented 4 months ago

The URL looks the same here. @willliamchan can you give some more details please ? What needs to be configured in the Form?

willliamchan commented 4 months ago

The URL looks the same here. @willliamchan can you give some more details please ? What needs to be configured in the Form?

Just follow the exact same thing from the instruction, the only thing is I thought I can use my own fqdn when creating OAuth app but looks like it must be https://my.home-assistant.io/redirect/oauth for now.

wittimagic commented 4 months ago

Ah, ok. Thank you, that worked for me too. I configured my IP and Port following the instructions and that didn't work.

@jwillemsen Maby this needs to be clarified in the instructions somehow ?

dynamicpete commented 4 months ago

Surprisingly, this actually seems to work, thank you very much!!!

jwillemsen commented 4 months ago

Ok, so it still has to be only https://my.home-assistant.io/redirect/oauth as redirect uri, any idea @Daikin-Europe?

jwillemsen commented 4 months ago

I have extended the documentation, always first try https://my.home-assistant.io/redirect/oauth as redirect_uri, the redirect_uri which Home Assistant sends to Daikin should match the one set in the application created at the Daikin website, normally this should be https://my.home-assistant.io/redirect/oauth