core
core copied to clipboard
zha issue: Received an exception while passing frame to API
The problem
hi facing zha error .would like to know how can i fix this issue Thank everyone for the help.
What version of Home Assistant Core has the issue?
2023.11.1
What was the last working version of Home Assistant Core?
2023.10.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA (Zigbee Home Automation)
Link to integration documentation on our website
No response
Diagnostics information
config_entry-zha-8bf85bdc87dcd5d71343710f6c249dee.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: zigpy_znp.uart
Source: /usr/local/lib/python3.11/site-packages/zigpy_znp/uart.py:74
First occurred: 3:00:09 AM (2 occurrences)
Last logged: 3:00:17 AM
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x8C\x86\x84'))
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\xA7\x75\x84'))
Traceback (most recent call last):
File "/usr/local/lib/python3.11/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.11/site-packages/zigpy/types/struct.py", line 302, in deserialize
value, data = field.type.deserialize(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy/types/basic.py", line 193, 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.11/site-packages/zigpy_znp/uart.py", line 72, in data_received
self._api.frame_received(frame.payload)
File "/usr/local/lib/python3.11/site-packages/zigpy_znp/api.py", line 830, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame
raise ValueError(
ValueError: Frame data is truncated (parsed {'Src': 0x868C, '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
Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of zha can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign zhaRemoves the current integration label and assignees on the issue, add the integration domain after the command.
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
I'm getting a similar error. Looks like there are several ZHA bugs pertaining to TI ZNP chips.
Same errors overhere...
File "/usr/local/lib/python3.11/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame raise ValueError( ValueError: Frame data is truncated (parsed {'Src': 0xB0AF, 'Status': <Status.NWK_INVALID_PARAMETER: 193>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False) 2023-12-27 04:30:31.232 ERROR (MainThread) [zigpy_znp.uart] Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x27\x89\xC1')) Traceback (most recent call last): File "/usr/local/lib/python3.11/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.11/site-packages/zigpy/types/struct.py", line 315, in deserialize value, data = field_type.deserialize(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/types/basic.py", line 193, in deserialize raise ValueError(f"Data is too short to contain {byte_size} bytes") ValueError: Data is too short to contain 1 bytes
Я тоже получаю такую ошибку. Устройство работает но красные строки в логах, это не к добру. Разработчиков прошу обратить внимание.
same with 2024.2.0 and an Sonoff CC2652P
Logger: zigpy_znp.uart
Source: /usr/local/lib/python3.12/site-packages/zigpy_znp/uart.py:75
First occurred: 21:46:56 (1 occurrences)
Last logged: 21:46:56
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x3A\x38\x84'))
Traceback (most recent call last):
File "/usr/local/lib/python3.12/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.12/site-packages/zigpy/types/struct.py", line 315, in deserialize
value, data = field_type.deserialize(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy/types/basic.py", line 194, 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.12/site-packages/zigpy_znp/uart.py", line 73, in data_received
self._api.frame_received(frame.payload)
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/api.py", line 840, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame
raise ValueError(
ValueError: Frame data is truncated (parsed {'Src': 0x383A, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False)
Same using:
Raspberry Pi 4 Core 2024.2.5 Supervisor 2024.02.1 Operating System 12.0
Sonoff Zigbee 3.0 USB Dongle Plus Model: CC2652 Version: Z-Stack 20220219
2024-03-04 18:17:07.716 ERROR (MainThread) [zigpy_znp.uart] Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\x08\x63\x84'))
Traceback (most recent call last):
File "/usr/local/lib/python3.12/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.12/site-packages/zigpy/types/struct.py", line 315, in deserialize
value, data = field_type.deserialize(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy/types/basic.py", line 194, 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.12/site-packages/zigpy_znp/uart.py", line 73, in data_received
self._api.frame_received(frame.payload)
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/api.py", line 840, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame
raise ValueError(
ValueError: Frame data is truncated (parsed {'Src': 0x6308, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False)
Same using:
Raspberry Pi 5 Core 2024.3.3 Supervisor 2024.03.0
Sonoff Zigbee 3.0 USB Dongle Plus Model: CC2652
Регистратор: zigpy_znp.uart
Источник: /usr/local/lib/python3.12/site-packages/zigpy_znp/uart.py:75
Первое сообщение: 06:30:48 (1 сообщений)
Последнее сообщение: 06:30:48
Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\xEF\x91\x84'))
Traceback (most recent call last):
File "/usr/local/lib/python3.12/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.12/site-packages/zigpy/types/struct.py", line 315, in deserialize
value, data = field_type.deserialize(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy/types/basic.py", line 197, 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.12/site-packages/zigpy_znp/uart.py", line 73, in data_received
self._api.frame_received(frame.payload)
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/api.py", line 840, in frame_received
command = command_cls.from_frame(frame, align=self.nvram.align_structs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame
raise ValueError(
ValueError: Frame data is truncated (parsed {'Src': 0x91EF, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False)
Same using:
Proxmox LXC on Dell Optiplex Mini Core 2024.4.3 Supervisor 2024.04.0 Operating System 12.2 Zigstar UZG-01 in LAN mode
`2024-04-15 20:47:44.100 ERROR (MainThread) [zigpy_znp.uart] Received an exception while passing frame to API: TransportFrame(payload=GeneralFrame(header=CommandHeader(id=0xB2, subsystem=Subsystem.ZDO, type=CommandType.AREQ), data=b'\xB0\xB9\x84')) Traceback (most recent call last): File "/usr/local/lib/python3.12/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.12/site-packages/zigpy/types/struct.py", line 315, in deserialize value, data = field_type.deserialize(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/zigpy/types/basic.py", line 197, 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.12/site-packages/zigpy_znp/uart.py", line 73, in data_received self._api.frame_received(frame.payload) File "/usr/local/lib/python3.12/site-packages/zigpy_znp/api.py", line 840, in frame_received command = command_cls.from_frame(frame, align=self.nvram.align_structs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/zigpy_znp/types/commands.py", line 424, in from_frame raise ValueError( ValueError: Frame data is truncated (parsed {'Src': 0xB9B0, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Routes', type=<class 'zigpy.zdo.types.Routes'>, description='Routes', optional=False) `
Just FYI, this is still an error log issue for me with latest HAOS install as of today.
This is more of a cosmetic issue than anything else so it's pretty low priority. This issue will be closed when it's fixed.