home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.94k stars 29.03k forks source link

Failed to set the Z-Wave JS add-on options #115254

Open heyhewmike opened 3 months ago

heyhewmike commented 3 months ago

The problem

Z-Wave JS Integration Fails to remain running. I have updated to the most recent HA Core, HAOS, I have ensured that the ZWave Add-on is installed and running.

*It worked on core-2024.3. for about 3 hours as I registered devices.**

There is 1 occurrences due to several reboots during troubleshooting.

Here is the error being presented in my system logs when performing a search for 'zwa':

Logger: homeassistant.components.zwave_js Source: components/hassio/addon_manager.py:381 integration: Z-Wave (documentation, issues) First occurred: 7:10:37 PM (1 occurrences) Last logged: 7:10:37 PM Failed to set the Z-Wave JS add-on options: not a valid value for dictionary value @ data['options']. Got {'device': '/dev/serial/by-id/usb-Zooz_800_Z-WaveStick[redacted]', 's0_legacy_key': '6[redacted]C', 's2_access_control_key': '1[redacted]3', 's2_authenticated_key': 'E[redacted]8', 's2_unauthenticated_key': '4[redacted]1'}

What version of Home Assistant Core has the issue?

core-2024.4.2

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

ZWave

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?

Logger: homeassistant.components.zwave_js
Source: components/hassio/addon_manager.py:381
integration: Z-Wave ([documentation](https://www.home-assistant.io/integrations/zwave_js), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+zwave_js%22))
First occurred: 7:10:37 PM (1 occurrences)
Last logged: 7:10:37 PM
Failed to set the Z-Wave JS add-on options: not a valid value for dictionary value @ data['options']. Got {'device': '/dev/serial/by-id/usb-Zooz_800_Z-Wave_Stick_[redacted]', 's0_legacy_key': '6[redacted]C', 's2_access_control_key': '1[redacted]3', 's2_authenticated_key': 'E[redacted]8', 's2_unauthenticated_key': '4[redacted]1'}

Additional information

I have had the ZWave hub installed for a log period but I finally got the end devices installed and began adding them today for the very first time. As I started to try and update the firmware on 1 and interact with another I saw them going offline. I began to investigate, update HAOS and reboot Home Assistant(Full hardware reboot from Menu) and this did not seem to fix the issue.

The integration shows an error. I click on 'Configure', confirm the check box is checked to use the ZWAVE JS add-on and click Submit. The integration show successfully loaded and everything 'works' for about 1 or 2 minutes and then everything fails again and I get the above log file.

home-assistant[bot] commented 3 months ago

Hey there @home-assistant/z-wave, mind taking a look at this issue as it has been labeled with an integration (zwave_js) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zwave_js` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zwave_js` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zwave_js documentation zwave_js source (message by IssueLinks)

shaan7 commented 2 months ago

EDIT: A reboot of the host fixed the problem for me

I'm facing this as well since yesterday:

Logger: homeassistant.components.zwave_js
Source: components/hassio/addon_manager.py:381
integration: Z-Wave ([documentation](https://www.home-assistant.io/integrations/zwave_js), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+zwave_js%22))
First occurred: April 17, 2024 at 2:01:55 PM (1318 occurrences)
Last logged: 7:17:18 PM
Failed to set the Z-Wave JS add-on options: not a valid value for dictionary value @ data['options']. Got {'device': '/dev/serial/by-id/usb-0658_0200-if00', 's0_legacy_key': '<hidden>', 's2_access_control_key': '<hidden>', 's2_authenticated_key': '<hidden>', 's2_unauthenticated_key': '<hidden>'}

(<hidden> is me replacing the actual alphanumeric values)

solidsnakex37 commented 2 months ago

I am having this issue and I don't know what to do to resolve it. Home Assistant running in a VM, in Unraid.

I just set everything up today, I unplugged the Zooz 800 USB and plugged it into a USB extender cable, now this error happened and no matter what I do, it won't work again. Rebooted VM, restarted HA, disabled/enabled the Z Wave integration.