homebridge-aqara icon indicating copy to clipboard operation
homebridge-aqara copied to clipboard

ReferenceError: service is not defined

Open 0xJohnX opened this issue 7 years ago • 4 comments

/usr/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:52 var characteristic = service.getCharacteristic(Characteristic.Name); ^

ReferenceError: service is not defined at AqaraAccessoryFactory.configureAccessory (/usr/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:52:27) at AqaraPlatform.configureAccessory (/usr/lib/node_modules/homebridge-aqara/lib/AqaraPlatform.js:187:16) at Server._configCachedPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:342:24) at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:83:8) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10) at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12)

0xJohnX avatar Apr 20 '17 09:04 0xJohnX

var Accessory, PlatformAccessory, Service, Characteristic, UUIDGen, Factory; service.getCharacteristic(Characteristic.Name);

richen avatar Apr 23 '17 06:04 richen

{ "platforms": [ { "platform": "AqaraPlatform", ... "sensor_names": { "74ef":"Kitchen Window" } ... }] }

It doesn't work

0xJohnX avatar Apr 24 '17 12:04 0xJohnX

I confirm I get the same issue when trying to add the sensor_names part.

KillSwitchSIG avatar Jun 01 '17 15:06 KillSwitchSIG

Especially frustrating with the sensor disappearing bug..

georgkreimer avatar Dec 03 '17 15:12 georgkreimer