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

Firmware shows as updating in HASS, but it isn't #84

Closed
uvjim opened this issue Jan 19, 2025 · 3 comments
Closed

Firmware shows as updating in HASS, but it isn't #84

uvjim opened this issue Jan 19, 2025 · 3 comments

Comments

@uvjim
Copy link

uvjim commented Jan 19, 2025

Describe the bug
Using Beta 14, I checked for updates today and there was a new beta firmware available for the remote. I have not started that update from either the remote or the HASS integration. However, Home Assistant is showing that the firmware is 10% complete.

Home Assistant details.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Check for firmware updates
  2. Note Home Assistant correctly shows an update but incorrectly shows it as in progress.

Expected behavior
The firmware should not show progress until the process is started.

Screenshots
Image

@JackJPowell
Copy link
Owner

This was a bug that has been corrected locally. I'll ship the fix with the next beta.

Long explanation if you're curious:
The remote does not have the ability to perform a download and install without user intervention. To get around that problem in HA, when a user asks to update, and the firmware isn't downloaded yet, clicking update will only start the download on the remote side. I don't have a way to communicate this to the user though. Instead, I have HA wait around for the download to finish and then issue the update command again to actually start the update. During this waiting period, I'm using the first 10% of the install bar to track download progress. It's not really accurate, but users hate not seeing progress. :) Then once the actual update is more than 10% along, it starts reporting the correct percentage inside HA.

The reason why you were seeing the 10% is because the remote downloaded the firmware automatically and the integration was responding to the WS messages about it.

Anyway, HA now only reports progress after the user has actually clicked the update button.

@JackJPowell
Copy link
Owner

@uvjim
Copy link
Author

uvjim commented Feb 10, 2025

Brilliant. Thanks. Let's close this. I can always re-open if the behaviour manifests again with the next update from UC.

@uvjim uvjim closed this as completed Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants