JeroenVdb / homebridge-daikin-cloud

This Homebrige plugin connects to the Daikin Cloud and loads all your devices to be controled via Homebridge and Homekit.
https://www.npmjs.com/package/homebridge-daikin-cloud
Apache License 2.0
38 stars 11 forks source link

Can't connect to URL to start the authorisation flow #64

Closed Hailstorm030 closed 2 months ago

Hailstorm030 commented 2 months ago

Describe The Bug: Homebridge is running on a Raspberry Pi (10.0.20.13) on port 51826, the callbackServerExternalAddress is 10.0.20.13 and the callbackServerPort is 51827.

When I reboot Homebridge it tells me "Please navigate to https://10.0.20.13:51827 to start the authorisation flow. If it is the first time you open this url you will need to accept a security warning." but this URL does not open.

Scherm­afbeelding 2024-07-05 om 11 07 52

To Reproduce:

Expected behavior:

Logs:

Show the Homebridge logs here, sensitive information is removed. I'm mainly interested in the part between 

--- Daikin info for debugging reasons (enable Debug Mode for more logs) ---
and 
--------------- End Daikin info for debugging reasons --------------------

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Daikin Environment:

Homebridge Environment:

pfsequeira commented 2 months ago

same issue here!

Tom5640 commented 2 months ago

Hello,

I am also having this issue. Can I confirm that the reason for this change to be made was that Daikin discontinued to the ability to authenticate using frontend username and password as in version 1.x of this plugin? It was working fine until maybe 2 or 3 days ago.

My configuration is shown below (don't worry, fake ID/secret):

{ "platform": "DaikinCloud", "clientId": "1xXXaLJ2jb435gfhy9HsdgsaKZb", "clientSecret": "PoYsgdssdfh-b8fsg8y9mtfnt6T1ZJRJFfbQoYU1aQe3K-oTq2B2X9t_Jsdet4dfsLr5try-cRUw", "oidcCallbackServerBindAddr": "127.0.0.1", "callbackServerExternalAddress": "192.168.1.11", "callbackServerPort": "51827", "showExtraFeatures": false, "updateIntervalInMinutes": 15 }

JeroenVdb commented 2 months ago

You need to update to the 2.x version of homebridge-daikin-cloud. Like said the API for Daikin has change.

If you can't start the authorisation flow (reach the server) there is probably something wrong with the value for oidcCallbackServerBindAddr. Unless you get a more specific error.

pfsequeira commented 2 months ago

Can you please explain what it means "This is the address the http server binds to, this is often just localhost" ? my understanding is that the "http server" is running in my local configuration, in my particular case the raspberry pi, witch as its own ip address in my local network... when you refer "localhost" what do you mean ?

pfsequeira commented 2 months ago

never mind, i got it! you mean, localhost as the device that is running que homebdrige, in my case, 0.0.0.0. Thank you so much for your work! i would love to pay you a coffee!

TarkDetrius commented 2 months ago

Just wanted to second that the default 127.0.0.1 for the oidcCallbackServerBindAddr didnt work for me as well (i couldnt connect to the server). Changing to 0.0.0.0 solved the issue. Maybe change it to this value for default?