dhewg / esphome-miot

ESPHome components for MIoT devices
Other
43 stars 17 forks source link

Compile error #23

Closed moto25 closed 2 months ago

moto25 commented 5 months ago

Hi, since ESPHome 2024.6.0 are OTA changes. When setting

ota:

got compile error:

src/esphome/components/miot/miot.cpp:18:10: fatal error: esphome/components/ota/ota_component.h: No such file or directory

include "esphome/components/ota/ota_component.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. *** [.pioenvs/mi-gbr/src/esphome/components/miot/miot.o] Error 1

any idea? thank you

scrampker commented 5 months ago

This is a change to ESPHome. You would update that section to:

ota:
  platform: esphome

That being said, I'm still getting the following afterwards, which means the actual libraries need to be updated: image

pchmura4 commented 5 months ago

Hi, I was also having this issue, therefore instead of waiting I fixed it myself. The pull request has been created, but during the time you can use my fork to check if it's working source: github://pchmura4/esphome-miot@main Just please bear in mind I will not be updating this anytime soon 😅

9R commented 4 months ago

25 is an alternate solution for this issue that makes use of the new esphome function get_global_ota_callback()

dhewg commented 2 months ago

I just merged the fix, thanks everybody!