zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Lots of timeouts recently

Open arturdobo opened this issue 5 years ago • 13 comments

What happened

I've started experiencing a lot of timeouts in my network recently. Typically the only thing I need to do is send a couple of actions sequentially to achieve significant lag like turning a light on after a couple of seconds or timeouts.

I thought maybe there is some performance issue because of lunching zigbee2mqtt + mosquito on raspberry pi zero. After migration to raspberry pi 3b + the issue still exists.

What did you expect to happen

Not so many timeouts. It worked previously almost flawlessly.

How to reproduce it (minimal and precise)

See attached logs here. I set ON on livingroom_moss_and_plants_light_switch and next it failed on setting OFF after couple of seconds

Zigbee2MQTT version: 1.20.0 commit: 41b67fdd Adapter hardware: CC2652R (zzh) Adapter firmware version: 20210120

arturdobo avatar Jul 13 '21 18:07 arturdobo

Are you using an SSD or other usb drive with your Pi? I had an issue when noise from USB drive would mess with my zigbee dongle when I moved it away by using an extension cable all went away.

bartekluk avatar Jul 14 '21 09:07 bartekluk

Yes, an SSD drive is connected to rpi next to Zigbee dongle. Let me test your suggestion @bartekluk

arturdobo avatar Jul 14 '21 16:07 arturdobo

Unfortunately, it didn't help

arturdobo avatar Jul 15 '21 17:07 arturdobo

I flashed CC2531 to compare and check whether the adapter is not an issue. In the beginning, it worked quite nicely, but after a couple of hours (I didn't measure it precisely), it stops work almost completely, and replugging was needed. For sure I didn't expect too much from this device. @Koenkk do you think this issue can be firmware-related?

arturdobo avatar Jul 16 '21 18:07 arturdobo

Timeouts are caused by interference (e.g. from SSD close to the adapter antenna)

  • Make sure to connect your adapter through a USB extension cable and position it +30 cm from your computer
  • Check wifi: https://www.zigbee2mqtt.io/how_tos/how_to_improve_network_range_and_stability.html

Koenkk avatar Jul 16 '21 18:07 Koenkk

The adapter is now connected using an extension cable 1.5 m long and I tested a lot of positions. Behaviour is more or less the same. When it comes to wifi interference my network at home works on channel 1 while the Zigbee adapter is set to work on channel 25. They shouldn't interfere each other

arturdobo avatar Jul 17 '21 12:07 arturdobo

I'm having the same problem with a zzh, and it is definitely not related to interference. I am not running a Pi, but an ubuntu server running docker with a 1.5 meter cable to separate the zzh adapter from the server. Adapter has been in place since January, with no moves or firmware changes. No new devices added in several months. Something seems to have happened with a recent update.

I am seeing less lag when issuing commands from home assistant, but when I attempt to use to use my Tuya TS0044 switches I generally have to "wake them up" by pressing the button and then pressing it again to get the desired result. This specific issue has only been happening since the latest update. It's very reminiscent of when I had a CC2531 with 20+ devices on a single network.

davidnite avatar Jul 18 '21 00:07 davidnite

I ordered slaeh's CC2652RB adapter to compare whether it behaves similarly or not. Once it arrives I'll share with you my result

arturdobo avatar Jul 19 '21 20:07 arturdobo

I'm getting loads of timeouts. It's particularly bad when trying to pair new devices and send commands to existing devices at the same time. Will try downgrading to 1.19 from 1.2 0 to see if that helps. Hopefully no database migrations 1.19->1.20!

nashant avatar Jul 24 '21 10:07 nashant

I got the mentioned above adapter and I'm going to perform some tests during the weekend and compare it with zzh

arturdobo avatar Jul 24 '21 10:07 arturdobo

@Koenkk how to figure out the adapter with router firmware is connected to the network? I flashed both CC2531 and zzh using a router firmware, but I didn't find any info on how to check they're connected.

arturdobo avatar Jul 24 '21 20:07 arturdobo

@arturdobo you can check the networkmap (can be generated in the frontend), if it has outgoing lines (children) it's connected.

Koenkk avatar Jul 25 '21 16:07 Koenkk

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 25 '21 00:08 github-actions[bot]