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
72.81k stars 30.51k forks source link

ZWave firmware update's stop working #79768

Closed Schlaegel closed 1 year ago

Schlaegel commented 2 years ago

The problem

I waited to try a firmware update for ZWave until 10.0. I have many, many of the same device that all have an update, Device ID 99-12855-18770 (0x0063-0x4952-0x3237). The the first update went flawlessly. The next update had issues from the start, with the the percent complete just showing true. It never did anything. I tried another and got the same results.

I just updated to 10.1, and tried again. The ones that I tried in 10.0 now give an error message, but new updates work as smoothly as the original one did.

This is what it looks like for the ones with a failed update: Living Area Lights Firmware 9 minutes ago 5.54 Installed version 5.53 Latest version 5.54

I get this pop-up: Failed to call service update/Install. Z-Wave error 1500: Failed to start the update: A firmware upgrade is already in progress! (ZW1500)

Home Assistant 2022.10.1 Supervisor 2022.09.1 Operating System 9.0 Frontend 20221006.0 - latest

What version of Home Assistant Core has the issue?

2022.10.1

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

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.websocket_api.http.connection
Source: components/zwave_js/update.py:229
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 2:45:01 PM (7 occurrences)
Last logged: 3:05:07 PM

[546995235920] Z-Wave error 1500: Failed to start the update: A firmware upgrade is already in progress! (ZW1500)
[546717119824] Z-Wave error 1500: Failed to start the update: A firmware upgrade is already in progress! (ZW1500)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/update.py", line 224, in async_install
    await self.driver.controller.async_firmware_update_ota(
  File "/usr/local/lib/python3.10/site-packages/zwave_js_server/model/controller/__init__.py", line 735, in async_firmware_update_ota
    data = await self.client.async_send_command(
  File "/usr/local/lib/python3.10/site-packages/zwave_js_server/client.py", line 116, in async_send_command
    return await future
zwave_js_server.exceptions.FailedZWaveCommand: Z-Wave error 1500: Failed to start the update: A firmware upgrade is already in progress! (ZW1500)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 202, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 207, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 154, in async_install
    await entity.async_install_with_progress(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 413, in async_install_with_progress
    await self.async_install(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/update.py", line 229, in async_install
    raise HomeAssistantError(err) from err
homeassistant.exceptions.HomeAssistantError: Z-Wave error 1500: Failed to start the update: A firmware upgrade is already in progress! (ZW1500)

Additional information

Z-Wave: Diagnostics Driver Version: 10.3.0 Server Version: 1.24.0

Z-Wave JS: zwave-js-ui: 8.1.0 zwave-js: 10.3.0

homeassistant commented 2 years 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! (message by CodeOwnersMention)


zwave_js documentation zwave_js source (message by IssueLinks)

raman325 commented 2 years ago

have you tried restarting your zwave network? Just restart the addon then try again.

Schlaegel commented 2 years ago

I've restarted the entire system twice.

Schlaegel commented 2 years ago

I went looking around and learned there is a restart for the integrations and the add-ons. I didn't know that. So, that fixed it. Somehow, whatever was the problem lasted through restarting the computer, but restarting the add-ons fixed it. Thanks. I wonder if this should be documented. Maybe it already is and I just didn't know to look. Now all my Z-Wave devices needing updates have updated, it was at least 10.

GREGWMTB commented 1 year ago

still having very similar issue. I have several Inovelli LZW30 switches. Some have updated from 1.10 to 1.20 firmware no problem. Others i've had to factory reset the switches and re-interview them. Soemtimes I'll randomly get others to update and some not. I've got about 15 of these witches and I am down to the last 2 that just wont seem to update.

I've tried restarting, restarting the add-on etc. Every combination that seems to have worked before.

GREGWMTB commented 1 year ago

Just an update on my situation incase this helps anyone else. I finally got all my switches updated but it's been a horrible mess. Basically about 1/2 to 2/3 of my Inovelli LZW30 Switches updated from 1.11 to 1.20 without any hastle. The last 1/3 had the same issue that everyone has mentioned above.

I tried several things. 1) Factory Reseting Switch 2) Removing Switch from Z-Wave JS 3) Restarting Home Assistant + Restarting The Z-Wave JS under "Add-Ons" 3) After doing above I would re-include the switch into home assistant and try to to upgrade firmware.

In a few of the last remaining switches this above method would work to get things updated. But I had 2 swictches remaining that would just not update their firmware.

Finally I had to physically switch / unwire them in different locations. I have no idea why that helped at all. but I unwired the last 2 switches, factory reset again, removed them from home assistant and then tried the update and it worked. I have no idea why phyiscally moving the switches would work at all but after hours of banging my head I'll take it.

Still convinced there is an issue here but don't know where it lies. One thing I love about having the LZW30's onto the new firmware is the "insta on" feature. The wife and kids complained about the "lag" when hitting the switches manually, so having the insta-on now is a big hit.