Hello, this is something i wasl looking for in those days, but when i compile i have this problem:
Compiling .pioenvs/00-esp8285-batt-test/src/esphome/components/output/float_output.cpp.o
Compiling .pioenvs/00-esp8285-batt-test/src/esphome/components/rtttl/rtttl.cpp.o
Compiling .pioenvs/00-esp8285-batt-test/src/esphome/components/sntp/sntp_component.cpp.o
src/esphome/components/ota_http/ota_http.cpp: In function âbool esphome::ota_http::http_connect(HTTPClient*, std::string)â:
src/esphome/components/ota_http/ota_http.cpp:63:23: error: âconst class Stringâ has no member named âcompareâ; did you mean âcompareToâ?
63 | bool secure_ = url_.compare(0, 6, âhttps:â) == 0;
| ^~~~~~~
| compareTo
src/esphome/components/ota_http/ota_http.cpp:68:28: error: âusing element_type = class WiFiClientâ {aka âclass WiFiClientâ} has no member named âsetInsecureâ
68 | wifi_client_secure_->setInsecure();
| ^~~~~~~~~~~
src/esphome/components/ota_http/ota_http.cpp:69:28: error: âusing element_type = class WiFiClientâ {aka âclass WiFiClientâ} has no member named âsetBufferSizesâ
69 | wifi_client_secure_->setBufferSizes(512, 512);
| ^~~~~~~~~~~~~~
src/esphome/components/ota_http/ota_http.cpp:86:18: error: âclientâ was not declared in this scope; did you mean âclient_â?
86 | begin_status = client->begin(*wifi_client_, url_);
| ^~~~~~
| client_
*** [.pioenvs/00-esp8285-batt-test/src/esphome/components/ota_http/ota_http.cpp.o] Error 1
========================= [FAILED] Took 107.86 seconds =========================
i am using esphome v2023.6.4, woojtekk did you tried it?, this is something it will be perfect for many users