rxseger / homebridge-camera-motion

Motion detector camera plugin for Homebridge
MIT License
48 stars 9 forks source link

Runtime error in Homebridge 1.0.4 #18

Open standre opened 4 years ago

standre commented 4 years ago

The plugin was running properly with homebridge 0.4.53. After the upgrade to 1.0.4 (all other plugins working properly or provide an update) I get:

 TypeError: Cannot read property 'length' of undefined
    at Accessory.configureCameraSource (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:541:40)
    at PlatformAccessory.configureCameraSource (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:132:41)
    at CameraMotionPlatform.didFinishLaunching (/usr/local/lib/node_modules/homebridge-camera-motion/camera-motion.js:47:21)
    at HomebridgeAPI.emit (events.js:203:15)
    at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:231:10)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:159:14)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:78:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
morkjt commented 4 years ago

Same issue.

zeratax commented 4 years ago

should this issue also be filled against the hap-node? didn't see anything about breaking changes around configureCameraSource?

cstanger commented 3 years ago

Same issue here as well.

Minims commented 3 years ago

Hello, sorry I am not using this anymore. If someone wants to get this project ou make some PR to fix the issue, he is welcome.

aftrmth728 commented 3 years ago

Me too, did anyone find a workaround or anything?

aftrmth728 commented 3 years ago

Is anyone using this on an old version of Homebridge successfully? If so, which version are you using? thanks