hannseman / homebridge-mi-hygrothermograph

Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
MIT License
266 stars 52 forks source link

Unsupppported state or unable to authenticate data - cipher.sh #138

Closed maddinek closed 3 years ago

maddinek commented 3 years ago

Hi there,

I tried to add my LYWSD03MMC sensors. I also added the bindKey. But I always get this error message:

[Temperature & Humidity] Error: Unsupported state or unable to authenticate data at Decipheriv.final (internal/crypto/cipher.js:174:29) at Parser.decryptPayload (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:191:14) at Parser.parse (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:59:12) at Scanner.parseServiceData (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js:171:52) at Scanner.onDiscover (/usr/lib/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js:92:25) at Noble.emit (events.js:327:22) at Noble.onDiscover (/usr/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/noble.js:196:10) at NobleBindings.emit (events.js:315:20) at NobleBindings.onDiscover (/usr/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:169:10) at Gap.emit (events.js:315:20)

Did someone have a similar issue or knows where it comes from?

My config:

        "accessory": "Hygrotermograph",
        "name": "Temperature & Humidity",
        "address": "macaddress",
        "timeout": 15,
        "temperatureName": "Temperature",
        "humidityName": "Humidity",
        "fakeGatoEnabled": true,
        "bindKey": "bindkey"

I'm running node -v v14.16.0 and Raspbian GNU/Linux 10 (buster)

Cheers, Martin

hannseman commented 3 years ago

Duplicate of https://github.com/hannseman/homebridge-mi-hygrothermograph/issues/101