#Sonoff Dongle E

1 messages · Page 1 of 1 (latest)

toxic hedge
#

I can't seem to get it to play nice with z2m. I did the 2.0 z2m update, I updated the configuration.yaml with the serial port and adapter. When adapter is zstack I get a ping timeout.
"serialPort":{"path":"/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_023a91389339ef11875c59f454516304-if00-port0","adapter":"zstack"}
[2025-01-14 17:40:05] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

Then found some information that adapter should be ezsp so I tried that but get Failure to init network. I also see a warning that ezsp is depreciated and ember is recommended.
"serialPort":{"path":"/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_023a91389339ef11875c59f454516304-if00-port0","adapter":"ezsp"}
[2025-01-14 17:48:37] debug: zh:ezsp:ezsp: Network init result: {"cls":"networkInit","id":23,"isRequest":false,"status":147}
[2025-01-14 17:48:37] error: zh:ezsp:ezsp: Failure to init network

Then I tried ember but get an error that ezsp protocol version 8 is not suppoted by host 13-16
"serialPort":{"path":"/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_023a91389339ef11875c59f454516304-if00-port0","adapter":"ember"}
[2025-01-14 17:49:36] error: z2m: Error: Adapter EZSP protocol version (8) is not supported by Host [13-16].

This dongle is stock out of the box, does it require flashing first? Or am I doing something (multiple things?) else wrong?

toxic hedge
#

Went back to ezsp and found this error: This open coordinator backup format not for EZSP adapter

#

found a coordinator_backup.json file, renaming that.

#

It starts now!
Getting spammed with stuff like this: [2025-01-14 18:34:18] error: zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds

I see a DB file here too. I think I probably just need to start over so renaming that too and restarting...

#

I think that did it. I'm not getting spammed with errors now and the logs look void of red text now so, normal? Now I'll try to remmeber how to pair things...

#

Pairing kind of worked? But ick

keen prairie
#

Does that dongle need to be flashed? I have one but also some config issues

#

or "issues" in general 🙂

keen prairie
#

[2025-01-19 15:15:41] error: z2m: Error while starting zigbee-herdsman

[2025-01-19 15:15:41] error: z2m: Failed to start zigbee-herdsman

[2025-01-19 15:15:41] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions

[2025-01-19 15:15:41] error: z2m: Exiting...

[2025-01-19 15:15:41] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

at ZStackAdapter.start (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:113:27)

at Controller.start (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/controller/controller.ts:136:29)

at Zigbee.start (/app/lib/zigbee.ts:69:27)

at Controller.start (/app/lib/controller.ts:142:13)

at start (/app/index.js:161:5)

Using '/app/data' as data directory

Starting Zigbee2MQTT without watchdog.

#

Can anyone shed some light on the above? I have HA, mosquitto and z2m containers, all run and seem ok, but the usb stick doesn't seem to play well with others

#

All on CM3588 nas kit arm

finite torrent
#
#

Its a big damn thread.. probably start in there tho

keen prairie
#

Thanks, everything seems to involve possibly, I followed some guides and have some basically functioning containers but I probably have config issues and perhaps firmware for the sonoff stick.

keen prairie
#

Well, had a few issues but I managed to flash the latest firmware to the zonoff usb dongle - (ncp-uart-hw-v7.4.5.0-zbdonglee-115200.gbl) although I still have the same timeout issue in the logs for zigbee herdsman and access to the usb adapter, see settings - serial:
29 # # Location of the adapter
30 # # Ethernet adapters - use format "port: tcp://192.168.1.12:6638"
31 port: /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_08a22b8a ce8bee1189dcfc018acbdcd8-if00-port0
32 # # Adapter type, allowed values: zstack, ember, deconz, zigate or z boss
33 adapter: 'ember'

#

Enable the frontend, runs on port 8080 by default

14 frontend:
15 enabled: true
16 port: 8080

#

Although I have the above set I can't connect to the front end either

#

2025-01-20 02:44:50.966 ERROR (MainThread) [homeassistant.components.mqtt.client] Failed to connect to MQTT server due to exception: [Errno 111] Connection refused

also see this in the HA container log

keen prairie
#

Apo-logies in advance, not really sure just where to post this stuff as there are quite a few different ways to install/configure these entities. I have mosquitto, HA, Z2M containers on OMV, followed guides to install but some info may have been aimed at a different install config. Containers start and run, HA is displaying my reolink NVR feeds and I have a Jellyfin container that seems ok too.

finite torrent
#

It seems mostly like the zigbee stick is just failing to connect properly; have you tried the ember firmware maybe? If it matches your stick that is.. it seemed to be the suggested thing I came away with after skimming that thread. 🤷‍♂️

keen prairie
#

As far as I know that update was for the ember firmware, it was the latest listed with 115200 baud, so I "think" it's the recommended upgrade. HA found the mosquitto container and I added it as an integration, but I

#

I'm afraid I'm new to all this stuff (including discord) 🙂

#

Are there some example config.yml files available for use with a fully containerized setup? I used some to configure the containers, but maybe one or more were mean't to be used with HA-os or integrated services? Z2M front end is missing so that seems like a config issue, I can click on the link from portainer but I get a failure to connect message in the tab - bad gateway 0.0.0.0:8080

#

I read that docker-compose.yml should handle multiple containers, I have two docker-compose files, one for Home assistant and one for Jellyfin, but I ended up following multiple instructions and I don't see docker-compose files for the other containers. probably need a high level intro to this kind of setup to clear the confusion

finite torrent
#

... possibly? I don't know exactly what setup you're running adn tend towards just running my stuff in HAOS for the most part for simplicity of addons and management/backup and etc..

keen prairie
#

Yeah, I guess I picked the hard path again, just seemed like a good, flexible, maybe future proof way to set this up. I began with a YT clip on the CM3588 nas kit, thought that it looked like a good idea, and it wasn't too difficult to set up - works well, then I discovered Jellyfin (took quite a bit of filename massaging) but it seems pretty good now, then I got to wondering what else I could do with the hardware... 🙂

finite torrent
#

Depends on what hardware.

But since the thing seems to be communicating somewhat but also errorring at the same time.. I"m not sure what exactly the answer is here unfortunately 😄