core: Zwave JS - Unknown error / loses connection

The problem

Z-wave JS switches/devices are not responding after a couple of days. Not sure it’s the add-on that loses connection or the integration. The switches/devices are listed as available but can’t toggle it. When i try to toggle it I get a a toast error “Failed to execute …”.

What is version of Home Assistant Core has the issue?

core 2021.5.5

What was the last working version of Home Assistant Core?

No response

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/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: components/zwave_js/switch.py:74
First occurred: May 22, 2021, 6:03:44 PM (11 occurrences)
Last logged: May 23, 2021, 1:11:13 AM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 692, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/switch.py", line 74, in async_turn_off
    await self.info.node.async_set_value(target_value, False)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/node.py", line 370, in async_set_value
    result = await self.async_send_command(
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/node.py", line 349, in async_send_command
    result = await self.client.async_send_command(message, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 73, in async_send_command
    return await future
zwave_js_server.exceptions.FailedCommand: Command failed: unknown_error


Logger: homeassistant.components.websocket_api.http.connection
Source: components/zwave_js/switch.py:68
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: May 23, 2021, 1:00:31 AM (1 occurrences)
Last logged: May 23, 2021, 1:00:31 AM

[1650448824] Command failed: unknown_error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 143, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 206, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 649, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 692, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/switch.py", line 68, in async_turn_on
    await self.info.node.async_set_value(target_value, True)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/node.py", line 370, in async_set_value
    result = await self.async_send_command(
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/node.py", line 349, in async_send_command
    result = await self.client.async_send_command(message, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 73, in async_send_command
    return await future
zwave_js_server.exceptions.FailedCommand: Command failed: unknown_error

Logger: homeassistant.components.zwave_js
Source: components/zwave_js/__init__.py:251
Integration: Z-Wave JS (documentation, issues)
First occurred: May 23, 2021, 1:20:31 AM (1 occurrences)
Last logged: May 23, 2021, 1:20:31 AM

Failed to connect: Cannot connect to host core-zwave-js:3000 ssl:default [Connect call failed ('172.**.**.*', 3000)]

Additional information

Restarting the add-on is the only thing that works for now

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 30 (11 by maintainers)

Most upvoted comments

@MartinHjelmare Having a new official RPi adapter running for a week now. Everything is working and didn’t have any zwave driver destroyed errors. I think my problem is fixed! Really happy 👍 Thanks!

2021-07-07T07:53:48.982Z DRIVER Serial port errored: The serial port closed unexpectedly!

Seems like there is some problem with the z-wave controller. Assuming you have a USB controller, I would try stopping the addon, then physically pulling the USB stick from the host, re-insert it, then start the addon, and see if there’s any improvement.

Yes, that’s normal. The network setting can be used to expose the docker server port to the host, eg to allow connecting from a different host than the host that runs the add-on.