Page 1 of 1

SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Wednesday 09 October 2024 11:37
by BartSr
I bought a brandnew zigbee stick: sonoff usb 3.0 zigbee -E stick preflashed with ember

after command docker compose up :

Attaching to zigbee2mqtt
Gracefully stopping ... (press Ctrl+C again to force
Error response from daemon: error gathering device information while adding custom device "/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-": no such file or directory

how can I correct this

in linux the ls /dev/serial/by-id gives: usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0
submap 'data' exists with configuration file

note that I used same files for same stick but older preflashed software EZSP v8.0 of couse with correct stick address


here's my compose file

Code: Select all

version: '3.8'
services:
  zigbee2mqtt:
    container_name: zigbee2mqtt
    image: koenkk/zigbee2mqtt
    restart: unless-stopped
    volumes:
      - ./data:/app/data
      - /run/udev:/run/udev:ro
    ports:
      # Frontend port
      - 8090:8080
    environment:
      - TZ=Europe/Berlin
    devices:
      # Make sure this matched your adapter location
      - /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00:/dev/ttyACM0
configuration file

Code: Select all

homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.2.225:1883
serial:
  port: /dev/ttyACM0
advanced:
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Wednesday 09 October 2024 17:20
by waltervl
Could be you made a typing error in your usb path as it looks like the path in the error is not the same as in your docker compose file. Error has a dash on the end.
"/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-"
/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00

Edit: And I think you also missed the -port0 so it should be:
/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Wednesday 09 October 2024 17:59
by BartSr
Walter, thanks for your advice. I did as you adviced but still same error.

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 9:20
by waltervl
In zigbee2MQTT User interface you should set the USB port to /dev/ttyACM0 as that is what you have set in the docker compose file: The USB stick on OS /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0 you can find in the docker container on /dev/ttyACM0 (so you do not have to change it in the Z2M UI or yaml file)
https://www.zigbee2mqtt.io/guide/config ... ee-adapter

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 9:59
by BartSr
Still problems to get Z2M up and runnig with new stick

This is the compose file I copied from running Z2M which I updated for the new stick. See the notes in the device part

Code: Select all

services:
  zigbee2mqtt:
    container_name: zigbee2mqtt
    image: koenkk/zigbee2mqtt
    restart: unless-stopped
    volumes:
      - ./data:/app/data
      - /run/udev:/run/udev:ro
    ports:
      # Frontend port
      - 8090:8080
    environment:
      - TZ=Europe/Berlin
    devices:
      # Make sure this matched your adapter location
      # herunder this works with my old sonoff stick		
      #- /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231101190346-if00:/dev/ttyACM0
      # herunder this is the new stick with updated software to 'ember' The stick works in HA (ZHA); it fails in Z2M
      - /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0:/dev/ttyACM0
but still same error saying no such file or directory
this is result of ls /dev/serial/by-id

Code: Select all

usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0
so I get stuck....

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 10:26
by waltervl
google for the issue, there are various other users having this issue. Or ask in the zigbee2mqtt forum. Could be access related, could be a malfunctioning USB stick, Could be it needs firmware flashing etc.

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 11:49
by jvdz
BartSr wrote: Thursday 10 October 2024 9:59 Still problems to get Z2M up and runnig with new stick

Code: Select all

     - /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0:/dev/ttyACM0
but still same error saying no such file or directory
this is result of ls /dev/serial/by-id

Code: Select all

usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0
so I get stuck....
The shown device names are not equal as the beginning of these names have different Upper/Lowercase letters.
Try doing a copy&paste to ensure they are equal!

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 14:07
by BartSr
jvdz: stupid I overlooked. Updating helped. But now another error pops up:

(copied from logfile)

Code: Select all

[2024-10-10 14:01:25] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-10 14:01:25] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #e06848d)
[2024-10-10 14:01:25] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-10 14:01:28] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-10-10 14:01:28] info: 	zh:zstack:znp: Serialport opened
[2024-10-10 14:01:29] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-10-10 14:01:30] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-10-10 14:01:48] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-10 14:01:48] error: 	z2m: Failed to start zigbee
[2024-10-10 14:01:48] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-10 14:01:48] error: 	z2m: Exiting...
[2024-10-10 14:01:49] error: 	z2m: 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:113:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)
These kind of erros don't make sense to me. Any suggestion?

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 14:46
by jvdz
I guess these questions really belongs in the Z2M forum.
You haven't shared your Z2M config but are using the E version, so it is sort of stabbing in the dark, but maybe this Google result for "zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload"
is what is missing in your config?:
https://github.com/Koenkk/zigbee2mqtt/issues/22702

