Skip to content
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

The SLZB-06 core firmware update will not be completed. #136257

Open
schoppfe opened this issue Jan 22, 2025 · 14 comments
Open

The SLZB-06 core firmware update will not be completed. #136257

schoppfe opened this issue Jan 22, 2025 · 14 comments

Comments

@schoppfe
Copy link

The problem

Since January 20, 2024, an update from the installed version v2.6.8.dev25 to the latest version v2.7.0 is available. The update was initiated via the Home Assistant user interface. At first nothing happens, but when I return to the update interface, it is displayed that an update is currently being installed. But even after 2 days the update is not completed. After restarting the integration, the update from v2.6.8.dev25 to v2.7.0 is available again.

What version of Home Assistant Core has the issue?

core-2025.1.1

What was the last working version of Home Assistant Core?

core-2025.1.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SMLIGHT SLZB

Link to integration documentation on our website

https://www.home-assistant.io/integrations/smlight

Diagnostics information

home-assistant_smlight_2025-01-22T14-51-08.266Z.log

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

Hey there @tl-sl, mind taking a look at this issue as it has been labeled with an integration (smlight) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of smlight 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 smlight 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)


smlight documentation
smlight source
(message by IssueLinks)

@brucetm
Copy link

brucetm commented Jan 22, 2025

My new device reported:

SLZB-06M Core firmware Update available
Installed version: v2.3.6.plus
Latest version: v2.7.1

Clicked install, got some download/install timer graphics, then nothing. Said update available again.

Clicking update again gives "Failed to perform the action update/install. Update installation already in progress for update.slzb_06m_core_firmware".

But this persists, update never completes.

@tl-sl
Copy link
Contributor

tl-sl commented Jan 23, 2025

Thansk for the report, I will need to look into this. Upgrade to 2.7.0 worked for me. However I can see this error in your logs:

2025-01-21 20:02:24.057 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/pysmlight/sse.py", line 52, in client
    await self.sse_stream()
  File "/usr/local/lib/python3.13/site-packages/pysmlight/sse.py", line 64, in sse_stream
    await self._message_handler(event)
  File "/usr/local/lib/python3.13/site-packages/pysmlight/sse.py", line 73, in _message_handler
    self.callbacks.get(event_type, lambda x: None)(event)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/smlight/update.py", line 182, in _update_failed
    raise HomeAssistantError(f"Update failed for {self.name}")
homeassistant.exceptions.HomeAssistantError: Update failed for Core-Firmware
2025-01-21 20:02:43.267 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140056617703392] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )

It is possible that just the notification of upgrade complete is not working here. If you reboot HA or check SLZB UI after failed firmware update, can you confirm it still on old version or new version?

@brucetm
Copy link

brucetm commented Jan 23, 2025

You are right, the update does seem to have actually worked, I logged into the gateway device web console and it shows the expected updated rev. Only Home Assistant fails to get the status updated. Reboot etc. did not change that.

@brucetm
Copy link

brucetm commented Jan 23, 2025

Scratch that: after another reboot of HA (or perhaps it was rather just some periodic long running timeout?) HA now also knows that the update is no longer needed.

@schoppfe
Copy link
Author

I wasn't even able to update via the web UI of the device itself. It couldn't find the firmware. Unfortunately, I forgot to write down the error code. At the end I had to download it manually

@Eddio56
Copy link

Eddio56 commented Jan 24, 2025

I have the same issue. Then I tried to update from 2.6.8 to 2.7.0.or 2.7.1 i get error message Req err, code: -1
Log:
09:40:25] ConfigHelper | write config
[09:40:25] ConfigHelper | config saved
[09:40:37] Web | [CORE OTA] starting core OTA, url: HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 2
Connection: close

@tl-sl
Copy link
Contributor

tl-sl commented Jan 25, 2025

Do you have authentication enabled on your SLZB devices? If so this will likely be the same as:
#135870 (comment)

@Eddio56
Copy link

Eddio56 commented Jan 25, 2025

Thanks for assistance. No, authentication is disabled. All previous updates were successfully done without authentication. It’s something new? And if I enable authentication , what default password? I see user admin.

@tl-sl
Copy link
Contributor

tl-sl commented Jan 25, 2025

@Eddio56 no nothing has changed with authentication, but that other issue only occurs if you have authentication enabled.

I have not been able to reproduce this specific error yet. There is a chance however, that the other fix will also resolve these errors here with SSE events. It is those events that provide the feedback for update progress and update completed.

@Eddio56
Copy link

Eddio56 commented Jan 25, 2025

@tl-sl you mean, we must to wait for next firmware, say, 2.7.2, to fix this bug?

@tl-sl
Copy link
Contributor

tl-sl commented Jan 25, 2025

The other fix should be in the next HA update, maybe 2025.01 if there is another one, otherwise 2025.02

@Eddio56
Copy link

Eddio56 commented Jan 25, 2025

@tl-sl I think my problem is bug in firmware of SLZB-6b, not in HA. I tried update device directly from it web interface, not through HA.

@tl-sl
Copy link
Contributor

tl-sl commented Jan 25, 2025

In that case you should contact SMLIGHT support directly. This issue tracker is for Home Assistant related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants