rench / homebridge-smarthome

this is a homebridge plugin for mijia eco-chain but also a management webapp provide web and restapi to manage your mijia eco-chain,you can control and monitor your accessory via apple's homekit or the webapp
MIT License
39 stars 6 forks source link

activate power plug > crash #16

Open phenomeus opened 6 years ago

phenomeus commented 6 years ago

Dez 15 22:31:53 raspberrypi homebridge[27826]: crypto.js:219 Dez 15 22:31:53 raspberrypi homebridge[27826]: this._handle.initiv(cipher, toBuf(key), toBuf(iv)); Dez 15 22:31:53 raspberrypi homebridge[27826]: ^ Dez 15 22:31:53 raspberrypi homebridge[27826]: TypeError: Key must be a buffer Dez 15 22:31:53 raspberrypi homebridge[27826]: at new Cipheriv (crypto.js:219:16) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Object.Cipheriv (crypto.js:217:12) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Mijia.generateKey (/usr/lib/node_modules/homebridge-smarthome/kit/mijia.js:364:25) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Characteristic.service.getCharacteristic.on (/usr/lib/node_modules/homebridge-smarthome/kit/mijia/plug.js:76:31) Dez 15 22:31:53 raspberrypi homebridge[27826]: at emitMany (events.js:147:13) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Characteristic.emit (events.js:224:7) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Characteristic.setValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:292:10) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Bridge. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:856:22) Dez 15 22:31:53 raspberrypi homebridge[27826]: at Array.forEach () Dez 15 22:31:53 raspberrypi homebridge[27826]: at Bridge.Accessory._handleSetCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:801:8) Dez 15 22:31:53 raspberrypi homebridge[27826]: at emitMany (events.js:147:13) Dez 15 22:31:53 raspberrypi homebridge[27826]: at HAPServer.emit (events.js:224:7) Dez 15 22:31:53 raspberrypi homebridge[27826]: at HAPServer._handleCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:972:10) Dez 15 22:31:53 raspberrypi homebridge[27826]: at HAPServer. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) Dez 15 22:31:53 raspberrypi homebridge[27826]: at emitNone (events.js:106:13) Dez 15 22:31:53 raspberrypi homebridge[27826]: at IncomingMessage.emit (events.js:208:7) Dez 15 22:31:53 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE Dez 15 22:31:53 raspberrypi systemd[1]: Unit homebridge.service entered failed state.