Lost connection between Gladys, MQTT and Zigbee2mqtt

Hello,

My server just rebooted after a power outage (the storm is coming…).

Unfortunately, the connection between the three components is lost:

Screenshot from 2026-02-12 15-26-57

Question 1: after reading several posts, I again have a password problem like after the initial installation, but I can’t find the solution anymore:

*2026-02-12T19:35:53+0100 \u003cerror\u003e device.poll.js:24 (DeviceManager.poll) SyntaxError: Unexpected end of JSON input*
*     at JSON.parse (\u003canonymous\u003e)*
*     at Object.color (/src/server/services/tuya/lib/device/tuya.deviceMapping.js:158:32)*
*     at /src/server/services/tuya/lib/tuya.poll.js:39:84*
*     at Array.forEach (\u003canonymous\u003e)*
*     at TuyaHandler.poll (/src/server/services/tuya/lib/tuya.poll.js:35:19)*
*     at processTicksAndRejections (node:internal/process/task_queues:105:5)*
*     at DeviceManager.poll (/src/server/lib/device/device.poll.js:21:5)*
* 2026-02-12T19:35:55+0100 \u003cwarn\u003e connect.js:46 (MqttClient.\u003canonymous\u003e) Error while connecting to MQTT - Error: Connection refused: Not authorized*
* 2026-02-12T19:36:00+0100 \u003cwarn\u003e connect.js:46 (MqttClient.\u003canonymous\u003e) Error while connecting to MQTT - Error: Connection refused: Not authorized*
* 2026-02-12T19:36:05+0100 \u003cwarn\u003e connect.js:46 (MqttClient.\u003canonymous\u003e) Error while connecting to MQTT - Error: Connection refused: Not authorized*
* 2026-02-12T19:36:10+0100 \u003cwarn\u003e connect.js:46 (MqttClient.\u003canonymous\u003e) Error while connecting to MQTT - Error: Connection refused: Not authorized*
* 2026-02-12T19:36:15+0100 \u003cwarn\u003e connect.js:46 (MqttClient.\u003canonymous\u003e) Error while connecting to MQTT - Error: Connection refused: Not authorized*
* 2026-02-12T19:36:20+0100 \u003cwarn\u003e connect.js:46 (MqttClient.\u003canonymous\u003e) Error while connecting to MQTT - Error: Connection refused: Not authorized*
* 2026-02-12T19:36:23+0100 \u003cerror\u003e device.poll.js:23 (DeviceManager.poll) There was an error while polling device tuya-bfcb00452aa5e56a9aqqvk*
* 2026-02-12T19:36:23+0100 \u003cerror\u003e device.poll.js:24 (DeviceManager.poll) SyntaxError: Unexpected end of JSON input*

while MQTT seems to be connected though:

Screenshot from 2026-02-12 19-50-10

I feel like I’m mixing everything up, is that it?

Thanks in advance

[quote="jcm

1 Like

That’s what I thought, thanks for the clarification.

So, what’s the best way to fix that, because I understand the problem, but I don’t really see the solution :rofl:

About your issue, you can set aside the MQTT integration which works — it’s zigbee2mqqt that’s causing the problem.
Can you make a screenshot of your Z2M config?
In any case you’ll need to redo it because the password for the MQTT connection is not correct (according to the logs), maybe using this post where you found a solution: Projet Jean-Jacques M

Thanks, the reset worked, like the first time.

One remark if I may: « Disable the ZigBee2MQTT integration in Gladys »: I’m not sure how to do that, I went straight to deletion in point 2 :zany_face:

I stopped the MQTT service so I wouldn’t make a mistake anymore :wink:

And I confirm that it’s working now, I was able to pair my first Zigbee device directly! Yesss, thanks!

:sweat_smile: I think neither do I! I was thinking of disabling the service to make sure it’s not running anymore.

I think we should add a Reset button in some integrations when a user has a configuration issue, because removing things via the command line isn’t something everyone can

1 Like