Hello,
I’m having difficulty installing Gladys Assistant.
The equipment includes:
1 Pi4 OS bookworm
1 Sonoff Zigbee 3.0 USB Dongle Plus P (Ti CC2652)
1 4-relay case MHCOZY TYWB 4ch-RF
2 Sonoff SNZB-02D sensors
The installation is entirely new on an SD card with Docker for MQTT and ZigBee
Until now I used MQTT directly with Zigbee2mqtt and Apache + MySQL to control the heating (day/night and presence/absence), plus other processes with this hardware.
I chose the Gladys Assistant interface because it does not rely on a third-party service.
Configuration in Gladys:
- USB port (the only one offered): /dev/ttyUSB0 – Itead - 10c4
- dongle: SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P
- TCP port: 12000
The Gladys, MQTT and ZigBee2MQTT services are running and their connection is green
The web page :12000 displays the error: Connection failed
My problem is that the dongle is not recognized by zigbee2mqtt with Gladys.
sudo docker logs gladys-z2m-zigbee2mqtt
Starting Zigbee2MQTT without watchdog.
[2025-10-27 17:05:02] info: z2m: Logging to console, file (filename: log.log)
[2025-10-27 17:05:02] info: z2m: Starting Zigbee2MQTT version 2.6.1 (commit #e9889e5d20e8911550d5231bc0349567cc2bb9ce)
[2025-10-27 17:05:02] info: z2m: Starting zigbee-herdsman (6.0.4)
[2025-10-27 17:05:03] info: zh:zstack:znp: Opening SerialPort with {« path »:« /dev/ttyUSB0 »,« baudRate »:115200,« rtscts »:false,« autoOpen »:false}
[2025-10-27 17:05:03] error: z2m: Error while starting zigbee-herdsman
[2025-10-27 17:05:03] error: z2m: Failed to start zigbee-herdsman
[2025-10-27 17:05:03] error: z2m: Check Zigbee2MQTT fails to start/crashes runtime | Zigbee2MQTT for possible solutions
[2025-10-27 17:05:03] error: z2m: Exiting…
[2025-10-27 17:05:03] error: z2m: Error: Error: No such file or directory, cannot open /dev/ttyUSB0
The USB port file is not accessible. My dongle is referenced in /dev/serial/by-id
ls -l /dev/serial/by-id
usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b2d173c5eea5ed1196f3f3a32981d5c7-if00-port0 → ../../ttyUSB0
Apparently the dongle is not correctly routed to the ttyUSB0 port!
I tried modifying the zigbee configuration file.
sudo nano /var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml
serial:
# port: /dev/ttyUSB0
port: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b2d173c5eea5ed1196f3f3a32981d5c7-if00-port0
adapter: zstack
After restarting there is no improvement.
I also tested by flashing the dongle with:
CC1352P2_CC2652P_launchpad_coordinator_20240710
Or CC1352P2_CC2652P_launchpad_coordinator_20250321
Or by placing the dongle in another USB port, also tested with another identical dongle.
I also consulted the 3 similar threads that were suggested to me when creating this topic
Thanks in advance for your help.