Olivier ARCHER

Results 58 comments of Olivier ARCHER

ok, I've been able to remove `make_ota_backend` implementation from `ota_http`: works well, with less code!

Do you think you can expose [make_ota_backend() from ota_component.cpp](https://github.com/esphome/esphome/blob/f8fe5b4bcbe7800a643edabb2e94dc834814d327/esphome/components/ota/ota_component.cpp#L27-L42) in [ota_backend.h](https://github.com/esphome/esphome/blob/f8fe5b4bcbe7800a643edabb2e94dc834814d327/esphome/components/ota/ota_backend.h) ? This will allow me to deduplicate code in #5586 : https://github.com/esphome/esphome/pull/5586/files#diff-27f52552e77ae8e847311509844b5f6a0ed8c5f92516be31a2a5124f207b414bR15-R37

Yes, `ota_http` relies entirely on the ota component (unlike the http client part which does not rely on `http_request` component), and it will be easy to add options to handle...

I see. the ota part in `ota_http` part is here: https://github.com/oarcher/esphome/blob/911e19f3573f01c0bcf4711dd00be51fcadb0f23/esphome/components/ota_http/ota_http.cpp#L46-L126 `http_init`, `http_read` and `http_end` are all virtual methods, that are overwritten for specific implementation (here http client for esp-idf...

@angelnu , for using `http_ota` in `web_server` I was thinking about integration in `ota` component of a simplified version of `OtaHttpComponent` at https://github.com/oarcher/esphome/blob/aa0a3e09b6ae9a7eaa3bd0b7d828dbecf75117e1/esphome/components/ota_http/ota_http.h#L30-L66 This simplified version should rename `http_*` methods...

@Alphaemef , I've implemented ESP-IDF, and it works for SSL. Note that for the moment, RP2040 support is missing, but I plan to work on it soon.

@nagyrobi , yes, the url is templatable.

I've updated the doc on https://github.com/esphome/esphome-docs/pull/3291 .

@thomasvnl , I think that if you put the firmware md5sum on the server (like http://exemple.com/firmware.md5), you can check for change with `http_request` and trigger `ota_http.flash` action. You will have...

@skorokithakis , yes, if there is an existing protocol, `ota_http` should support it. But is it restricted to esp8266 ? I can see on https://registry.platformio.org/libraries/xose/NoFUSS that the device should send...