mmakaay / esphome-xiaomi_bslamp2

ESPHome integration for the Xiaomi Mijia Bedside Lamp v2.
Other
204 stars 49 forks source link

[FEATURE] Add support web OTA upgrade #109

Closed 0neday closed 1 year ago

0neday commented 1 year ago

Is your feature request related to a problem? Please describe.

I found esp-idf framework that is not support web ota upgrade

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_FREERTOS_UNICORE: y
    advanced:
      ignore_efuse_mac_crc: true

Describe the solution you'd like do you have any plan to add web ota support using arduino framework? like this

esphome:
  name: yeelight-c900
  platformio_options:
    platform_packages:
      - framework-arduinoespressif32 @ https://github.com/pauln/arduino-esp32.git#solo-no-mac-crc/1.0.6

  # avoid loop reboot when enable BLE
  on_loop:
    - lambda: "vTaskDelay(10/portTICK_PERIOD_MS);"

esp32:
  board: esp32dev

1.PNG

https://github.com/0neday/yeelight-c900/blob/main/yeelight-c900.yaml#L5

mmakaay commented 1 year ago

The parts of configuration that you quoted have no relation to the OTA update via HTTP. Being able to do OTA that way is related to the ESPHome web server component.

This web server component is currently not (yet) available for the ESP-IDF framework. Implementing the web server component for the ESP-IDF framework is not a task for this project. This project is only about providing the firmware support to get the bslamp2 hardware to work with ESPHome.

A related feature request ticket in the ESPHome project: https://github.com/esphome/feature-requests/issues/1649