I have the same problem here, but using ZHA instead of Z2MQTT.
Could you tell me what firmware are you using with the Dongle-E?
I noticed the github ZHA library do NOT reccomend using Dongle-E due unstability problems…
I have alread ordered a Dongle-P to test, but my only problem is with Aqara end devices…
BTW, I have an Aqara Hub and they work flawlessly, even with 10% battery!!!
But, driving to the offline system way, I “need” they working directly!!!
I also thought that it would be the best option, since it would work straight from the Box, without changing firmware, but in practice it is not working so I researched a little deeper the documentation of the library that it uses in the home assistant.
The Github for the BELLOWS library contains a note saying it has stability issues.
I Will try the firmware you use…
I ordered this one now:
Uses other library, and is supoosed to work better with the Z-Stack 3.x.0 coordinator firmware.
It does not say that about the Sonoff ZBDongle-E. I think that you are confusing it with the no longer sold Zigbee 3.0 dongle barebone model “9888010100045” adapter from ITead that was a previous barebone dongle that also based on EFR32MG21 (though never had the “Sonoff” branding), but that board is not the same as the Sonoff ZBDongle-E. The board 9888010100045 was not recommended because that board reportingly had a poor antenna design using a poorly tuned circuit board antenna so signal reception has been reported to be extremely sensitive to interference.
Btw, you will also find that the bellows readme is not updated often, so instead check the ZHA integration docs which has been updated more recently → https://www.home-assistant.io/integrations/zha
Comparing “ZBDongle-P” vs. “ZBDongle-E” vs. barebone EFR32MG21 dongle
verses versus
Feature/Model
ZBDongle-P
ZBDongle-E
9888010100045
Radio SoC/MCU chip
Texas Instruments CC2652P
Silicon Labs EFR32MG21
Silicon Labs EFR32MG21
Zigbee Stack (Serial Interface Protocol API/CLI)
Z-Stack v3 (ZNP 3)
EmberZNet (EZSP v8)
EmberZNet (EZSP v8)
Optional Zigbee Router firmware
Yes (9dBm firmware available from Koenkk)
Yes (20dBm firmware available from ITead)
Yes (20dBm firmware available from ITead)
USB to UART/Serial Converter Chip
CP2102 or CP2102N
CH9102F
CH340
USB EEPROM Product Description ID
SONOFF Zigbee 3.0 USB Dongle Plus
SONOFF Zigbee 3.0 USB Dongle Plus V2 (first need to run update script if from first hardware batch shipped)
None (no USB chip EEPROM)
Home Assistant USB Auto Disovery
Yes
Yes (but way need to run update script if from first hardware batch shipped)
Not possible
Flow Control
None by default (Hardware flow control optional with alternative firmware and flipped dip-switch)
Ok I see… that info is about the 9888010100045 model, but they do not say anything about the new Dongle-E, maybe because they do not update that readme… maybe!
But I’m looking everywhere for a plausible reason why my devices aqara are not accessible for more than 2 hours.
I have those cheap tuya door sensors and temp and humidity sensors located much further away from the coordinator and have been operating normally for 3 weeks.
Even some are very close to wifi networks, working normally.
I’ve followed all the recommendations to avoid interference.
I also have another problem with switching devices inside the wall, also Tuya: The ones that don’t need neutral (which don’t work as routers) work normally, but the ones connected with neutral (which work as routers) are losing connection sometimes.
Tonight I will try EmberZNet 6.10.3 NCP.
If it improves stability I could use the Dongle-P that I already ordered with a router firmware, which, by the way, is described in the zigpy-znp library (because of this I thought about changing the dongle!)
I did not imagine I was talking to THE GUY!!! sorry!!!
I will try the firmware you told right now!!!
That is definitly a good reason for the problem from the cheap Tuya Wall Switch devices, but is not my mainly problem !!!
My aqara battery devices allways pair without any problem… But they show unknown after 2 hours…
As my zigbee network is small, I have already done several tests and rebuilt the network in several different ways, including leaving only the coordinator with 2 devices aqara about 1 meter away, far from the entire wifi network (my HA runs on a network wired RPI).
And they just lose connection after few hours.
I understand that a big network needs good routers to make it stable, but I’m still choosing the best coordinator and so far, the Dongle-E doesn’t seem reliable.
I’ve also had problems with Zigbee Dongle E and cheap tuya in wall devices, the ones without nutral worked ok, the one with nutral would disconnect. I also have a new and small Zigbee network (7 devices, 2 routers) and for me what did the trick was changing the original antenna to a bigger one form an old Tp-Link router. Since the change I have not seen a single network drop in 7 days.
Actually, due to the short range of Zigbee radio signals, it is more important to have a few known good Zigbee Router devices if you have a small Zigbee network with some battery-powered devices.
A lot of people that is just starting with Zigbee do not understand that it relies on mesh networks and/or that battery-powered devices do not act as Zigbee Router devices so they only buy a Zigbee Coordinator and a bunch of battery-powered devices and then wonder why they the loose connection.
That is currently the generally recommended firmware because it is known to be very stable, however, later firmware will have later bug-fixes that might offer better compatibility with some newer devices.
So any newer firmware all the way up 7.3.0.0 that has specifically been built for the Sonoff ZBDongle-Z should also work, but they has not been tested as well to can not be said to mature or how stable.
If you have that much problem with those specific Aqara devices then it is worth open an issue to Home Assistant core to get the attention of ZHA developers → Issues · home-assistant/core · GitHub
To cleaify, I’m not a developer of ZHA or zigpy, but I did help contribute to documentation + readme files. Please note ZHA documentation are still in dire need of more people contributing improvements to it:
I just realized that maybe I have an interference problem, but not only between wifi and zigbee
My home assistant has all these protocols up and running:
Z-wave Aeotec Z-Stick Gen5 Plus
Mysensors running on NRF24L+ radio, using 2476Mhz defaut frequency (changeable)
Milight Hub - to control Miboxer Bulbs running on 2400-2483.5mhz (not changeable I think)
Wifi with 3 AP using Channel 6 (2437MHz) and Channel 1 (2412Mhz)
Zigbee Sonoff Dongle-E config channel 25 (2475Mhz) on configuration.yaml
RFLink 433,02 Mhz - no inteference i Think
Somfy Hub ESP32 - 433,42 Mhz.- no inteference i Think
I also have ApSystems Solar Energy with ECU-R in the roof - which I have no idea what Zigbee channel uses
I think I should change Zigbee to channel 15 (2425Mhz) and let the 2476 defaut to MySensors, once MySensors needs to change every node sketch to a new channel…
First I tried the Multi-PAN for Zigbee and Thread - but the firmware was unstable, Silicon Labs Multiprotocol Add-on would stop working from time to time, so I flashed the Zigbee software - first option:
Did you need to use /config/custom_zha_quirks to work with those cheap Tuya in Wall Switches?
I have a lot of them showing power monitoring incorrectly when discovering from ZHA:
For example:
TS0002 - _TZ3000_zmy4lslw - 2 gang
is discovered as ts000x.Switch_2G_Metering, with sensors that do not exist when connected in Smart Tuya App ! (such as Active Power, RMS voltage, current)
TS0003 - por _TZ3000_pfc7i3kt (3 gang Moes device)
is discovered as ts000x.Switch_3G_GPP, with a backlight mode that does not exist in Smart Life App
Do your devices also show these non-existent features?
I am using ts000x.py to make them work!
And the last question for now!!!
Is it worth changing from ZHA to Zigbee2MQTT?
I’m using Zigbee2MQTT, actually my HA server is in the attic, and my Zigbee devices are on the ground floor of a two story building, so I had to connect my Zigbee dongle to a raspberry pi 4 running only Zigbee2MQTT which I put on the ground floor.
After changing the antenna everything works great, no droped devices, but I do not have any Aqara devices.
Anyone ever find a solution for this? I am fairly certain that this is related to the Dongle Plus E as I had the Dongle Plus P for over a year without any drops (using ZHA for a time and Zigbee2MQTT later) as well as a Conbee II with Deconz for a couple of years before that.
But the Dongle Plus E does exactly what is mentioned in this thread even though nothing has changed (locations, routers, etc) from the Dongle Plus P or the Conbee II setup.