olloe
October 27, 2021, 6:30am
1
I’m suddenly having problems with delays on at least some of my zigbee2mqtt devices. It started a few weeks ago, probably when I installed 2021.10.
The ones I can test the delays are:
Xiaomi RTCGQ01LM MiJia human body movement sensor
Xiaomi WXKG01LM MiJia wireless switch
The switch now had a 1 minute 53 second delay. That causes issues and frustration…
I use a SMARTLIGHT CC2652P Zigbee USB dongle.
I have no errors in the zigbee2mqtt logs, but my mqtt logs show this on every connection:
Socket error on client <unknown>, disconnecting.
Everything works tho, it just has delays. How do I start debugging? Restarts don’t help. Reconnecting dongle doesn’t help.
francisp
(Francis)
October 27, 2021, 8:15am
2
Are you sure it is not because of #8663 ?
opened 10:32AM - 06 Sep 21 UTC
problem
Recent Linux kernel versions contain a bug in the [CH341 driver](https://bugzill… a.kernel.org/show_bug.cgi?id=214131). The CH341 controller is used on various coordinators, e.g. the zzh. This causes strange behavior, e.g. delay when receiving messages from devices.
## How do I know I'm affected?
Your coordinator uses a CH340/CH341 controller (e.g. zzh) AND you are running one of the kernel following kernel version (run `uname -r` to check which):
- 5.13.*: 5.13.10 till 5.13.13 are affected, fixed in 5.13.14
- 5.10.*: 5.10.58 till 5.10.61 are affected, fixed in 5.10.62
- 5.4.*: 5.4.140 till 5.4.143 are affected, fixed in 5.4.144
- Ubuntu Focal: 5.4.0-85 till 5.4.0-89 are affected (fixed in 5.4.0-90)
- I did not check other kernel versions
## Workaround
- Downgrade your kernel version
- For hassos users, this will be fixed in [6.4](https://github.com/home-assistant/operating-system/issues/1532#issuecomment-913440970), for now dowgrande to 6.2 using: `ha os update --version 6.2`
## Related issues:
- https://github.com/home-assistant/operating-system/issues/1532
- https://github.com/Koenkk/zigbee2mqtt/issues/8623
- https://github.com/home-assistant/operating-system/issues/1537
- https://github.com/Koenkk/zigbee2mqtt/issues/8552
olloe
October 27, 2021, 11:02pm
3
Thanks, problem solved! I did not know about this.
Same here since this morning. 100% solid for three years prior. Z2M 1.24.0-1, HA 2022.3.1, Slaesh CC2652RB stick. Missed clicks on all my Aqara buttons, huge delays. I´m not aware of any updates in the last few days, Z2M had one 5 days ago but that´s been updated and rebooted on day one.
Henke22
(Henke19822)
April 5, 2023, 2:51pm
5
I am experiencing the same, delay about 15-20 seconds. But not consistent, it is back and forth. But never as snappy as a couple of weeks ago.