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
32 stars 10 forks source link

Plugin won't run after upgrade #21

Closed aukesj closed 1 year ago

aukesj commented 1 year ago

Describe Your Problem:

Logs:

[10/4/2022, 9:11:01 PM] [DaikinCloud] Failed to get cloud devices from Daikin Cloud: Failed to login to Daikin Cloud with MY@EMAIL: Error trying to follow redirect: write EPROTO 3069770240:error:14094458:SSL routines:ssl3_read_bytes:tlsv1 unrecognized name:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1546:SSL alert number 112

Plugin Config:

{
    "bridge": {
        "name": "Homebridge EE30",
        "username": "MAC-ADDRESS",
        "port": 51366,
        "pin": "MY PIN"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config",
            "ssl": {
                "key": "/var/lib/homebridge/ssl/private/homebridge.pem",
                "cert": "/var/lib/homebridge/ssl/certs/homebridge.pem"
            }
        },
        {
            "name": "HOSTNAME",
            "hubIP": "IP OF HUB",
            "hubName": "Harmony Hub",
            "TVAccessory": false,
            "switchAccessories": true,
            "platform": "HarmonyHubWebSocket"
        },
        {
            "username": "MY EMAIL",
            "password": "MY PASSWORD",
            "showExtraFeatures": true,
            "platform": "DaikinCloud"
        }
    ],
    "disabledPlugins": [
        "homebridge-camera-ffmpeg",
        "homebridge-daikin-local"
    ]
}

Screenshots:

Environment:

aukesj commented 1 year ago

By the way, I also did an 'npm install -g npm@8.13.2' after the reinstall of the plugin (which I did by issueing 'npm i homebridge-daikin-cloud')

JeroenVdb commented 1 year ago

@aukesj I don't know if this has anything to do with the plugin itself. Seems like there might be a problem with your CA certificates or SSL library on the device itself.

You could install curl on the machine that is running homebridge and run

curl -v https://daikin-unicloud-prod.auth.eu-west-1.amazoncognito.com/oauth2/authorize

Issue https://github.com/JeroenVdb/homebridge-daikin-cloud/issues/12 has a similar problem.

aukesj commented 1 year ago

@JeroenVdb The curl command returns no issues:

`* Server certificate:

Same applies to links I follow locally, with my own CA:

`* Server certificate:

aukesj commented 1 year ago

It was an issue with my local DNS (Pi-Hole)

JeroenVdb commented 1 year ago

Ah, great you found the issue!

aukesj commented 1 year ago

Yes, and it probably only occurs when re-initializing the plugin somehow. After disabling pi-hole, restarting homebridge service, I can re-enable pi-hole again and everything keeps working just fine.