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

The MQTT Device "SCRYPTED" does not appear to use the MQTT brokers set username and password #1768

Open
2 tasks done
R4D4R opened this issue Mar 13, 2025 · 0 comments
Open
2 tasks done

Comments

@R4D4R
Copy link

R4D4R commented Mar 13, 2025

** Before You Submit**

  • I checked that my issue isn't already filed: Search open issues.
  • I checked the relevant camera/device and/or plugin Log in the Management Console for errors or warnings that may help identify and resolve the issue myself.

Describe the bug
When configuring the MQTT plugin, a default MQTT Device called "SCRYPTED" is created. That device has an optional Subscription URL, Username and Password. If left null, it appears to use the Subscription URL from the plugin, but the Username and Password are being sent to the MQTT server as null and not pulling the values from the plugins configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Add MQTT plugin
  2. Set MQTT server URL, Username and Password on the plugins configuration
  3. Configure 1 or more camerass to use MQTT
  4. Leave the "SCRYPTED" MQTT device with default values (null)
  5. Review the MQTT servers log to show login attempts with null username/password approximately every second.

Expected behavior
MQTT Username and Password values used from the MQTT plugins configuration if values are not set on the device.

Screenshots
If applicable, add screenshots to help explain your problem.

MQTT Username and password left null on the SCRYPTED device, invalid login attempts every 1 second:

Image

MQTT Username and password set on the SCRYPTED device, login attempts stop:
Image

