He!
A couple of weeks ago I switched from OpenZwave to ZwaveJS. The main reason was that de network became unreliable and was curious about the new integration.
I can say I’m pretty pleased by how fast everything is and how easy it is to set up.
But after a couple of days zwave didn’t work anymore. I couldn’t toggle switches and was getting errors when I tried to put it on(failed to execute…). The switches don’t have a “unavailable” state.
I first tried to reload the integration, no effect. Then I reloaded the ZwaveJS add-on, no effect. Restarting the add-on did the trick and every switch/device was working again.
Days past by and it happened again, so I did a restart on the add-on and it worked again for a couple of days. Somehow the add-on loses connection to the network or something.
Below you will find the logs, but the error is unknown.
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
And another log
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.30.33.1', 3000)]
and another
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
I’m running on:
- core-2021.4.6
- supervisor-2021.04.3
- Home Assistant OS 5.13
- raspberry pi model 3b+
Does somebody know what is happening and how to fix this issue? I’m not planning to restart the add-on every couple of days