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" #239

Closed HobbySynergy closed 2 months ago

HobbySynergy commented 2 months ago

This is the URL(ive seen you ask for it from others but not sure whats wrong with mine.

https://id.daikin.eu/cdc/onecta/oidc/registration-login.html?error=true&mode=error&clientID=wdGu6zIJTzRofF46mnVwI9LR&message=Invalid%2BRedirectUri%3A%2BURI%2Bcan%2Bnot%2Bhave%2Bhttp%2C%2Bftp%2C%2Bftps%2C%2Bor%2Bfile%2Bas%2Bthe%2Bscheme%2Btype.&code=invalid_request&skipConsent=false

Followed all steps but cant auth when redirecting to the website. What can I fix here?

jwillemsen commented 2 months ago

You nee a https redirect uri, what did you use on the daikin portal?

HobbySynergy commented 2 months ago

I used this: http://192.168.0.157/auth/external/callback My HA's IP. Tried other options too like https://my.home-assistant.io/redirect/oauth at first

HobbySynergy commented 2 months ago

Just changed it to https://192.168.0.157/auth/external/callback And still doesn't work. I am sure I am doing a mistake but I have zero knowledge in these things

HobbySynergy commented 2 months ago

The new URL I get: (if it matters)

https://id.daikin.eu/cdc/onecta/oidc/registration-login.html?error=true&mode=error&clientID=wdGu6zIJTzRofF46mnVwI9LR&message=Invalid%2BRedirectUri%3A%2BURI%2Bcan%2Bnot%2Bhave%2Bhttp%2C%2Bftp%2C%2Bftps%2C%2Bor%2Bfile%2Bas%2Bthe%2Bscheme%2Btype.&code=invalid_request&skipConsent=false

jwillemsen commented 2 months ago

Try to explicitly enable my home assistant (see https://www.home-assistant.io/integrations/my/) and use https://my.home-assistant.io/redirect/oauth as redirect_uri. When you open https://my.home-assistant.io/redirect/oauth in your browser, it should give a dialog with invalid parameters given

HobbySynergy commented 2 months ago

It worked thank you! Ill just summarise for future people if you don't mind because I understand what was my mistake.

Basically I was playing with the configuration.yaml file and deleted the default My Home Assistant. To return it, I added this line: " my: https://my.home-assistant.io/redirect/oauth "

In the Daikin API website I put "https://my.home-assistant.io/redirect/oauth" as my redirect URI.

This fixed my Issue.

Thank you @jwillemsen <3