Closed scottrus closed 2 years ago
Seeing the same, MQTT disabled results in the following:
[13/08/2021, 16:36:56] [Unifi protect cameras & motion sensors] VIDEO PROCESSOR: /usr/local/lib/node_modules/homebridge-unifi-protect-camera-motion/node_modules/ffmpeg-for-homebridge/ffmpeg
/usr/local/lib/node_modules/homebridge-unifi-protect-camera-motion/src/utils/mqtt.js:35 if (this.client.connected) { ^ TypeError: Cannot read property 'connected' of undefined at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-unifi-protect-camera-motion/src/utils/mqtt.js:35:33) at listOnTimeout (internal/timers.js:555:17) at processTimers (internal/timers.js:498:7) [13/08/2021, 16:36:57] [Unifi protect cameras & motion sensors] Child bridge process ended [13/08/2021, 16:36:57] [Unifi protect cameras & motion sensors] Process Ended. Code: 1, Signal: null
Has anyone figured out a solution to this? I'm also getting the same error.
Should be fixed wit 0.4.6
Seems to persist in 0.4.7, any thoughts?
Should be fixed with #98
https://github.com/beele/homebridge-unifi-protect-camera-motion/blob/6198567ebec047800109e0e1d715560693dd878c/src/utils/mqtt.ts#L16
I'm guessing we need to update this test with
if (!config || !config.mqtt_enabled) {