Zigbee2mqtt devices randomly stop working

Hello everyone,

I have recently setup a Zigbee network using a Pi4 with HASS OS, a Conbee 2 stick, Zigbee2mqtt and Mosquitto as MQTT broker.

I am controlling the Zigbee devices (motion detectors, bulbs and switches) with Nodered.

The devices work 95% of the time as expected, but at seemingly random times all Zigbee devices stop working.

Triggering them manually doesn’t do anything, and the zigbee2mqtt logs stay blank as if the device hasn’t been triggered. When this happens, all Zigbee devices stop working for about 20-30 mins and then everything goes back to normal.
If I manually reboot the Zigbee2mqtt addon, all devices resume working normally.

I have looked at Zigbee2mqtt, Mosquitto and supervisor logs and I find no errors. It just looks as if my devices stop emitting messages.

This is kind of driving me crazy especially since MQTT devices trigger important stuff like toilet lights… But I am unable to find the cause of this issue. I live in a small 60m2 house so I don’t think distance is an issue.

May that be caused by the Conbee 2 stick that is not really made to work with Zigbee2mqtt? I have ordered a Sonoff 3.0 dongle and I am thinking about redoing all my installation but at this point I’m not confident it will fix anything.

I am new to HASS OS so maybe I’m not looking for the logs at the right place but I’m sure willing to post anything that would help me solve this issue.

Any help would be much appreciated!

If Conbee II is directly connected to the RPi, use an extension cord. Also, check interference of the chosen Zigbee channel with your local WiFi.

Thanks for your answer. The Conbee II is connected with an extension cord, although it is near my router. I changed the Zigbee channel from 11 to 25 and forced my router on Wifi channel 1, I hope this will solve the issue.

This did not solve the issue. Managed to catch some error messages during the outage, it seems like herdsman:deconz times out :

2022-02-04T20:27:35.693Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 184
2022-02-04T20:27:35.693Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:35.697Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 187 request id: 215
2022-02-04T20:27:40.427Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 186
2022-02-04T20:27:40.428Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:40.432Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 188 request id: 216
2022-02-04T20:27:40.702Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 187
2022-02-04T20:27:40.702Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:40.707Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 189 request id: 217
2022-02-04T20:27:44.115Z zigbee-herdsman:deconz:driver Timeout for request - CMD: 0x7 seqNr: 185
2022-02-04T20:27:44.118Z zigbee-herdsman:deconz:driver send read device state from queue. seqNr: 190
2022-02-04T20:27:45.437Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 188
2022-02-04T20:27:45.437Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:45.443Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 191 request id: 218
2022-02-04T20:27:45.709Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 189
2022-02-04T20:27:45.709Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:45.714Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 192 request id: 219
2022-02-04T20:27:50.448Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 191
2022-02-04T20:27:50.450Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:50.453Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 193 request id: 220
2022-02-04T20:27:50.719Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 192
2022-02-04T20:27:50.720Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:50.721Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 194 request id: 221
2022-02-04T20:27:54.120Z zigbee-herdsman:deconz:driver Timeout for request - CMD: 0x7 seqNr: 190
2022-02-04T20:27:54.121Z zigbee-herdsman:deconz:driver too many timeouts - restart serial connecion
2022-02-04T20:27:54.121Z zigbee-herdsman:deconz:driver Opening with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2467521-if00
2022-02-04T20:27:54.125Z zigbee-herdsman:deconz:driver Serialport opened
2022-02-04T20:27:54.126Z zigbee-herdsman:deconz:driver send read device state from queue. seqNr: 195
2022-02-04T20:27:55.458Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 193
2022-02-04T20:27:55.458Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:55.463Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 196 request id: 222
2022-02-04T20:27:55.723Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 194
2022-02-04T20:27:55.724Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:27:55.728Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 197 request id: 223
2022-02-04T20:28:00.468Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 196
2022-02-04T20:28:00.468Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:00.473Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 198 request id: 224
2022-02-04T20:28:00.732Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 197
2022-02-04T20:28:00.733Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:00.737Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 199 request id: 225
2022-02-04T20:28:04.130Z zigbee-herdsman:deconz:driver Timeout for request - CMD: 0x7 seqNr: 195
2022-02-04T20:28:04.135Z zigbee-herdsman:deconz:driver send write parameter request from queue. seqNr: 200 paramId: 38 param: 600
2022-02-04T20:28:05.151Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 202 request id: 226
2022-02-04T20:28:05.479Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 198
2022-02-04T20:28:05.479Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:05.480Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 203 request id: 227
2022-02-04T20:28:05.738Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 199
2022-02-04T20:28:05.739Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:05.741Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 204 request id: 228
2022-02-04T20:28:10.154Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 202
2022-02-04T20:28:10.155Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:10.156Z zigbee-herdsman:deconz:adapter zclFrame to all - zclFrame.payload:
2022-02-04T20:28:10.157Z zigbee-herdsman:deconz:adapter { options: 11, commisioningWindow: 254 }
2022-02-04T20:28:10.157Z zigbee-herdsman:deconz:adapter sendZclFrameToAll - message send
2022-02-04T20:28:10.160Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 205 request id: 229
2022-02-04T20:28:10.164Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffd EP:242 SeqNr. 206 request id: 230
2022-02-04T20:28:10.481Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 203
2022-02-04T20:28:10.482Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:10.486Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 207 request id: 231
2022-02-04T20:28:10.742Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 204
2022-02-04T20:28:10.742Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:10.747Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 208 request id: 232
2022-02-04T20:28:14.136Z zigbee-herdsman:deconz:driver Timeout for request - CMD: 0xb seqNr: 200
2022-02-04T20:28:14.137Z zigbee-herdsman:deconz:driver too many timeouts - restart serial connecion
2022-02-04T20:28:14.137Z zigbee-herdsman:deconz:driver Opening with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2467521-if00
2022-02-04T20:28:14.140Z zigbee-herdsman:deconz:driver try again to reset watchdog
2022-02-04T20:28:14.140Z zigbee-herdsman:deconz:driver send read device state from queue. seqNr: 201
2022-02-04T20:28:14.143Z zigbee-herdsman:deconz:driver Serialport opened
2022-02-04T20:28:15.163Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 205
2022-02-04T20:28:15.163Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:15.169Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 211 request id: 233
2022-02-04T20:28:15.491Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 207
2022-02-04T20:28:15.491Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:15.496Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 212 request id: 234
2022-02-04T20:28:15.752Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 208
2022-02-04T20:28:15.753Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:15.757Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 213 request id: 235
2022-02-04T20:28:20.170Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 211
2022-02-04T20:28:20.170Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:20.176Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 214 request id: 236
2022-02-04T20:28:20.499Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 212
2022-02-04T20:28:20.499Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:20.505Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 215 request id: 237
2022-02-04T20:28:20.758Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 213
2022-02-04T20:28:20.759Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:20.760Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 216 request id: 238
2022-02-04T20:28:24.144Z zigbee-herdsman:deconz:driver Timeout for request - CMD: 0x7 seqNr: 201
2022-02-04T20:28:24.145Z zigbee-herdsman:deconz:driver send read device state from queue. seqNr: 209
2022-02-04T20:28:25.176Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 214
2022-02-04T20:28:25.176Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:25.181Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 218 request id: 239
2022-02-04T20:28:25.505Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 215
2022-02-04T20:28:25.506Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:25.511Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 219 request id: 240
2022-02-04T20:28:25.761Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 216
2022-02-04T20:28:25.761Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:25.766Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 220 request id: 241
2022-02-04T20:28:30.185Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 218
2022-02-04T20:28:30.186Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:28:30.191Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 221 request id: 242

