SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

SONOFF ZigBee 3.0 USB Dongle Plus - E docker fails

Post 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
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post by BartSr »

Walter, thanks for your advice. I did as you adviced but still same error.
Attachments
fout.jpg
fout.jpg (42.43 KiB) Viewed 1013 times
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post 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....
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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!
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post 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?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post 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.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post 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...
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post 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?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
CRTer
Posts: 1
Joined: Monday 11 March 2024 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post by BartSr »

Sorry, no. If I follow your advice then error no such file of directory is back.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post by jvdz »

Its simple: the name needs to be exactly what is listed as output for: ls /dev/serial/by-id
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post by BartSr »

exact, that's what I learnt from this thread
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
BartSr
Posts: 347
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.3
Location: Netherlands
Contact:

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

Post 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.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 espeasy
MQTT
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests