-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zigbee2mqtt on home assistant fails to set state of switches frequently #26570
Comments
You are using the old |
Thanks @Koenkk . I tried the new ember driver but it fails to start:
If upgrading firmware on the Dongle-E is the only way to proceed, I can try that (never did that before, am nervous about it). BUT I reiterate that the system was stable until a few weeks ago with existing firmware & ezsp driver. Something in a recent software upgrade is causing the problem. I think CC1352P2_CC2652P_launchpad_coordinator_20240710 is the correct firmware now? edit: Just realising the ZBDongle-E stick I have is not a CC2652 chip, so I assume that's not the correct firmware and nor is this the correct method to flash. |
For your dongle-E, you may want to check this link for a suitable firmware https://github.com/darkxst/silabs-firmware-builder/releases This one to flash via a web browser https://darkxst.github.io/silabs-firmware-builder/ @Nerivec is also providing tools and firmware in a bit more experimental way as described here
|
Thanks @chris-1243 . I have flashed the 7.3.3 firmware successfully. All devices are still present (phew!) and working (double-phew!) and the Z2M 'About' page shows:
I stopped it and changed the add-on config to use the ember driver and this fails with the same problem as before full log attached:
The suggested link seems not relevant. |
This is expected. Your original firmware was quite old. You had to move to a v12 (7.3.3) version. The aim is to be able to create a
This time, you should be fine and completely up to date |
What happened?
Recenty, I since upgrading beyond 2.0.x, I find that the z2m add-on intermittently crashes in an unusual manner. HA continues to receive updates about the states of sensors (e.g. temperature, humidity etc) but can no longer set the state of switches (e.g. switch.turn_on service etc). This is happening now every few hours and is causing problems (specifically for climate control; automation can't switch devices on or off). Changing the state of a switch via the z2m device page also fails at this point.
The issue is temporarily fixed by restarting the z2m add-on from the HA add-ons page. Restarting z2m from its own web-page fails to successfully restart- HA does not reconnect to the devices. The watchdog is enabled but does not restart z2m.
I've tried multiple fixes - reboots, eliminating nice-but-not-necessary add-ons & integrations to reduce resource usage, placed the Zigbee dongle on a powered USB2 hub, throttled a particularly chatty zigbee device (Owon PC321), and so on. No success.
I recently upgraded to Z2M 2.1.3.
N.B. I tried the ember driver when I upgraded some months ago from ConbeeII to Dongle-E, but had problems and so remained with EZSP driver. I don't think this should be relevant as everything was working fine until I upgraded beyond z2m 2.0.x in early February. Trying ember driver now fails with:
One possible hint of the problem is the size of the "node index.js" process in the z2m container, occupying 10.4G of virtual memory! However swap usage remains at zero and the system can remain functional for several hours even with the 10.4G VSIZE before eventually crashing.
What did you expect to happen?
An automation to, eg, switch a radiator valve on or off would successfully switch the valve.
In the attached log I was luckily testing just at the right moment. You can see:
[2025-03-02 08:58:37] debug: z2m:mqtt: Received MQTT message on 'zigbee2mqtt/Breakfast Radiator Valves/set' with data 'ON'
This was successful. Moments later:
[2025-03-02 08:58:49] debug: z2m:mqtt: Received MQTT message on 'zigbee2mqtt/Playroom Radiator Valves/set' with data 'OFF'
was unsuccessful. All zigbee switches were now unresponsive and I restarted the z2m add-on.
How to reproduce it (minimal and precise)
Sorry, no idea. The problem is intermittent.
Zigbee2MQTT version
2.1.1-1
Adapter firmware version
6.10.3.0 build 297
Adapter
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240220203028-if00
Setup
RPi5 debian 12 with HA Supervised installation, Sonoff 3.0+ Dongle-E
Debug log
log.log
The text was updated successfully, but these errors were encountered: