Skip to content

Failed SmartStart interview results in exception in Home Assistant #81

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

Open
balloob opened this issue May 16, 2025 · 0 comments
Open

Failed SmartStart interview results in exception in Home Assistant #81

balloob opened this issue May 16, 2025 · 0 comments

Comments

@balloob
Copy link

balloob commented May 16, 2025

I had a device that failed the SmartStart interview. It then got removed inside Z-Wave JS. It then forwarded that message to Home Assistant, that never saw that device, resulting in an error.

Logger: homeassistant.components.zwave_js
Source: components/zwave_js/__init__.py:1055
integration: Z-Wave (documentation, issues)
First occurred: 14:06:31 (1 occurrence)
Last logged: 14:06:31

Unexpected exception: 257
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 1055, 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 439, in receive_until_closed
    self._handle_incoming_message(data)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zwave_js_server/client.py", line 528, 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 105, in receive_event
    self.controller.receive_event(event)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zwave_js_server/model/controller/__init__.py", line 900, 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/controller/__init__.py", line 951, in handle_node_removed
    event.data["node"] = self.nodes.pop(event.data["node"]["nodeId"])
                         ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 257
@balloob balloob added this to Backlog May 14, 2025
@balloob balloob converted this from a draft issue May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant