esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Create the MD5 sum on firmware compilation #2958

Open Rihan9 opened 15 hours ago

Rihan9 commented 15 hours ago

Describe the problem you have/What new integration you would like

The Feature request that I'm requesting/suggesting is to generate the MD5 checksum, save it in a file on the same folder of the firmware, in order to enable this endpoint to expose it on the esphome devices and successfully complete the ota update using the http request platform:

https://**OMITTED**/download.bin?configuration=multisensor-2410-shtc3.yaml&file=MD5.ota.txt

Please describe your use case for this integration and alternatives you've tried:

Hi!. I plan to create 8 device identical to each other. I don't want to create 8 different firmware configuration and 8 different firmware, but 1 config and 1 firmware only.

In order to do this and keeping the ota update available, I plan to use the http request platform instead the default esphome platform and use the esphome dashboard itself to provide the firmware. (the dashboard has a nice endpoint to download the firmware and it's always available on my network). The problem is the MD5 checksum url because currently esphome require it on this platform, but the esphome doesn't calc it and doesn't store it in any file.

Additional context