Sonoff dongle problem

Hello
I installed Gladys Assistant OS rpi64 on a Pi 3 + SONOFF Zigbee 3.0 USB Dongle Plus
and I’m encountering problems:
in settings I have
2 USB ports detected
1 : /dev/ttyAMA0
2 : /dev/ttyACM0
2 SONOFF dongles
A : SONOFFZigbee 3.0 USB Dongle Plus ZBDongle-P
B : IteaD SonoffZigbee 3.0 USB Dongle Plus V2 model ¨ZBDongle-E¨

I tested the 4 possible configurations (in all 4 cases the 3 services GLADYS – MQTT - ZIGBEE2MQTT are running)
usb 1-dongle A : GLADYS down MQTT down ZIGBEE2MQTT
usb 1-dongle B : GLADYS ok MQTT down ZIGBEE2MQTT

usb 2-dongle A : GLADYS down MQTT down ZIGBEE2MQTT
usb 2-dongle B : GLADYS ok MQTT down ZIGBEE2MQTT

I also modified:
in /var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml`
I replaced adapter ezsp with adapter: deconz

I am brand new to Gladys
thanks +++
best regards

Given the number of things you’ve tested without success, you might want to check the logs of gladys and zigbee2mqtt. Do you know how to do that?

@dede

If that can help you I have one: SONOFFZigbee 3.0 USB Dongle Plus ZBDongle-P
It works for me with these settings in the yaml
I don’t have an adapter line (deconz is for the deconz key)

Thank you for your quick response
I will test

hello cce66

  • I tested the changes you suggested, but the problem persists, thanks

hello guim31
here are the logs
many errors

docker logs -n 25 gladys-z2m-zigbee2mqtt
Zigbee2MQTT:error 2023-10-28 13:25:19: Exiting…
Zigbee2MQTT:error 2023-10-28 13:25:19: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:60:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)
Using ‹ /app/data › as data directory
Zigbee2MQTT:info 2023-10-28 13:25:30: Logging to console and directory: ‹ /app/data/log/2023-10-28.13-25-30 › filename: log.txt
Zigbee2MQTT:info 2023-10-28 13:25:30: Starting Zigbee2MQTT version 1.33.1 (commit #7e63039)
Zigbee2MQTT:info 2023-10-28 13:25:30: Starting zigbee-herdsman (0.19.0)
Zigbee2MQTT:error 2023-10-28 13:25:52: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-10-28 13:25:52: Failed to start zigbee
Zigbee2MQTT:error 2023-10-28 13:25:52: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-10-28 13:25:52: Exiting…
Zigbee2MQTT:error 2023-10-28 13:25:52: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:60:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)
Using ‹ /app/data › as data directory
Zigbee2MQTT:info 2023-10-28 13:26:03: Logging to console and directory: ‹ /app/data/log/2023-10-28.13-26-03 › filename: log.txt
Zigbee2MQTT:info 2023-10-28 13:26:03: Starting Zigbee2MQTT version 1.33.1 (commit #7e63039)
Zigbee2MQTT:info 2023-10-28 13:26:03: Starting zigbee-herdsman (0.19.0)#ocker logs -n 25 gladys-z2m-zigbee2mqtt

Errors found in Gladys logs

2023-10-28T16:37:35+0200 connect.js:25 (Zigbee2mqttManager.connect) Connecting Gladys to mqtt://localhost:1884 MQTT broker…
2023-10-28T16:37:36+0200 connect.js:46 (MqttClient.) Error while connecting to MQTT - Error: connect ECONNREFUSED ::1:1884
2023-10-28T16:37:36+0200 connect.js:55 (MqttClient.) Disconnected from MQTT server
2023-10-28T16:37:36+0200 installZ2mContainer.js:74 (Zigbee2mqttManager.installZ2mContainer) Zigbee2mqtt container successfully started
2023-10-28T16:37:36+0200 connect.js:17 (Zigbee2mqttManager.connect) Disconnecting existing MQTT client…
2023-10-28T16:37:36+0200 connect.js:25 (Zigbee2mqttManager.connect) Connecting Gladys to mqtt://localhost:1884 MQTT broker…
2023-10-28T16:37:36+0200 connect.js:46 (MqttClient.) Error while connecting to MQTT - Error: connect ECONNREFUSED ::1:1884
2023-10-28T16:37:36+0200 connect.js:55 (MqttClient.) Disconnected from MQTT server
2023-10-28T16:37:41+0200 connect.js:46 (MqttClient.) Error while connecting to MQTT - Error: connect ECONNREFUSED ::1:1884
2023-10-28T16:37:46+0200 connect.js:46 (MqttClient.) Error while connecting to MQTT - Error: connect ECONNREFUSED ::1:1884

Actually there aren’t that many errors, it’s that one that causes the others.
Your Zigbee2mqtt container can’t connect to your dongle.
It’s true that usually choosing the correct dongle from the list is enough to fix this problem… :thinking:
Could you show us the contents of your configuration.yaml file?

Also, how is your setup powered? Specifically regarding the power supply.
Are you powering the Pi with a sufficient power supply? Is Gladys on an SSD or on an SD card?

By any chance, isn’t that the new SONOFF E dongle with the Matter protocol?

If that’s the case you need to add to the YAML configuration

port: tcp://core-silabs-multiprotocol:9999
adapter: ezsp

And check whether the drivers are installed

Hello everyone and thank you
I finally managed it.
The error was caused by repeatedly changing, in the settings, the USB port as well as the dongle selection
I performed a complete installation again with the correct settings
![parametrage-dongle usb

1 Like

Cool, could you attach your configuration.yaml so we can see the before/after differences and enrich the knowledge base? :wink:

The configuration change is not being applied… I made a fix that will be in the next release.

3 Likes