Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to load without MQTT configured #90

Closed
scottrus opened this issue Aug 1, 2021 · 5 comments
Closed

Fails to load without MQTT configured #90

scottrus opened this issue Aug 1, 2021 · 5 comments

Comments

@scottrus
Copy link

scottrus commented Aug 1, 2021

if (!config || !config.broker) {

I'm guessing we need to update this test with if (!config || !config.mqtt_enabled) {

@BadgerBadgerAndFox
Copy link

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

@omrd
Copy link

omrd commented Sep 23, 2021

Has anyone figured out a solution to this? I'm also getting the same error.

@beele
Copy link
Owner

beele commented Oct 30, 2021

Should be fixed wit 0.4.6

@nstefanelli
Copy link

Seems to persist in 0.4.7, any thoughts?

@beele
Copy link
Owner

beele commented Jan 9, 2022

Should be fixed with #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants