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

✨ Support firmware update from HA #249

Merged
merged 8 commits into from
Jan 1, 2025
Merged

✨ Support firmware update from HA #249

merged 8 commits into from
Jan 1, 2025

Conversation

kamaradclimber
Copy link
Owner

This is a nice suggestion from @IgorYbema, thanks!

Fix #248

This will allow to detect automatically the board type and thus the
binaries to fetch

Reference: IgorYbema/HeishaMon#140
For heishamon versions  < 3.9, we don't have the `board` field in stats
message.
Instead we can guess based on the value of `voltage` field which is
automatically set to "3.3" for other versions.
@kamaradclimber kamaradclimber marked this pull request as ready for review January 1, 2025 14:59
@kamaradclimber kamaradclimber merged commit ce5920e into main Jan 1, 2025
2 checks passed
@IgorYbema
Copy link

one suggestion, to determine ESP8266 vs ESP32 before 3.9 you can look at 'stats' and then 'free heap size'. For the esp8266 this can never go beyond 64k and for the ESP32 this is always more free than this 64k limit (or else the ESP32 is leaking memory but you can ignore this situation). Also the static 3.3v is an indication for ESP32
So:
if voltage = 3.3 AND "free heap" > 65535 then assume ESP32

@kamaradclimber
Copy link
Owner Author

Good idea, I've added this heuristic in 1.14.1.

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

Successfully merging this pull request may close these issues.

support for firmware update through home assistant
2 participants