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

Cannot connect anymore #242

Closed mbouwm closed 10 hours ago

mbouwm commented 3 days ago

I have returned my Homeassistant VM to the state it was in a few days ago. The Daikin_onecta app worked well in both VMs.

Now, after starting Homeassistant, it appears that the Daikin_onecta integration no longer works.
And I can't get it to work anymore either

I am using the latest version of daikin_onecta, and have created a new application in the Daikin development portal. Removed old login details in Homeassistant.

When installing daikin_onecta integration, you will be asked for the login details. Once I have entered it, I can give permission in the Daikin Portal. After agreeing, I end up on a page at Daikin that says Proxy. This is where it stops and nothing more happens.

Is there anything else I can do to get it working or is there something going on at Daikin?

Mvg, Martien

jwillemsen commented 3 days ago

Have you removed the old credentials as described in the readme under reinstall? Any error in the HA log?

jwillemsen commented 3 days ago

What is the full URL of the page where you got stuck, sometimes more error details are in the URL itself

mbouwm commented 3 days ago

Hi, Yes I removed the old credentials and I don't see logging in HA for this. When I do not delete the credentials into HA, I will not receive a prompt to enter the credentials.

The link with the Proxy page is a long one. When filled in manually you can see the page again.

Regards, Martien

https://id.daikin.eu/b2c-oidc/eu/en/proxy.html?mode=afterConsent&consent=%7B%22scope%22:%22openid%20onecta%3Abasic.integration%22,%22clientID%22:%22D9BqgaTt5Z60i41x0iqp9AFZ%22,%22context%22:%22eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik1FVkdRa0l5TXprNE0wRTRNVFkzTnpJM1FUYzBNek16T0RRd05FRkVRVUpCTTBFd1EwRkZRZyJ9.eyJpc3MiOiJodHRwczovL2NkYy5kYWlraW4uZXUvb2lkYy9vcC92MS4wLzNfeFJCM2phUTYyYlZqcVhVMW9tYUVzUERWWUMwVHdpMXpmcTF6SFB1XzVIRlQweldrRHZaSlM5N1l3MWxvSm5UbS8iLCJjdHhfZGMiOiJldTEiLCJpYXQiOjE3MTk4NDgyMDcsImV4cCI6MTcxOTg0ODgwNywiY2xpZW50X2lkIjoiRDlCcWdhVHQ1WjYwaTQxeDBpcXA5QUZaIiwiY3R4X2lkIjoiMGFhYTc2NDNlYmMwNDcyZjg0NjhkMjc3Mzk3NWVkMTYiLCJyZWRpcmVjdF91cmwiOiJodHRwczovL215LmhvbWUtYXNzaXN0YW50LmlvL3JlZGlyZWN0L29hdXRoIn0.A3ba02L201o_6qkw6SpOSex4eCamnTud2FwLpxYa9sYMmqQGH-wXcaoSaIB0vNRihHH51Bj7rcEdUElVXtBd_UswdmSQcbdYuqQpyDcQmVnPxnadO3WyupqfAgB7IoK-UHYB7fcPpi3WWi4Kzu35wQepUR0BJ5huVGpbL6X8MguTRrsZ6ErDHU7FKfdm0w_4x3RhnmAT28ueKnf4oAkywKyYiwJqQHrzrtOHpzTapKjSEsiywdWG9txchxwqNUMMh1rMV3-_vPDNB5YiWj0WnKxqP5L2B_JkKNsI_dYYda3plKTeqbNtJhc-Tdyt-zlKfSYR9uENzbmUfoQajDtDEQ%22,%22UID%22:%2258f04f1fb2b74c818485b6f4a001dee0%22,%22consent%22:true%7D&sig=3ogIfuuAh__0LPBjLF8lNo6b3eI&userKey=AGM3WFoV7XSX

jwillemsen commented 3 days ago

Would recommend that you contact daikin, see the developer portal for their contact details

mbouwm commented 3 days ago

I send a message to Daikin for this.

TCH0815 commented 21 hours ago

@mbouwm did you get a response from daikin? i have the same problem. im stuck in the proxy page. Do you also use nabu casa or are yout logged in with your local ip/dns name?

mbouwm commented 21 hours ago

They ask me to send HAR files. I send the files 2 days ago, and I am waiting for a response.

When I look into the HAR files myself, I think it has something to do with the redirection URL. From HomeAssistant the redirection URL is send to Daikin. After you press the allow button at Daikin I cannot find the redirection URL into the HAR files again. I am using local ip.

jwillemsen commented 20 hours ago

For the redirect uri always use the default, unless that doesn't work, see readme and https://github.com/jwillemsen/daikin_onecta/issues/239

mbouwm commented 19 hours ago

I am using the default redirect uri: https://my.home-assistant.io/redirect/oauth At home this redirect is working. When using it I receive the proxy page I metioned

When I use a different redirect uri : https://<ip - address>:8123/auth/external/callback At home this is also working. When using it I received the registration login-id error just as mentioned in https://github.com/jwillemsen/daikin_onecta/issues/239

I am using default_config in homeassistant. Using my: afterwards this does solve it.

So I need still to wait for Daikin

mbouwm commented 10 hours ago

Aaarg, Grrr, I did not knew it. It is working now. The reason was simple . The Daikin unit itself lost it's contact with wifi !! A restart of my router solved it.