leematt / homebridge-tplink-lightbulb

TP-Link LB100/110/120/130 Smart Bulb plugin for Homebridge
MIT License
8 stars 3 forks source link

Light object missing set method. #10

Open chris-schofield1 opened 6 years ago

chris-schofield1 commented 6 years ago

Whenever I attempt to control any of my lights I receive the following stack:

/usr/local/lib/node_modules/homebridge-tplink-lightbulb/index.js:168 light.set(true, 0, { brightness: value }).then((status) => { ^

TypeError: light.set is not a function at Characteristic.brightnessCharacteristic.on.on (/usr/local/lib/node_modules/homebridge-tplink-lightbulb/index.js:168:15) at emitMany (events.js:146:13) at Characteristic.emit (events.js:223:7) at Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:319:10) at Bridge. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:867:22) at Array.forEach () at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:807:8) at emitMany (events.js:146:13) at HAPServer.emit (events.js:223:7) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:972:10)