Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.24k stars 1.69k forks source link

unstable work and delay from devices #12352

Closed KaportsevIA closed 2 years ago

KaportsevIA commented 2 years ago

What happened?

After the latest update 1.25.1.1, there were delays when sending commands and statuses from devices via ZigBee. Delays can be up to 5-6 seconds, or the device will simply not respond.

Error 2022-05-02 17:39:56Publish 'set' 'state' to '0x04cf8cdf3c8e0d39' failed: 'Error: Command 0x04cf8cdf3c8e0d39/1 genOnOff.off({}, {"sendWhen":"immediate","timeout": 10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null, "writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225))' Error 2022-05-02 17:40:03Publish 'set' 'state' to '0x54ef4410001c649b' failed: 'Error: Command 0x54ef4410001c649b/2 genOnOff.off({}, {"sendWhen":"immediate","timeout": 10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null, "writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225))'

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.25.1.1

Adapter firmware version

20220219

Adapter

Sonoff ZStack CC2652P

Debug log

No response

KaportsevIA commented 2 years ago

Things got even worse. A lot of errors, and the well-known Aqara Wall Switch devices (H1 EU, QBKG04LM, SP-EUC01) began to fall off the network.

Error 2022-05-02 19:05:42Failed to read state of '0x00158d00045f20ab' after reconnect (Read 0x00158d00045f20ab/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:05:45Failed to interview '0x54ef4410001c649b', device has not successfully been paired Error 2022-05-02 19:05:51Failed to read state of '0x00158d00053eef8f' after reconnect (Read 0x00158d00053eef8f/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:06:34Failed to read state of '0x00158d00053f2af0' after reconnect (Read 0x00158d00053f2af0/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:07:24Failed to read state of '0x00158d00045e30ff' after reconnect (Read 0x00158d00045e30ff/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:07:29Failed to read state of '0x00158d00053f2a59' after reconnect (Read 0x00158d00053f2a59/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:08:11Failed to read state of '0x00158d00053eee28' after reconnect (Read 0x00158d00053eee28/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:11:00Failed to read state of '0x00158d00053eef8f' after reconnect (Read 0x00158d00053eef8f/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:11:15Failed to read state of '0x00158d00045f20ab' after reconnect (Read 0x00158d00045f20ab/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:11:43Failed to read state of '0x00158d00053f2af0' after reconnect (Read 0x00158d00053f2af0/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))) Error 2022-05-02 19:12:10Failed to read state of '0x54ef4410001972d9' after reconnect (Read 0x54ef4410001972d9/1 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225))) Error 2022-05-02 19:12:33Failed to read state of '0x54ef4410001d0b06' after reconnect (Read 0x54ef4410001d0b06/1 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225))) Error 2022-05-02 19:12:38Failed to read state of '0x00158d00053f2a59' after reconnect (Read 0x00158d00053f2a59/2 genOnOff(["onOff"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultRe

KaportsevIA commented 2 years ago

See in pics Снимок экрана 2022-05-02 192456

swests commented 2 years ago

Seeing the same here. Since the upgrade devices simply timeout

image

swests commented 2 years ago

Is there a process to roll back to a previous version?

Also trying to map the network fails...

image

Tediore commented 2 years ago

I had a similar issue randomly pop up after a week or so of being on 1.25. No network route sometimes, but most frequently SRSP - AF - DataRequest after 6000ms error. It happened with both my ZZH and Sonoff Zigbee 3.0 stick (the new one with the black case) on various firmware versions, including the February 2022 revision.

From what I've read, that DataRequest error typically means the adapter is locked up. Restarting z2m and/or unplugging the adapter and plugging it back in would fix the issue temporarily, but usually within an hour it would happen again. Rolled back to 1.24 and no longer had any issues.

I commissioned a test zigbee network on a separate zigbee2mqtt 1.25 instance and connected some devices to it. Just waiting to see if the same thing happens. If it does I'll provide some logs.

Forgot to mention the host OS is Debian 11.

avdgaag1984 commented 2 years ago

I have also issues after the update 1.25.1 Have already had 2 evenings in a row that suddenly my lamps no longer turn on, motion detectors no longer work and door sensors that no longer work. I then have to turn off my virtual machine running on my synology and turn it on again. Then everything works again.

I have a zigbee stick: cc2652rb with last coordinator firmware. And i don't use a extension cable. It is directly connected to my synology nas

This says the log: error 2022-05-06 21:39:16: Publish 'set' 'state' to 'Kantoor' failed: 'Error: Command 3 genOnOff.on({}) failed (SRSP - AF - dataRequestExt after 6000ms)' info 2022-05-06 21:39:16: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to 'Kantoor' failed: 'Error: Command 3 genOnOff.on({}) failed (SRSP - AF - dataRequestExt after 6000ms)'","meta":{"friendly_name":"Kantoor"},"type":"zigbee_publish_error"}' info 2022-05-06 21:39:20: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline'

Maybe i am going put a backup from last weekend, than i have version 1.25.0

netweaver1970 commented 2 years ago

Same issue here, happened last night. It was when a bunch of zigbee commands was send. Whole network dead with same error. Restart of the add-on fixed it. My sonoff zigbee plus usb adapter is connected with extention lead

3skelion commented 2 years ago

The same problem, Zigbee devices work with a large

github-actions[bot] commented 2 years ago

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

Armageddit commented 2 years ago

same problem

Zigbee2MQTT Version 1.26.0 commit: [unknown] Coordinator Typ zStack3x0 Coordinator Version 20220219

Sonoff Zigbee3.0 stick (Black Alu case)

32 divices of 56 have the problem! the other (endpoints) works normal

LOG:

Warning 2022-07-12 23:32:14Failed to ping 'Licht Bad' (attempt 1/1, Read 0x842e14fffe13cd6d/1 genBasic(["zclVersion"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225)))
Warning 2022-07-12 23:32:19Failed to ping 'Power Strip' (attempt 1/1, Read 0x60a423fffe802c3f/1 genBasic(["zclVersion"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225)))
Warning 2022-07-12 23:32:24Failed to ping 'Blitzwolf Steckdose Spülmaschine' (attempt 1/1, Read 0xa4c1384447f9d808/1 genBasic(["zclVersion"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225)))
Warning 2022-07-12 23:32:34Failed to ping 'Steckdose außen ' (attempt 1/1, Read 0xa4c13850ac591485/1 genBasic(["zclVersion"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC channel access failure' (225)))
mkin1337 commented 2 years ago

This is very frustrating as the whole Zigbee network becomes unreliable. Any updates on this issue? Running the latest version as docker on my Unraid server with a Conbee II stick (latest firmware). :/

Error 2022-07-25 15:31:03Failed to execute LQI for 'Ellie Deckenlicht' Error 2022-07-25 15:31:32Publish 'set' 'state' to 'Ellie Deckenlicht' failed: 'Error: Command 0xb4e3f9fffe216234/1 genOnOff.on({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)' Error 2022-07-25 15:31:42Publish 'set' 'state' to 'Ellie Deckenlicht' failed: 'Error: Command 0xb4e3f9fffe216234/1 genOnOff.off({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)'

sk8er000 commented 2 years ago

I'm having the same random problem from Moes MS-104BZ and Lonsonho QS-Zigbee-S05-LN. What I noticed is that when this error occurs the device is not directly connected with the coordinator (they don't have any end device connected since they are connected with IKEA and Aqara routers). If I repair the module again it start working again for a random amount of time, it can be hours or days. Unfortunately it's not easy to find any other 2 gang switch with the same dimesions (or smaller) that are know to always work

Actually I'm using the SONOFF USB 3.0 plus with the lastes zstack firmware and Z2M is the 1.27.2-1

aharoncg commented 1 year ago

Hi there,

I have the same problem since I moved from deconz/phoscon to z2m.

Devices are loosing connection randomly, house residents are losing patience... devices are dropping fro the network randomly, and once a device is suddenly popping up its state changes. It causes the light to suddenly turn on or off randomly and without sender any command. The whole network/technology is unstable and unreliable.

It happened with both conbee2 and sonoff 3 (cc2652p). I tried with different types of extension cables, of different ports (usb2/usb2)

My setup is bare metal installation on a standard x86 mini pc. It is a fresh setup after it happens with both docker on ubuntu ans bare metal on rpi4.

Zigbee is using channel 11, wifi also 11 - very far from eachother.

I really dont want to go back and drop z2m, but if it can't be fixed soon I will have to.

I am lost. Please help.

Technical details

Total 76 devices ate connected (I have 112 but removed some to try reducing the load - it didn't help)

Two dedicated ikea router, rest are sensors and lights from sonoff, aqara, tuya, lidl, ledvance, osram, awox, eglo, and more.

Stats