TypeError: Cannot read property 'get' of undefined
at eWeLink.getPowerState (/opt/nodejs/lib/node_modules/homebridge-ewelink-max/index.js:440:20)
at Characteristic. (/opt/nodejs/lib/node_modules/homebridge-ewelink-max/index.js:316:26)
at emitThree (events.js:136:13)
at Characteristic.emit (events.js:217:7)
at Characteristic.getValue (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:163:10)
at Bridge. (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:760:20)
at Array.forEach ()
at Bridge.Accessory._handleGetCharacteristics (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:724:8)
at emitMany (events.js:147:13)
at HAPServer.emit (events.js:224:7)
Hello,
Today I tried to configure a bridge 433 mhz with my account, but when I tried to run homebridge I received this exception while listing the devices.
this.webClient.get('/api/user/device', function(err, res, body) { ^
TypeError: Cannot read property 'get' of undefined at eWeLink.getPowerState (/opt/nodejs/lib/node_modules/homebridge-ewelink-max/index.js:440:20) at Characteristic. (/opt/nodejs/lib/node_modules/homebridge-ewelink-max/index.js:316:26)
at emitThree (events.js:136:13)
at Characteristic.emit (events.js:217:7)
at Characteristic.getValue (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:163:10)
at Bridge. (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:760:20)
at Array.forEach ()
at Bridge.Accessory._handleGetCharacteristics (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:724:8)
at emitMany (events.js:147:13)
at HAPServer.emit (events.js:224:7)