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

Failed to get cloud devices from Daikin Cloud: device_js_1.DaikinCloudDevice is not a constructor #59

Closed DenDeXTeR51 closed 4 months ago

DenDeXTeR51 commented 4 months ago

Describe The Bug: Cannot get plugin to work. Version = v2.1.0-beta.1. After configuration, saw in homebridge logs the link "Please Navigate", click on it and made approve. After Homebridge restart start to get error : "Failed to get cloud devices from Daikin Cloud: device_js_1.DaikinCloudDevice is not a constructor"

To Reproduce: After configuration of plugin, saw in homebridge logs the link "Please Navigate", click on it and made approve. After Homebridge restart start to get error : "Failed to get cloud devices from Daikin Cloud: device_js_1.DaikinCloudDevice is not a constructor"

Expected behavior: Plugin works, list of Air Conditioners returned.

Logs:

[7/3/2024, 12:34:38 AM] [DaikinCloud] Failed to get cloud devices from Daikin Cloud: device_js_1.DaikinCloudDevice is not a constructor [7/3/2024, 12:34:38 AM] [DaikinCloud] --------------- End Daikin info for debugging reasons --------------------

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


**Plugin Config:**

```json
        {
            "clientId": "**********",
            "clientSecret": **********",
            "redirectUri": "https://192.168.51.15:8582",
            "port": "8582",
            "showExtraFeatures": false,
            "platform": "DaikinCloud"
        },

Screenshots:

Daikin Environment:

Homebridge Environment:

JeroenVdb commented 4 months ago

I released a bit to soon. It's a known error that is fixed in https://github.com/Apollon77/daikin-controller-cloud/pull/140

We're still having some (smaller) bugs. As soon as I have something working I'll release a new beta.

JeroenVdb commented 4 months ago

I released homebridge-daikin-cloud@2.1.0-beta.2 which should fix this issue. Please check out the docs about the config!

DenDeXTeR51 commented 4 months ago

I set redirectURI and Port again after plugin update an now I get - [7/3/2024, 12:49:12 PM] [DaikinCloud] Failed to get cloud devices from Daikin Cloud: invalid_request (Refresh Token is missing)

DenDeXTeR51 commented 4 months ago

I also remove plugin , remove App in Onecta Cloud. Create everything again including ClientID and CLientSecret, but still get error and I dont get URL in logs to approve access by the way....

JeroenVdb commented 4 months ago

@DenDeXTeR51 can you remove .daikin-controller-cloud-tokenset file from your homebridge storage folder? You can find the location in the UI interface under "Storage Path"

DenDeXTeR51 commented 4 months ago

Works! Thanks! May be better to add this to README if somebody will want to re-make connection as in my case.