Logs
Include a Log from the device/camera in the management console (and if applicable, the affacted plugin, like HomeKit).
darwin arm64 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:06 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8103
server version: 0.126.0
plugin version: @scrypted/mqtt 0.0.86
########################
3/12/2025, 9:50:24 PM
########################
MQTT: loading @scrypted/mqtt
MQTT: pid 38358
MQTT: @scrypted/mqtt error Error: disconnect
MQTT: plugin @scrypted/mqtt unexpectedly exited, restarting in 60000ms
MQTT: @scrypted/mqtt exited null SIGKILL
MQTT: @scrypted/mqtt close
starting plugin @scrypted/mqtt 38358
node modules /Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/node20-darwin-arm64
plugin loaded
Using external broker. mqtt://192.168.20.100
MQTT: loaded @scrypted/mqtt
[Front Doorbell] Using device specific broker. mqtt://192.168.20.100/scrypted/frontdoorbell/motion/state
[Garden Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Front] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Siren] Using external broker. mqtt://192.168.20.100
[Back Porch] Using external broker. mqtt://192.168.20.100
[Driveway] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Interior] Using external broker. mqtt://192.168.20.100
[Back Yard 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Front Doorbell Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Driveway Smart Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Porch Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Yard 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Scrypted Workshop Interior Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Back of Workshop Sensor] Using external broker. mqtt://192.168.20.100
[Driveway Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Doorbell] Using device specific broker. mqtt://192.168.20.100/scrypted/frontdoorbell/motion/state
[Garden Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Front] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Siren] Using external broker. mqtt://192.168.20.100
[Back Porch] Using external broker. mqtt://192.168.20.100
[Driveway] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Interior] Using external broker. mqtt://192.168.20.100
[Back Yard 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Front Doorbell Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Driveway Smart Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Porch Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Front Doorbell] MQTT client connected, publishing current state.
[Garden Floodlight 180] MQTT client connected, publishing current state.
[Back Yard 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Scrypted Workshop Interior Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Back of Workshop Sensor] Using external broker. mqtt://192.168.20.100
[Driveway Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Doorbell] Using device specific broker. mqtt://192.168.20.100/scrypted/frontdoorbell/motion/state
[Garden Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Front] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Siren] Using external broker. mqtt://192.168.20.100
[Back Porch] Using external broker. mqtt://192.168.20.100
[Driveway] Using external broker. mqtt://192.168.20.100
[Workshop Front] MQTT client connected, publishing current state.
[Workshop Driveway 180] MQTT client connected, publishing current state.
[Garden Floodlight 180 Siren] MQTT client connected, publishing current state.
[Back Porch] MQTT client connected, publishing current state.
[Driveway] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180] MQTT client connected, publishing current state.
[Workshop Interior] MQTT client connected, publishing current state.
[Back Yard 180] MQTT client connected, publishing current state.
[Garden Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Front Doorbell Smart Motion Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Driveway Smart Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Porch Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Yard 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Garden Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Scrypted Workshop Interior Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Front Porch] MQTT client connected, publishing current state.
[Workshop Driveway 180 Back of Workshop Sensor] MQTT client connected, publishing current state.
[Driveway Smart Motion Sensor] MQTT client connected, publishing current state.
[Front Porch Smart Motion Sensor] MQTT client connected, publishing current state.
[Front Doorbell] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Interior] Using external broker. mqtt://192.168.20.100
[Back Yard 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Front Doorbell Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Driveway Smart Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Porch Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Yard 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Scrypted Workshop Interior Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Back of Workshop Sensor] Using external broker. mqtt://192.168.20.100
[Driveway Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180] MQTT client connected, publishing current state.
[Workshop Front] MQTT client connected, publishing current state.
[Workshop Driveway 180] MQTT client connected, publishing current state.
[Garden Floodlight 180 Siren] MQTT client connected, publishing current state.
[Back Porch] MQTT client connected, publishing current state.
[Driveway] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180] MQTT client connected, publishing current state.
[Workshop Interior] MQTT client connected, publishing current state.
[Back Yard 180] MQTT client connected, publishing current state.
[Garden Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Front Doorbell Smart Motion Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Driveway Smart Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Porch Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Yard 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Yard 180 Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Back Yard 180 Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Garden Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Garden Floodlight 180 Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Garden Floodlight 180 Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Workshop Back Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Workshop Back Floodlight 180 Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Scrypted Workshop Interior Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Scrypted Workshop Interior Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Scrypted Workshop Interior Smart Occupancy Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch] MQTT client connected, publishing current state.
[Front Porch] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Workshop Driveway 180 Back of Workshop Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Back of Workshop Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Workshop Driveway 180 Back of Workshop Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Driveway Smart Motion Sensor] MQTT client connected, publishing current state.
[Driveway Smart Motion Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Driveway Smart Motion Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch Smart Motion Sensor] MQTT client connected, publishing current state.
[Front Porch Smart Motion Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at publishAutoDiscovery (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/autodiscovery.ts:719:16)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:305:21)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Porch Smart Motion Sensor] mqtt client error Error: client disconnecting
at v._checkDisconnecting (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:448:26)
at v.publish (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:489:12)
at A.publishState (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:241:24)
at v. (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/src/main.ts:307:18)
at v.emit (node:events:530:35)
at v.emit (node:domain:489:12)
at v._onConnect (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1483:10)
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1188:10)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at l (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
[Front Doorbell] MQTT client connected, publishing current state.
[Garden Floodlight 180] MQTT client connected, publishing current state.
[Workshop Front] MQTT client connected, publishing current state.
[Workshop Driveway 180] MQTT client connected, publishing current state.
[Garden Floodlight 180 Siren] MQTT client connected, publishing current state.
[Back Porch] MQTT client connected, publishing current state.
[Driveway] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180] MQTT client connected, publishing current state.
[Workshop Interior] MQTT client connected, publishing current state.
[Back Yard 180] MQTT client connected, publishing current state.
[Garden Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Front Doorbell Smart Motion Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Driveway Smart Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Porch Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Yard 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Garden Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Scrypted Workshop Interior Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Front Porch] MQTT client connected, publishing current state.
[Workshop Driveway 180 Back of Workshop Sensor] MQTT client connected, publishing current state.
[Driveway Smart Motion Sensor] MQTT client connected, publishing current state.
[Front Porch Smart Motion Sensor] MQTT client connected, publishing current state.
MQTT: scheduled plugin restart cancelled, plugin was restarted by user @scrypted/mqtt
[Front Porch Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Porch Smart Motion Sensor] MQTT client connected, publishing current state.
[Driveway Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Driveway Smart Motion Sensor] MQTT client connected, publishing current state.
[Front Porch] Using external broker. mqtt://192.168.20.100
[Front Porch] MQTT client connected, publishing current state.
[Scrypted Workshop Interior Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Scrypted Workshop Interior Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Back of Workshop Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Back of Workshop Sensor] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Garden Floodlight 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Yard 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Yard 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Back Porch Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Back Porch Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Smart Occupancy Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Smart Occupancy Sensor] MQTT client connected, publishing current state.
[Workshop Driveway 180 Driveway Smart Sensor] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180 Driveway Smart Sensor] MQTT client connected, publishing current state.
[Front Doorbell Smart Motion Sensor] Using external broker. mqtt://192.168.20.100
[Front Doorbell Smart Motion Sensor] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Garden Floodlight 180 Floodlight] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Floodlight] MQTT client connected, publishing current state.
[Back Yard 180] Using external broker. mqtt://192.168.20.100
[Back Yard 180] MQTT client connected, publishing current state.
[Workshop Interior] Using external broker. mqtt://192.168.20.100
[Workshop Interior] MQTT client connected, publishing current state.
[Workshop Back Floodlight 180] Using external broker. mqtt://192.168.20.100
[Workshop Back Floodlight 180] MQTT client connected, publishing current state.
[Driveway] Using external broker. mqtt://192.168.20.100
[Driveway] MQTT client connected, publishing current state.
[Back Porch] Using external broker. mqtt://192.168.20.100
[Back Porch] MQTT client connected, publishing current state.
[Garden Floodlight 180 Siren] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180 Siren] MQTT client connected, publishing current state.
[Workshop Driveway 180] Using external broker. mqtt://192.168.20.100
[Workshop Driveway 180] MQTT client connected, publishing current state.
[Workshop Front] Using external broker. mqtt://192.168.20.100
[Workshop Front] MQTT client connected, publishing current state.
[Garden Floodlight 180] Using external broker. mqtt://192.168.20.100
[Garden Floodlight 180] MQTT client connected, publishing current state.
[Front Doorbell] Using device specific broker. mqtt://192.168.20.100/scrypted/frontdoorbell/motion/state
[Front Doorbell] MQTT client connected, publishing current state.
Using external broker. mqtt://192.168.20.100
Using external broker. mqtt://192.168.20.100
uncaughtException Error: Connection refused: Not authorized
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1190:15)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at work (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
at E._write (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:335:5)
at doWrite (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/readable-stream/lib/_stream_writable.js:409:139)
at writeOrBuffer (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/readable-stream/lib/_stream_writable.js:398:5)
at E.write (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/readable-stream/lib/_stream_writable.js:307:11)
at Socket.ondata (node:internal/streams/readable:1009:22)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:489:12) {
code: 5
}
MQTT: uncaughtException Error: Connection refused: Not authorized
at v._handleConnack (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:1190:15)
at v._handlePacket (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:424:12)
at work (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:321:12)
at E._write (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/mqtt/lib/client.js:335:5)
at doWrite (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/readable-stream/lib/_stream_writable.js:409:139)
at writeOrBuffer (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/readable-stream/lib/_stream_writable.js:398:5)
at E.write (/Users/michael/.scrypted/volume/plugins/@scrypted/mqtt/zip/node_modules/readable-stream/lib/_stream_writable.js:307:11)
at Socket.ondata (node:internal/streams/readable:1009:22)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:489:12)
connected to mqtt {
cmd: 'connack',
retain: false,
qos: 0,
dup: false,
length: 2,
topic: null,
payload: null,
sessionPresent: false,
returnCode: 0
}
########################
3/12/2025, 10:09:06 PM
########################
Using external broker. mqtt://192.168.20.100
Using external broker. mqtt://192.168.20.100

Server (please complete the following information):

  • OS: MacOS Sequoia 15.3.1
  • Installation Method: Desktop App

Hardware Model (please complete the following information):

  • Device: N/A

Client (please complete the following information, if applicable):

  • Software: Home Assistant MQTT Add-on

Additional context
Add any other context about the problem here.

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

1 participant