Zigbee2MQTT stopped working after 2022.8.5

My Zigbee2MQTT has been working great until the latest update.

It seems to just fail connection over and over again.

Zigbee2MQTT Log

info  2022-08-17 15:02:59: Logging to console and directory: '/config/zigbee2mqtt/log/2022-08-17.15-02-59' filename: log.txt
info  2022-08-17 15:02:59: Starting Zigbee2MQTT version 1.27.0 (commit #unknown)
info  2022-08-17 15:02:59: Starting zigbee-herdsman (0.14.46)
info  2022-08-17 15:02:59: zigbee-herdsman started (resumed)
info  2022-08-17 15:02:59: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20220219,"transportrev":2},"type":"zStack3x0"}'
info  2022-08-17 15:03:00: Currently 6 devices are joined:
info  2022-08-17 15:03:00: Front Door (0x00158d0007e59564): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
info  2022-08-17 15:03:00: Back Door (0x00158d0007f84a51): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
info  2022-08-17 15:03:00: Front Door Lock (0x000d6f000f76c53b): YRD226HA2619 - Yale Assure lock (EndDevice)
info  2022-08-17 15:03:00: Front Door Motion Sensor (0x00158d0007752c2c): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
info  2022-08-17 15:03:00: Fridge Door (0x00158d0007f8073a): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
info  2022-08-17 15:03:00: Kitchen Sensor (0x00158d00075a30a1): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
info  2022-08-17 15:03:00: Zigbee: disabling joining new devices.
info  2022-08-17 15:03:00: Connecting to MQTT server at mqtt://172.30.32.1
error 2022-08-17 15:03:00: MQTT failed to connect: Connection refused: Not authorized
error 2022-08-17 15:03:00: Exiting...
info  2022-08-17 15:03:00: Stopping zigbee-herdsman...
info  2022-08-17 15:03:10: Stopped zigbee-herdsman

Mosquitto Log

1660763435: New connection from 172.30.32.1:41221 on port 1883.
1660763435: Client <unknown> disconnected, not authorised.
1660763449: New connection from 172.30.32.2:56460 on port 1883.
1660763449: Client <unknown> closed its connection.
1660763487: New connection from 172.30.32.1:42726 on port 1883.
1660763487: Client <unknown> disconnected, not authorised.
1660763488: New connection from 172.30.32.1:42728 on port 1883.
1660763488: Client <unknown> disconnected, not authorised.
1660763489: New connection from 172.30.32.1:42730 on port 1883.
1660763489: Client <unknown> disconnected, not authorised.
1660763490: New connection from 172.30.32.1:42732 on port 1883.
1660763490: Client <unknown> disconnected, not authorised.
1660763491: New connection from 172.30.32.1:42734 on port 1883.
1660763491: Client <unknown> disconnected, not authorised.
1660763492: New connection from 172.30.32.1:42736 on port 1883.
1660763492: Client <unknown> disconnected, not authorised.
1660763493: New connection from 172.30.32.1:42738 on port 1883.
1660763493: Client <unknown> disconnected, not authorised.
1660763494: New connection from 172.30.32.1:42740 on port 1883.
1660763494: Client <unknown> disconnected, not authorised.
1660763495: New connection from 172.30.32.1:42742 on port 1883.
1660763495: Client <unknown> disconnected, not authorised.
1660763496: New connection from 172.30.32.1:42744 on port 1883.
1660763496: Client <unknown> disconnected, not authorised.
1660763499: New connection from 172.30.32.1:35817 on port 1883.
1660763499: Client <unknown> disconnected, not authorised.
1660763569: New connection from 172.30.32.2:56462 on port 1883.
1660763569: Client <unknown> closed its connection.
1660763619: New connection from 172.30.32.1:35943 on port 1883.
1660763619: Client <unknown> disconnected, not authorised.
1660763689: New connection from 172.30.32.2:56464 on port 1883.
1660763689: Client <unknown> closed its connection.
1660763739: New connection from 172.30.32.1:38335 on port 1883.
1660763739: Client <unknown> disconnected, not authorised.
1660763809: New connection from 172.30.32.2:56466 on port 1883.
1660763809: Client <unknown> closed its connection.
1660763859: New connection from 172.30.32.1:52651 on port 1883.
1660763859: Client <unknown> disconnected, not authorised.
1660763929: New connection from 172.30.32.2:56468 on port 1883.
1660763929: Client <unknown> closed its connection.
1660763979: New connection from 172.30.32.1:49923 on port 1883.
1660763979: Client <unknown> disconnected, not authorised.
1660764049: New connection from 172.30.32.2:56470 on port 1883.
1660764049: Client <unknown> closed its connection.
1660764099: New connection from 172.30.32.1:43491 on port 1883.
1660764099: Client <unknown> disconnected, not authorised.
1660764169: New connection from 172.30.32.2:56472 on port 1883.
1660764169: Client <unknown> closed its connection.
1660764219: New connection from 172.30.32.1:50671 on port 1883.
1660764219: Client <unknown> disconnected, not authorised.
1660764289: New connection from 172.30.32.2:56474 on port 1883.
1660764289: Client <unknown> closed its connection.
1660764339: New connection from 172.30.32.1:53239 on port 1883.
1660764339: Client <unknown> disconnected, not authorised.
1660764409: New connection from 172.30.32.2:56476 on port 1883.
1660764409: Client <unknown> closed its connection.
1660764459: New connection from 172.30.32.1:38245 on port 1883.
1660764459: Client <unknown> disconnected, not authorised.
1660764529: New connection from 172.30.32.2:56478 on port 1883.

Configuration

homeassistant: true
mqtt:
  server: mqtt://172.30.32.1
  user: notYours
  password: itsMine
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_ee9a0708f65fec11a2602e5f25bfaa52-if00-port0
frontend:
  port: 8099
devices:
  "0x00158d0007e59564":
    friendly_name: Front Door
    temperature_precision: 1
    temperature_calibration: -6
  "0x00158d0007f84a51":
    friendly_name: Back Door
    temperature_calibration: -10
    temperature_precision: 1
  "0x000d6f000f76c53b":
    friendly_name: Front Door Lock
  "0x00158d0007752c2c":
    friendly_name: Front Door Motion Sensor
    occupancy_timeout: 15
    temperature_calibration: -10
    temperature_precision: 1
  "0x00158d0007f8073a":
    friendly_name: Fridge Door
    temperature_precision: 1
  "0x00158d00075a30a1":
    friendly_name: Kitchen Sensor
    occupancy_timeout: 5
permit_join: false

Any help will be appreciated.

Mine is still working after 2022.8.5 update. Did you change anything in MQTT server? Looks like z2m is failing to connect to mqtt.

Restart Mosquitto broker :thinking:

1 Like

No, just did an update.

That is what is weird. Everything has been working awesome.

Try unplugging z2m device from usb and plug it back. stop the service first before disconnecting.

This seemed to have gotten Zigbee2MQTT working again.

The one thing I didn’t try.

But, the states aren’t showing up.
image

There they are, seems to be working ok now.

Thanks for the help!!

So, this still isn’t working.

If I remove a battery and replace it, the door lock shows up in Home Assistant, but the states are wrong.

I put new batteries in, and it still shows 36%.
The lock is locked right now, but it shows unlocked.
I can toggle the lock from locked and unlocked in Zigbee2Mqtt and it triggers the lock correctly.

Does anyone have this lock and using it currently on ZHA?

Have we ruled out the possibility that the usb stick gone bad?
Not likely I know, I am asking whether we have ruled out.

All my other zigbee devices work.

I would say highly unlikely?