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

Unexpected exception: 'protocolDataRate' #735

Open
mrn42 opened this issue Dec 7, 2024 · 0 comments
Open

Unexpected exception: 'protocolDataRate' #735

mrn42 opened this issue Dec 7, 2024 · 0 comments

Comments

@mrn42
Copy link

mrn42 commented Dec 7, 2024

Problem/Motivation

Addon cannot be connected to zwave_js because of error "Unexpected exception: 'protocolDataRate'" that is preventing zwave_js driver to run or to keep running (driver keeps re-initializing)

Expected behavior

zwave_js ingests zwave_js_ui data

Actual behavior

zwave_js driver is restarting indefinitely

Steps to reproduce

Install HASS x86 on Fibaro HC2 and use the embedded Zwave controller

Proposed changes

Allow Nodestatistic not to have protocalDataRate key set up

Logger: homeassistant.components.zwave_js
Source: components/zwave_js/init.py:935
integration: Z-Wave (documentation, issues)
First occurred: 5:50:51 PM (3321 occurrences)
Last logged: 9:45:08 PM

Unexpected exception: 'protocolDataRate'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zwave_js/init.py", line 935, in client_listen
await client.listen(driver_ready)
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/client.py", line 285, in listen
await self.receive_until_closed()
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/client.py", line 444, in receive_until_closed
self._handle_incoming_message(data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/client.py", line 533, in _handle_incoming_message
self.driver.receive_event(event) # type: ignore
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/driver.py", line 96, in receive_event
self.controller.receive_event(event)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/controller/init.py", line 865, in receive_event
node.receive_event(event)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/node/init.py", line 480, in receive_event
self._handle_event_protocol(event)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/event.py", line 85, in _handle_event_protocol
handler(event) # pylint: disable=not-callable
~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/node/init.py", line 1147, in handle_statistics_updated
event.data["statistics_updated"] = self._statistics = NodeStatistics(
~~~~~~~~~~~~~~^
self.client, statistics
^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "", line 5, in init
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/node/statistics.py", line 63, in post_init
self.lwr = RouteStatistics(self.client, lwr)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "", line 5, in init
File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/statistics.py", line 48, in post_init
self.protocol_data_rate = ProtocolDataRate(self.data["protocolDataRate"])
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'protocolDataRate'

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