esphome-miot icon indicating copy to clipboard operation
esphome-miot copied to clipboard

Compile error

Open moto25 opened this issue 1 year ago • 3 comments

Hi, since ESPHome 2024.6.0 are OTA changes. When setting

ota:

  • platform: esphome
    password: !secret ota_password

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

moto25 avatar Jun 24 '24 09:06 moto25

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

scrampker avatar Jun 26 '24 17:06 scrampker

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 😅

pchmura4 avatar Jun 27 '24 07:06 pchmura4

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

9R avatar Jul 08 '24 07:07 9R

I just merged the fix, thanks everybody!

dhewg avatar Sep 19 '24 08:09 dhewg