Anyone has any idea what might cause that?

And then it resumes working normally…

2022-02-04T20:30:14.249Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:14.251Z zigbee-herdsman:deconz:driver send read device state from queue. seqNr: 40
2022-02-04T20:30:14.254Z zigbee-herdsman:deconz:frameParser device state: 10100010
2022-02-04T20:30:14.254Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:15.357Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 37
2022-02-04T20:30:15.358Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:30:15.362Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 41 request id: 50
2022-02-04T20:30:15.365Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 50 status: 0
2022-02-04T20:30:15.365Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:15.666Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 38
2022-02-04T20:30:15.666Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:30:15.671Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 42 request id: 51
2022-02-04T20:30:15.674Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 51 status: 0
2022-02-04T20:30:15.674Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:15.893Z zigbee-herdsman:deconz:driver Timeout for aps request CMD: 0x12 seq: 39
2022-02-04T20:30:15.894Z zigbee-herdsman:deconz:adapter PERMIT_JOIN FAILED - APS TIMEOUT
2022-02-04T20:30:15.897Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 43 request id: 52
2022-02-04T20:30:15.900Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 52 status: 0
2022-02-04T20:30:15.900Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:16.017Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2022-02-04T20:30:16.017Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:16.023Z zigbee-herdsman:deconz:driver query aps data confirm
2022-02-04T20:30:16.027Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 44
2022-02-04T20:30:16.030Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xfffc request id: 50 confirm status: 0
2022-02-04T20:30:16.030Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:16.031Z zigbee-herdsman:deconz:adapter PERMIT_JOIN - 254 seconds
2022-02-04T20:30:16.035Z zigbee-herdsman:deconz:driver send write parameter request from queue. seqNr: 45 paramId: 33 param: 254
2022-02-04T20:30:16.037Z zigbee-herdsman:deconz:frameParser write parameter response - parameter id: 33 - status: 0
2022-02-04T20:30:16.295Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2022-02-04T20:30:16.296Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:16.299Z zigbee-herdsman:deconz:driver query aps data confirm
2022-02-04T20:30:16.304Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 46
2022-02-04T20:30:16.307Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xfffc request id: 51 confirm status: 0
2022-02-04T20:30:16.307Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:16.307Z zigbee-herdsman:deconz:adapter PERMIT_JOIN - 254 seconds
2022-02-04T20:30:16.309Z zigbee-herdsman:deconz:driver send write parameter request from queue. seqNr: 47 paramId: 33 param: 254
2022-02-04T20:30:16.312Z zigbee-herdsman:deconz:frameParser write parameter response - parameter id: 33 - status: 0
2022-02-04T20:30:16.536Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2022-02-04T20:30:16.537Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2022-02-04T20:30:16.540Z zigbee-herdsman:deconz:driver query aps data confirm
2022-02-04T20:30:16.546Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 48
2022-02-04T20:30:16.548Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xfffc request id: 52 confirm status: 0

Hi, did you ever find a solution for this problem? I have almost the same setup as you (Conbee II and zigbee2mqtt) and similar logs but I’m running the software on Ubuntu Server on a desktop PC. Any additional info or findings would be much appreciated because I also investigated things like the wifi channels and didn’t see better results.