This page is giving more info about this controller:
https://www.zigbee2mqtt.io/guide/adapte ... rznet.html

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 17:00
by BartSr
thanks jvds. going to have a look at your links
btw: won't my first post give the info as mention as missing?
I'm with you this relates more to Z2M but hard to find a forum like this one fof Z2M.

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 18:22
by jvdz
My bad, you did include it there and i see the adapter line is indeed not present, so you could try that as defined in the second link about this specific device:

Code: Select all

serial:
    adapter: ember

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 18:53
by BartSr
I tried it this way without succes. As I was not sure if port: /dev/ttyACM0 influenced matters next try I commented that out with also no succes
Any more advices?

Code: Select all

homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.2.225:1883
serial:
  adapter:  ember
  port: /dev/ttyACM0
advanced:
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false
error log

Code: Select all

[2024-10-10 18:41:14] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-10 18:41:15] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #e06848d)
[2024-10-10 18:41:15] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-10 18:41:17] info: 	zh:ember: Using default stack config.
[2024-10-10 18:41:17] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-10-10 18:41:17] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-10-10 18:41:17] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-10 18:41:17] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-10-10 18:41:17] info: 	zh:ember:uart:ash: Serial port opened
[2024-10-10 18:41:17] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-10 18:41:18] info: 	zh:ember:uart:ash: ======== ASH connected ========
[2024-10-10 18:41:18] info: 	zh:ember:uart:ash: ======== ASH started ========
[2024-10-10 18:41:18] info: 	zh:ember:ezsp: ======== EZSP started ========
[2024-10-10 18:41:18] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-10 18:41:18] error: 	z2m: Failed to start zigbee
[2024-10-10 18:41:18] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-10 18:41:18] error: 	z2m: Exiting...
[2024-10-10 18:41:19] error: 	z2m: Error: Adapter EZSP protocol version (8) is not supported by Host [13-14].
    at EmberAdapter.emberVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1411:19)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processImmediate (node:internal/timers:447:9)
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:688:9)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1583:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)
I also 'refreshed' the image tags :
docker compose stop
docker compose rm -f
docker compose pull

but pitty...

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 19:15
by jvdz
It seems to get further now. Did you see the comment about issues with firmware 8.0.0 and to use at least 8.0.2?

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 19:43
by BartSr
the thing is that I get lost in the very detailled information about many different adapters etc. don't know how to find my way overthere
(just lack of knowledge at my site)


update: yes I saw the remark but then I don't know how to deal with. Where to find current version? Flash stick? yes? how?
So many different ways to do with risk of damage stick?

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 20:06
by CRTer
Hello, a newbe (in domoticz country) here. Maybe this is the fault. It's Linux so capital sensitive. You wrote (I think) you device id wrong:

usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_b0d28448650eef11bdbab62a433abf1e-if00-port0

You wrote the T not in capital.

This is mine device id:
usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_004fcced0e86ec11a909591719c2d21c-if00-port0

I hope this will fix the issue.

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 21:29
by BartSr
Sorry, no. If I follow your advice then error no such file of directory is back.

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 22:09
by jvdz
Its simple: the name needs to be exactly what is listed as output for: ls /dev/serial/by-id

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Thursday 10 October 2024 22:12
by BartSr
exact, that's what I learnt from this thread

Re: SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Posted: Wednesday 06 November 2024 18:37
by BartSr
for the records:

problem solved!

I installed zigbee2mqtt on a headless system.
I was nod aware it was a raspberry 2.
After upgrading to a raspberry 3+ it all works as expected.