I’ve been asked to secure this info from Any Support for Midea A/C
I’ve put here all relevant info from that topic:
Looks like it is finally working!
Thanks Mac-Zhou, ReneKlootwijk, SergeyDudanov, Fraschi for awesome collaboration.
(it already works, but development still ongoing to support more models and functions)
I used this to flash the esp-01: USB Serial Adapter CH340G 5V/3.3V USB to TTL-UART.
As the AC itself doesn’t use USB (even though it uses an USB connector), you cannot use the programmer adapter there, you need the 5V/3.3V Adapter.
Mine looks like this (my A/C was both equipped with USB as well as header plug, so I could choose)
PS:If I understood Rene Klootwijk correctly, you can order them pre-assembled, have a look here
Normally ‘programming’ would be done from the ESPHome add-on
example of my mideahvac.yaml:
# Example configuration entry esphome: name: mideahvac platform: ESP8266 board: esp01_1m wifi: ssid: "mywifissid" password: "mywifipassword!" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Midea-Hvac Fallback Hotspot" password: "53416ef6123" captive_portal: # Enable Home Assistant API api: ota: # Disable logging over UART logger: baud_rate: 0 uart: tx_pin: 1 rx_pin: 3 baud_rate: 9600 midea_dongle: midea_ac: name: "Midea AC" beeper: true
Checking size /data/mideahvac/.pioenvs/mideahvac/firmware.elf RAM: [===== ] 45.2% (used 37064 bytes from 81920 bytes) Flash: [==== ] 40.1% (used 411128 bytes from 1023984 bytes) Creating BIN file "/data/mideahvac/.pioenvs/mideahvac/firmware.bin" using "/root/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" and "/data/mideahvac/.pioenvs/mideahvac/firmware.elf" ========================= [SUCCESS] Took 8.98 seconds ========================= INFO Successfully compiled program. ERROR Error binary size: Error: ESP does not have enough space to store OTA file. Please try flashing a minimal firmware (remove everything except ota)
OTA still don’t work for me, as the image is too big for my ESP01; but maybe it would if I use an empty one. Ofc you can also compile it on HA, and then download and flash it over ser2usb, But I ended up compiling the bins on W10 and flash it over the serial com-port.
Below my command lines used to compile:
cd c:\workshop\esphome pip install esphome pip install esphomeflasher pip install --upgrade git+https://github.com/dudanov/[email protected] esphome mideahvac.yaml wizard esphome mideahvac.yaml compile esphomeflasher using the compiled C:\_workshop\esphome\mideahvac\.pioenvs\mideahvac\firmware.bin
Assuming you already installed python
and to program it
(Check this link for more options flashing esp-01’s)
More info here: