vvpossible / homebridge_yeelight

Yeelight plugin for homebridge
303 stars 59 forks source link

homebridge chrashed when command arrive #45

Closed meme1981 closed 6 years ago

meme1981 commented 6 years ago

hi! i have a problem: homebridge crashes after connection if you touch anything in homekit or directly on the lamp

[2018-2-2 10:02:36] [yeelight] DidFinishLaunching [2018-2-2 10:02:36] Homebridge is running on port 51823. add to multicast group listen on 0.0.0.0 no did or loc found! stop this round of scan start new round of scan found Yeelight Bedside lamp: f8:24:41:ea:0c:d9 [2018-2-2 10:02:54] [yeelight] cached accessory: f8:24:41:ea:0c:d9 connect ok: f8:24:41:ea:0c:d9 discovered services ble notification on [2018-2-2 10:02:55] [yeelight] accesseory reachable [2018-2-2 10:02:55] [yeelight] dev connected f8:24:41:ea:0c:d9 true receive notify for did: f8:24:41:ea:0c:d9 stop this round of scan stop discovering receive notify for did: f8:24:41:ea:0c:d9 /usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:552 dev.propChangeCb(dev, 'power', 0); ^

TypeError: dev.propChangeCb is not a function at exports.YeeAgent. (/usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:552:21) at Characteristic. (/usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:506:43) at emitTwo (events.js:125:13) at Characteristic.emit (events.js:213:7) at Noble.onRead (/usr/local/lib/node_modules/noble/lib/noble.js:312:20) at emitMany (events.js:146:13) at NobleBindings.emit (events.js:223:7) at NobleBindings.onNotification (/usr/local/lib/node_modules/noble/lib/hci-socket/bindings.js:413:8) at emitMany (events.js:146:13) at Gatt.emit (events.js:223:7)

bassrock commented 6 years ago

I am getting the same issue.

Marcocanc commented 6 years ago

+1