homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
170 stars 23 forks source link

[Bug]: Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY] #469

Open jvckson3 opened 1 year ago

jvckson3 commented 1 year ago

What happened?

On smart lock T8520, when using the lock/unlock feature in Apple Home, it sends error: [EufySecurity] ERROR Garage Door Lock target state ("number" / 0) could not be set: Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY]: Public key is not valid for specified curve

Device Type

Station (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[11/11/2023, 18:09:03]  [EufySecurity]  INFO    Registering new accessory: Garage Door
[11/11/2023, 18:09:05] [homebridge-eufy-security] This plugin generated a warning from the characteristic 'Administrator Only Access': characteristic value expected boolean and received function. See https://homebridge.io/w/JtMGR for more info.
[11/11/2023, 18:09:39]  [EufySecurity]  INFO    Looking for old cached accessories that seem to be outdated...
[11/11/2023, 18:09:39]  [EufySecurity]  INFO    No outdated cached accessories found.
[11/11/2023, 18:10:45]  [EufySecurity]  ERROR   Garage Door Lock target state
      ("number" / 0) 
      could not be set: Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY]: Public key is not valid for specified curve
[11/11/2023, 18:10:52]  [EufySecurity]  ERROR   Garage Door Lock target state
      ("number" / 1) 
      could not be set: Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY]: Public key is not valid for specified curve

config

{
            "username": "username",
            "password": "password",
            "country": "US",
            "deviceName": "",
            "platform": "EufySecurity",
            "ignoreStations": [],
            "ignoreDevices": [],
            "cleanCache": true,
            "stations": [
                {
                    "hkHome": 1,
                    "hkAway": 0,
                    "serialNumber": "serialNumber",
                    "hkNight": 3,
                    "hkOff": 63
                }
            ]
        }
github-actions[bot] commented 1 year ago

Did you check this Common Issues pages ?