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
197 stars 8 forks source link

[Issue]: Something went wrong #254

Closed georgev79 closed 1 week ago

georgev79 commented 2 weeks ago

Hi, I've reinstalled repo because old api didnt work anymore. After adding Onecta integration i get directly (without asking any secrets) send to URL with message "Something went wrong"

Both in configuration.yaml and in Daikin api I used URI: https://my.home-assistant.io/redirect/oauth as suggested in 239

URL with message: https://id.daikin.eu/cdc/onecta/oidc/registration-login.html?error=true&mode=error&clientID=JcpnssDnMT7pJwkwLH23yntn&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

any suggestions?

Meigl89 commented 2 weeks ago

Same here, sadly.

Meigl89 commented 2 weeks ago

I fixed it, maybe it'll help you. The URL in the daikin api website differed from the one I set locally.

georgev79 commented 2 weeks ago

I fixed it, maybe it'll help you. The URL in the daikin api website differed from the one I set locally.

Can you share a screenshot? Thanks!

Meigl89 commented 2 weeks ago

I fixed it, maybe it'll help you. The URL in the daikin api website differed from the one I set locally.

Can you share a screenshot? Thanks!

I guess I had different problems there.. first one was, that I entered the wrong credentials and they were saved in the "Devices -> 3 dots -> login information". So I ran into this "Something went wrong" error. I identified this, since my login with mail address was in the URL. After I deleted that and tried to activate again, I got asked for the API secrets. After I entered these, I had this "Proxy" page for a second and then it said the same error you're having.

Then I logged in here: https://developer.cloud.daikineurope.com/ and changed the redirect URL to: https://my.home-assistant.io/redirect/oauth

Then I tried again got forwarded to the "proxy" page and then came a site where I had to acknlowedge some terms and then I got the popup in HASS to setup a room.

I also checked first, if it resolves correctly, if you enter this in your browser, something should show: https://my.home-assistant.io/redirect/oauth

Hope this helps at some point..

georgev79 commented 2 weeks ago

I fixed it, maybe it'll help you. The URL in the daikin api website differed from the one I set locally.

Can you share a screenshot? Thanks!

I guess I had different problems there.. first one was, that I entered the wrong credentials and they were saved in the "Devices -> 3 dots -> login information". So I ran into this "Something went wrong" error. I identified this, since my login with mail address was in the URL. After I deleted that and tried to activate again, I got asked for the API secrets. After I entered these, I had this "Proxy" page for a second and then it said the same error you're having.

Then I logged in here: https://developer.cloud.daikineurope.com/ and changed the redirect URL to: https://my.home-assistant.io/redirect/oauth

Then I tried again got forwarded to the "proxy" page and then came a site where I had to acknlowedge some terms and then I got the popup in HASS to setup a room.

I also checked first, if it resolves correctly, if you enter this in your browser, something should show: https://my.home-assistant.io/redirect/oauth

Hope this helps at some point..

Yes yes yes -> this solved my problem (saved credentials): "I guess I had different problems there.. first one was, that I entered the wrong credentials and they were saved in the "Devices -> 3 dots -> login information". So I ran into this "Something went wrong" error. I identified this, since my login with mail address was in the URL. After I deleted that and tried to activate again, I got asked for the API secrets. After I entered these, I had this "Proxy" page for a second and then it said the same error you're having."

Thanks!

georgev79 commented 2 weeks ago

Solved