I have a Elelabs ZigBee RPi Shield. I use Hassbian (v0.71.0) and setup successful, Zha component is loaded, zha.permit is started, device joined the network but i have some errors. My device is Xiaomi Mijia door & window contact sensor (MCCGQ01LM)
2018-06-18 23:35:43 INFO (MainThread) [homeassistant.components.zha] Permitting joins for 60s
2018-06-18 23:35:43 DEBUG (MainThread) [bellows.ezsp] Send command permitJoining
2018-06-18 23:35:43 DEBUG (MainThread) [bellows.uart] Sending: b’35692157540829fe017e’
2018-06-18 23:35:43 DEBUG (MainThread) [bellows.uart] Data frame: b’5469a15754081520757e’
2018-06-18 23:35:43 DEBUG (MainThread) [bellows.uart] Sending: b’8610be7e’
2018-06-18 23:35:43 DEBUG (MainThread) [bellows.ezsp] Application frame 34 (permitJoining) received
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’6469b557540915b3736c800cae5792c4894e23d6fe7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’87009f7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 35 (childJoinHandler) received
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’7469b15754ee3f4a59944b5e197e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’8070787e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 196 (changeSourceRouteHandler) received
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’0469b157540e3f4a93bd4e27aad887499d4e27ab94257e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’8160597e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2018-06-18 23:36:02 INFO (MainThread) [zigpy.application] Device 0xf82a (00:15:8d:00:02:04:29:ca) joined the network
2018-06-18 23:36:02 DEBUG (MainThread) [zigpy.application] Device 00:15:8d:00:02:04:29:ca changed id (0x09ac => 0xf82a)
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’416e2157541e1598a1944a20aa5592099d4e27a1e7cd6da105f6a77e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’156ea157541e1569f5697e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’82503a7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’256eb157546f11b259874a25aa5593499c70d87fc7369874f16d497136573ba5eb40cb6f0ffdcebe7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’83401b7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2018-06-18 23:36:02 DEBUG (MainThread) [zigpy.zdo] [0xf82a:zdo] ZDO request 0x0013: [63530, 00:15:8d:00:02:04:29:ca, 128]
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’356eb157546f15b658944a24ab5593499c71d87fc7369874e4de6383f97e7db587b8b306a18ca2b5a6bd1bd32b42ce82134fa7413e7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’8430fc7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2018-06-18 23:36:02 ERROR (MainThread) [bellows.ezsp] Exception running handler
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/ezsp.py”, line 194, in handle_callback
handler(*args)
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 139, in ezsp_callback_handler
self._handle_frame(*args)
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 160, in _handle_frame
tsn, command_id, is_reply, args = self.deserialize(device, aps_frame.sourceEndpoint, aps_frame.clusterId, message)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/application.py”, line 73, in deserialize
return sender.deserialize(endpoint_id, cluster_id, data)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/device.py”, line 97, in deserialize
return self.endpoints[endpoint_id].deserialize(cluster_id, data)
KeyError: 1
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’456eb157546f15b658944a24ab5593499c0ed87fc7369874fade6283fd7e1fade9ed0d7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’8520dd7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2018-06-18 23:36:02 ERROR (MainThread) [bellows.ezsp] Exception running handler
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/ezsp.py”, line 194, in handle_callback
handler(*args)
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 139, in ezsp_callback_handler
self._handle_frame(*args)
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 160, in _handle_frame
tsn, command_id, is_reply, args = self.deserialize(device, aps_frame.sourceEndpoint, aps_frame.clusterId, message)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/application.py”, line 73, in deserialize
return sender.deserialize(endpoint_id, cluster_id, data)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/device.py”, line 97, in deserialize
return self.endpoints[endpoint_id].deserialize(cluster_id, data)
KeyError: 1
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Data frame: b’556eb157546f15b658944a24ab5593499c0fd87fc7369874e0da579bfe743d58a7cbde7f8ede28d0f47a68a84623a9ec761a7aeb55c943b8e07e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.uart] Sending: b’8610be7e’
2018-06-18 23:36:02 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2018-06-18 23:36:02 ERROR (MainThread) [bellows.ezsp] Exception running handler
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/ezsp.py”, line 194, in handle_callback
handler(*args)
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 139, in ezsp_callback_handler
self._handle_frame(*args)
File “/srv/homeassistant/lib/python3.5/site-packages/bellows/zigbee/application.py”, line 160, in _handle_frame
tsn, command_id, is_reply, args = self.deserialize(device, aps_frame.sourceEndpoint, aps_frame.clusterId, message)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/application.py”, line 73, in deserialize
return sender.deserialize(endpoint_id, cluster_id, data)
File “/srv/homeassistant/lib/python3.5/site-packages/zigpy/device.py”, line 97, in deserialize
return self.endpoints[endpoint_id].deserialize(cluster_id, data)
KeyError: 1
2018-06-18 23:36:05 DEBUG (MainThread) [bellows.uart] Data frame: b’656eb15754aa5798a187cc7e’
2018-06-18 23:36:05 DEBUG (MainThread) [bellows.uart] Sending: b’87009f7e’
2018-06-18 23:36:05 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:09 DEBUG (MainThread) [bellows.uart] Data frame: b’756eb15754aa5798a1d4327e’
2018-06-18 23:36:09 DEBUG (MainThread) [bellows.uart] Sending: b’8070787e’
2018-06-18 23:36:09 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:14 DEBUG (MainThread) [bellows.uart] Data frame: b’056eb15754aa5798a17fe97e’
2018-06-18 23:36:14 DEBUG (MainThread) [bellows.uart] Sending: b’8160597e’
2018-06-18 23:36:14 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:16 DEBUG (MainThread) [bellows.uart] Data frame: b’156eb15754151598a1944a20aa5592099d4e2770e7a8675c127e’
2018-06-18 23:36:16 DEBUG (MainThread) [bellows.uart] Sending: b’82503a7e’
2018-06-18 23:36:16 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2018-06-18 23:36:18 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2018-06-18 23:36:18 DEBUG (MainThread) [bellows.uart] Sending: b’526f2157541e1598a1944a20aa5592099d4e27a0e6cd6ca105cc7d5d7e’
2018-06-18 23:36:18 DEBUG (MainThread) [bellows.uart] Data frame: b’266fa157541e156eb3467e’
2018-06-18 23:36:18 DEBUG (MainThread) [bellows.uart] Sending: b’83401b7e’
2018-06-18 23:36:18 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2018-06-18 23:36:20 DEBUG (MainThread) [bellows.uart] Data frame: b’366fb15754aa5798a1e17c7e’
2018-06-18 23:36:20 DEBUG (MainThread) [bellows.uart] Sending: b’8430fc7e’
2018-06-18 23:36:20 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:25 DEBUG (MainThread) [bellows.uart] Data frame: b’466fb15754aa5798a14aa77e’
2018-06-18 23:36:25 DEBUG (MainThread) [bellows.uart] Sending: b’8520dd7e’
2018-06-18 23:36:25 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:29 DEBUG (MainThread) [bellows.uart] Data frame: b’566fb15754aa5798a119597e’
2018-06-18 23:36:29 DEBUG (MainThread) [bellows.uart] Sending: b’8610be7e’
2018-06-18 23:36:29 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:31 DEBUG (MainThread) [bellows.uart] Data frame: b’666fb15754151598a1944a20aa5592099d4e2777e6a86769887e’
2018-06-18 23:36:31 DEBUG (MainThread) [bellows.uart] Sending: b’87009f7e’
2018-06-18 23:36:31 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2018-06-18 23:36:33 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2018-06-18 23:36:33 DEBUG (MainThread) [bellows.uart] Sending: b’676c2157541e1598a1944a20aa5592099d4e27a7e1cd6ba105d0747e’
2018-06-18 23:36:33 DEBUG (MainThread) [bellows.uart] Data frame: b’776ca157541e156ff7527e’
2018-06-18 23:36:33 DEBUG (MainThread) [bellows.uart] Sending: b’8070787e’
2018-06-18 23:36:33 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2018-06-18 23:36:36 DEBUG (MainThread) [bellows.uart] Data frame: b’076cb15754aa5798a136287e’
2018-06-18 23:36:36 DEBUG (MainThread) [bellows.uart] Sending: b’8160597e’
2018-06-18 23:36:36 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:41 DEBUG (MainThread) [bellows.uart] Data frame: b’176cb15754aa5798a165d67e’
2018-06-18 23:36:41 DEBUG (MainThread) [bellows.uart] Sending: b’82503a7e’
2018-06-18 23:36:41 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:45 DEBUG (MainThread) [bellows.uart] Data frame: b’276cb15754aa5798a191d47e’
2018-06-18 23:36:45 DEBUG (MainThread) [bellows.uart] Sending: b’83401b7e’
2018-06-18 23:36:45 DEBUG (MainThread) [bellows.ezsp] Application frame 128 (incomingRouteErrorHandler) received
2018-06-18 23:36:47 DEBUG (MainThread) [bellows.uart] Data frame: b’376cb15754151598a1944a20aa5592099d4e2776e1a867b8617e’
2018-06-18 23:36:47 DEBUG (MainThread) [bellows.uart] Sending: b’8430fc7e’
2018-06-18 23:36:47 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2018-06-18 23:36:47 ERROR (MainThread) [zigpy.device] Failed ZDO request during device initialization: Message send failure: EmberStatus.DELIVERY_FAILED