core: zwavejs: ValueError: 0 is not a valid ProtocolDataRate
The problem
Hi, noticed this error message running
Home Assistant 2023.4.0b1 Supervisor 2023.03.3 Operating System 10.0.rc2 Frontend 20230329.0 - latest Aeotec z stick 7 Firmware: 7.17.2 Z-wave JS UI - 1.8.1
Logger: homeassistant.components.zwave_js
Source: components/zwave_js/__init__.py:765
Integration: Z-Wave (documentation, issues)
First occurred: 12:17:59 PM (1 occurrences)
Last logged: 12:17:59 PM
Unexpected exception: 0 is not a valid ProtocolDataRate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 765, in client_listen
await client.listen(driver_ready)
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/client.py", line 261, in listen
await self.receive_until_closed()
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/client.py", line 329, in receive_until_closed
self._handle_incoming_message(data)
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/client.py", line 412, in _handle_incoming_message
self.driver.receive_event(event) # type: ignore
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/driver.py", line 83, in receive_event
self.controller.receive_event(event)
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/controller/__init__.py", line 813, in receive_event
node.receive_event(event)
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/node/__init__.py", line 418, in receive_event
self._handle_event_protocol(event)
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/event.py", line 71, in _handle_event_protocol
handler(event)
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/node/__init__.py", line 950, in handle_statistics_updated
event.data["statistics_updated"] = self._statistics = NodeStatistics(
File "<string>", line 5, in __init__
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/node/statistics.py", line 55, in __post_init__
self.lwr = RouteStatistics(self.client, lwr)
File "<string>", line 5, in __init__
File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/statistics.py", line 47, in __post_init__
self.protocol_data_rate = ProtocolDataRate(self.data["protocolDataRate"])
File "/usr/local/lib/python3.10/enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in __new__
raise ve_exc
ValueError: 0 is not a valid ProtocolDataRate
Does not seem to affect my z-wave, as it is working normally. When it happened, all devices become unavailable momentarily (few seconds).
I have enabled integration debug to get more information as advised by Freshcoast.
Will update with more information if the debug catches it.
What version of Home Assistant Core has the issue?
2023.4.0b1
What was the last working version of Home Assistant Core?
pre-2023.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Z-wave - JS
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zwave_js/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (9 by maintainers)
Definitely