-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Bug description
I have a zigbee device described as TS011F (manufacturer _TZ3000_ww6drja5). From time to time is causing a warning in HA logs:
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x42\xCA\x84'))
Steps to reproduce
Using a TS011F (manufacturer _TZ3000_ww6drja5) device (switch wallplug).
Expected behavior
No errors or warnings in HA logs.
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Diagnostics information
zha-01JA3C587FESACD24EWJEE741W-_TZ3000_ww6drja5 TS011F-861c358c31e9c0d9fe774fab068d0cc1.json
Device signature
Device signature
{
"node_descriptor": {
"logical_type": 1,
"complex_descriptor_available": 0,
"user_descriptor_available": 0,
"reserved": 0,
"aps_flags": 0,
"frequency_band": 8,
"mac_capability_flags": 142,
"manufacturer_code": 4107,
"maximum_buffer_size": 66,
"maximum_incoming_transfer_size": 66,
"server_mask": 11264,
"maximum_outgoing_transfer_size": 66,
"descriptor_capability_field": 0
},
"endpoints": {
"1": {
"profile_id": "0x0104",
"device_type": "0x0051",
"input_clusters": [
"0x0000",
"0x0003",
"0x0004",
"0x0005",
"0x0006",
"0x000a",
"0x0702",
"0x0b04",
"0x1000",
"0x1888",
"0xe000"
],
"output_clusters": [
"0x0019"
]
}
},
"manufacturer": "_TZ3000_ww6drja5",
"model": "TS011F",
"class": "zhaquirks.tuya.ts011f_plug.Plug_v3_NoGP"
}
Logs
Logs
Rejestrator: zigpy_znp.uart
Źródło: /usr/local/lib/python3.13/site-packages/zigpy_znp/uart.py:58
Pierwsze zdarzenie: 21:50:24 (2 wystąpienia)
Ostatnio zalogowany: 21:52:33
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x42\xCA\x84'))
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x7D\x40\x84'))
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/zigpy_znp/types/commands.py", line 417, in from_frame
params[param.name], data = param.type.deserialize(data)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/zigpy/types/struct.py", line 336, in deserialize
fields, data = cls._deserialize_internal(cls.fields, data)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zigpy/types/struct.py", line 322, in _deserialize_internal
value, data = field.type.deserialize(data)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/zigpy/types/basic.py", line 189, in deserialize
raise ValueError(f"Data is too short to contain {byte_size} bytes")
ValueError: Data is too short to contain 1 bytes
During handling of the above exception, another exception occurred:
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 424, in from_frame
raise ValueError(
...<2 lines>...
)
ValueError: Frame data is truncated (parsed {'Src': 0xCA42, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False)Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels