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
40 stars 11 forks source link

Daikin Auth / Config URL not loading #83

Closed ScraggyMcRaggy closed 3 weeks ago

ScraggyMcRaggy commented 2 months ago

Describe Your Problem: I cannot access the authorisation URL to finish the Authentication flow. I've gotten this working before, but I'm really at a dead end now.

I have tried callback server on 127.0.0.1 and 0.0.0.0 but neither makes a difference. IP and ports are identical in both config and Daikin app settings.

This was working perfectly until (I think) my Homebridge IP changed. I updated the IP in config and daikon but I've never been able to get the URL to load.

Logs (with debug mode enabled):

[06/09/2024, 11:45:26] [DaikinCloud] [API Syncing] Failed to get cloud devices from Daikin Cloud: invalid_grant (The provided authorization code or refresh token is revoked.)

Plugin Config:


{
    "clientId": "3lmGZit8ev5lx_dxnSYcq5kE",
    "clientSecret": "xIV4_fcgBDLB-DJZeUDDe5LHTs9yJ8JmLf9s7j9TIwTQBhxRAhDot53_ZhFZbUs2L-hqwSNH-AtL04VRn6bw8Q",
    "callbackServerExternalAddress": "192.XXX.X.XXX",
    "callbackServerPort": "8582",
    "oidcCallbackServerBindAddr": "127.0.0.1",
    "showExtraFeatures": false,
    "updateIntervalInMinutes": 15,
    "forceUpdateDelay": 60000,
    "platform": "DaikinCloud"
}
ScraggyMcRaggy commented 2 months ago

Fixed. I presumed . daikin-controller-cloud-tokenset file was gone because it didn't return when using dir. I had to use ls -a instead. This displayed the config file which I could then delete.

mmz06 commented 2 months ago

Got the same issue, following Daikin API registration change/crash/whatever Deleting the .daikin-controller-cloud-tokenset file made the authentication process triggering again, and the registration working like a charm

Lyrinik commented 2 months ago

under which path can I find this file? works it with v2.5.0 or have i update to the beta version? Thanks

mmz06 commented 2 months ago

under which path can I find this file? works it with v2.5.0 or have i update to the beta version? Thanks

I'm using the container version and it's in /var/lib/homebridge, which is the default path when you connect via ">_Terminal" through the GUI.