-
Notifications
You must be signed in to change notification settings - Fork 342
[Feature request] Add event after OTA update #1594
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
Comments
I think it's a good idea. So... OTAState event with values like 0 for started, and 1 for done? |
Yes, could be great to have also the start ^ |
Maybe you need to compare fw version and skip new update start? |
Can you please describe the process more detailed, "for newbie" )) ?
Why does the device searches for a firmware update on the server after rebooting? |
I'm not sure my process is the rigth one, I tried to simplify it. So on my low powered device (even if USB powered), I have this
For information, without So, on HA side I have currently 2
Which are handle on my dashboard with two buttons in the badge section
Finally, I have this automation which handle communication
You can see that I tried to automate firmware detection in HA (it's currently disable) with the |
Don't read your reply carefully yet (will do this later), but... maybe you have to remove |
I can not alter the command. |
Yes, maybe be |
I have a battery powered device which shutdown automatically after a period of time.
I managed to extend the delay palying with wifi states in my
autoexec.bat
file.I try to manage my update automatically with Home Assistant but I have some difficulties.
The process is :
ota_http
In my module everything is ok, firmware is updated and the device reboot with the new firmware.
BUT on reboot, as the file exists on my server, the process begin again.
I could add a button to enable/disable the update process but I prefer the automatic way.
So I was thinking of an event after the update which could be used to send a MQTT message to HA to delete the firmware file or something in HA to avoid a second update.
Currently, I use button.
The text was updated successfully, but these errors were encountered: