-
Notifications
You must be signed in to change notification settings - Fork 43
Description
I'm getting the below error when I push any button on a C-ZB-SR5BR.
Here's the error log:
2025-10-08 17:21:47.380 ERROR (MainThread) [zigpy_znp.uart] Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0x83, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x8D\x3D\x6A\x01\x01\x00\x10\x01'))
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/zigpy_znp/uart.py", line 56, in data_received
self._api.frame_received(frame.payload)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zigpy_znp/api.py", line 860, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
File "/usr/local/lib/python3.13/site-packages/zigpy_znp/types/commands.py", line 433, in from_frame
raise ValueError(
f"Frame {frame} contains trailing data after parsing: {data}"
)
ValueError: Frame GeneralFrame(header=CommandHeader(id=0x83, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x8D\x3D\x6A\x01\x01\x00\x10\x01') contains trailing data after parsing: b'\x01'
2025-10-08 17:21:47.383 WARNING (MainThread) [zigpy_znp.zigbee.application] Failed to deserialize ZDO packet
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/zigpy_znp/zigbee/application.py", line 443, in on_zdo_message
zdo_hdr, zdo_args = self._device.zdo.deserialize(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cluster_id=packet.cluster_id, data=packet.data.serialize()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/zigpy/zdo/__init__.py", line 42, in deserialize
raise ValueError(f"Invalid ZDO cluster ID: 0x{cluster_id:04X}")
ValueError: Invalid ZDO cluster ID: 0xFF03
And here's what Candeo had to say when I was investigating this with them:
“Failed to deserialize ZDO packet / trailing data after parsing” - This message isn’t caused by your Candeo C-ZB-SR5BR or its ZHA quirk: it comes from the Zigbee adapter firmware layer, not the device itself.
What’s happening: Your coordinator (SLZB-06) sent a ZDO message that didn’t match what the Home Assistant ZHA driver expected. The zigpy_znp library tried to decode it and found one extra byte (“trailing data”), so the message appeared corrupted and produced the “Invalid ZDO cluster ID” warning.
I'm trying to track down the root cause of the issue. Is it this library failing to parse something that should be parseable? Or does the rabbit hole continue down to the hardware Zigbee adapter I'm using as my coordinator?
Thank you so much for your work on this library - if the issue does not lie here please feel free to simply comment and close and I'll move onto the adapter manufacturer :-) ❤️