Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ZHA logs : ValueError: 253 is not a valid AddressMode #151

Open
OrpheeGT opened this issue Dec 23, 2023 · 0 comments
Open

Error in ZHA logs : ValueError: 253 is not a valid AddressMode #151

OrpheeGT opened this issue Dec 23, 2023 · 0 comments

Comments

@OrpheeGT
Copy link

Hello,

I have a lot of errors in Home Assistant debug logs.

I'm using USB Zigate v2 (DIN) with latest firmware 3.A0

2023-12-23 02:32:14.873 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020017d2f08cb8fedf909ffdffffff14021187006b13998002125e
2023-12-23 02:32:14.874 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.11/site-packages/serial_asyncio_fast/__init__.py", line 137, in _read_ready
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/uart.py", line 92, in data_received
    self._api.data_received(cmd, f_data, lqi)
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/api.py", line 303, in data_received
    data, rest = t.deserialize(data, RESPONSES[cmd])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 11, in deserialize
    value, data = type_.deserialize(data)
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 350, in deserialize
    r.address_mode, data = AddressMode.deserialize(data)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 52, in deserialize
    r = cls(int.from_bytes(data[: cls._size], byteorder, signed=cls._signed))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1135, in __new__
    raise ve_exc
ValueError: 253 is not a valid AddressMode
2023-12-23 02:32:14.897 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020017d2f08cb8fedf909ffdffffff14021187006b13998002125e
2023-12-23 02:32:14.898 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.11/site-packages/serial_asyncio_fast/__init__.py", line 137, in _read_ready
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/uart.py", line 92, in data_received
    self._api.data_received(cmd, f_data, lqi)
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/api.py", line 303, in data_received
    data, rest = t.deserialize(data, RESPONSES[cmd])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 11, in deserialize
    value, data = type_.deserialize(data)
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 350, in deserialize
    r.address_mode, data = AddressMode.deserialize(data)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 52, in deserialize
    r = cls(int.from_bytes(data[: cls._size], byteorder, signed=cls._signed))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1135, in __new__
    raise ve_exc
ValueError: 253 is not a valid AddressMode
2023-12-23 02:32:14.953 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020017d2f08cb8fedf909ffdffffff14021187006b13998002125e
2023-12-23 02:32:14.954 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.11/site-packages/serial_asyncio_fast/__init__.py", line 137, in _read_ready
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/uart.py", line 92, in data_received
    self._api.data_received(cmd, f_data, lqi)
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/api.py", line 303, in data_received
    data, rest = t.deserialize(data, RESPONSES[cmd])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 11, in deserialize
    value, data = type_.deserialize(data)
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 350, in deserialize
    r.address_mode, data = AddressMode.deserialize(data)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_zigate/types.py", line 52, in deserialize
    r = cls(int.from_bytes(data[: cls._size], byteorder, signed=cls._signed))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1135, in __new__
    raise ve_exc
ValueError: 253 is not a valid AddressMode
2023-12-23 02:32:23.341 DEBUG (MainThread) [zigpy.application] Feeding watchdog

I also have errors when I switch on/off lights too fast...

[homeassistant.components.websocket_api.http.connection] [547002095808] Failed to send request: ZiGate did not respond to command

As it refers to "zigpy_zigate" in logs, I thought the issue should probably be raised here so here it is.

Thank you

zigpy_zigate.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant