Zigbee2Mqtt: Dongle change and loss of MQTT connection

Hello,

New Gladys user for a few days, I am having problems related to the configuration of Zigbee2mqtt.

The different steps of my configuration:

  • Integration of zigbee2mqtt with a CC2540 dongle on the ttyACM0 port: Ok, everything works.
  • Replacement with a SONOFF USB Zigbee 3.0 dongle (CC2562P) on the ttyUSB0 port
    Updated the port in the Zigbee2mqtt configuration, saved.
    Since then, it has been impossible to restart zigbee2mqtt, the link with Mqtt is broken (red cross).
    Docker logs zigbee2mqtt:
    Zigbee2MQTT:info 2022-01-28 18:27:39: Logging to console and directory: ‘/app/data/log/2022-01-28.18-27-34’ filename: log.txt
    Zigbee2MQTT:info 2022-01-28 18:27:39: Starting Zigbee2MQTT version 1.22.2 (commit #414c51f)
    Zigbee2MQTT:info 2022-01-28 18:27:39: Starting zigbee-herdsman (0.13.188)
    Zigbee2MQTT:error 2022-01-28 18:27:40: Error while starting zigbee-herdsman
    Zigbee2MQTT:error 2022-01-28 18:27:40: Failed to start zigbee
    Zigbee2MQTT:error 2022-01-28 18:27:40: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
    Zigbee2MQTT:error 2022-01-28 18:27:40: Exiting…
    Zigbee2MQTT:error 2022-01-28 18:27:40: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/ttyUSB0’
    at SerialPort. (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
    Using ‘/app/data’ as data directory

For information, I tested the dongle on another raspberry with a « classic » installation of zigbee2mqtt, it works so the firmware is OK (C1352P2_CC2652P_launchpad_coordinator_20211217):
Zigbee2MQTT:info 2022-01-28 17:08:22: Starting Zigbee2MQTT version 1.22.2 (commit #1a0a9a6e)
Zigbee2MQTT:info 2022-01-28 17:08:23: Starting zigbee-herdsman (0.13.188)
Zigbee2MQTT:info 2022-01-28 17:08:40: zigbee-herdsman started (resumed)
Zigbee2MQTT:info 2022-01-28 17:08:40: Coordinator firmware version: ‘{“meta”:{“maintrel”:1,“majorrel”:2,“minorrel”:7,“product”:1,“revision”:20211217,“transportrev”:2},“type”:“zStack3x0”}’

I have deleted and reinstalled the Zigbee2mqtt container several times, nothing changes.

Can you help me?
Thank you.

This is « normal »

When changing the dongle, you need to re-pair it, the configuration known by Gladys is incorrect (even if you recreate the container)

The simplest way is:

  • Destroy the zigbee2mqtt containers
  • Stop the Gladys container
  • Destroy the zigbee2mqtt configuration
sudo rm -rf /var/lib/gladysassistant/zigbee2mqtt
  • Restart Gladys

If you don’t know the commands, let me know

Hello,

I followed your instructions, stopped and destroyed the mqtt and zigbee2mqtt containers, stopped gladys, destroyed the zigbee2mqtt config, and restarted gladys. It works, the mqtt - zigbee2mqtt link is restored, and the zigbee2mqtt process has been running for 2 hours without interruption.

Thank you very much for your help.

Now I’m trying to pair the Xiaomi sensors, which so far has been unsuccessful, even though it works without any problems on my config without gladys on my old raspi B+…

To be continued, if you have any ideas, I’m interested.

Thanks again.

Hello,

After connecting/disconnecting the dongle, the system detected a power under-voltage (under voltage). After a reboot of the raspberry, everything returned to normal. The pairing of Xiaomi devices works well.

  • Raspberry 3 A+, 3A power supply.

Thank you for everything.

Hello @ds17
Why did you switch from the CC2540 to the gongle Sonoff?
Are you satisfied with the Sonoff?

Hello,

I made a mistake, it’s not a CC2540 but a CC2531, the CC2540 only works with Bluetooth, not Zigbee…

I bought a Sonoff dongle to improve the range, I am currently testing its compatibility with my various sensors. Then I will test the range.
Also, the CC2531 dongle is no longer recommended by zigbee2mqtt.io:
Supported Adapters | Zigbee2MQTT