Midea branded AC’s with ESPhome (no cloud)

Please provide your manufacturer and model. :slight_smile:

Its a QLIMA SC-JA2516

I have midea-like AC (Lessar). I’ve opened it, found the board but there is no any usb-like port.
But there is some unsoldered ports with points 5v and grnd. Can somebody take a look on my board and say, is there any chance to connect it to HA?IMG_20210110_204618|280x500

Thanks, unfortunately the esphome container (the addon for Hass.io) does seem to miss some requirements, so it doesn’t compile your version. I’ll have to check what exactly is missing. Can’t be something big.

I’ll try and report back!

@yodi
Unfortunately I can’t find any information what chipset is build into the wifi dongle or even the A/C. Sorry, can’t be of more help here, we need to wait for someone to debug this model. It is, unfortunately, not very easy to debug something, you don’t own and can’t mess around with… :frowning:

@bartlebi
This is the under side of the circuit board, what about the other side? :wink: The dongle has to have a connection to that board, otherwise it wouldn’t work even with the manufacturer dongle. Or is your model not able to use a manufacturer dongle?

@all
Just to note: it does make sense, to give at least the manufacturer and model, so helping get’s a little easier. So please provide the data for your setup.

@paddy0174 There is a second photo in the post with a link. I don’t know why it was so loaded from the mobile.
There it is:https://community.home-assistant.io/uploads/short-url/c6Vw2OecR8AGWCaxo79ESYhcCn2.jpeg
No, my air conditioner does not support the wifi port out of the box, but I think they use a similar board, which in my case is simply not wired. It would be great if I could just solder the port and use it.

1 Like

@paddy0174 That’s weird…it compiles fine here:

INFO Reading configuration /config/esphome/Midea-hvac.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/mideahvac
Please wait while upgrading PlatformIO...
PlatformIO has been successfully upgraded to 5.0.1!

********************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
********************************************************************************

Processing mideahvac (board: esp01_1m; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
Tool Manager: Installing platformio/tool-scons @ ~4.40001.0
Tool Manager: tool-scons @ 4.40001.0 has been installed!
Tool Manager: Removing tool-scons @ 3.30102.0
Tool Manager: tool-scons @ 3.30102.0 has been removed!
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 3.20704.0 (2.7.4) 
 - tool-esptool 1.413.0 (4.13) 
 - tool-esptoolpy 1.20800.0 (2.8.0) 
 - toolchain-xtensa 2.40802.200502 (4.8.2)
Library Manager: Installing Update
Library Manager: Already installed, built-in library
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
|   |-- <ESPAsyncTCP-esphome> 1.2.3
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Hash> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
Compiling /data/mideahvac/.pioenvs/mideahvac/src/esphome/components/midea_ac/midea_climate.cpp.o
Compiling /data/mideahvac/.pioenvs/mideahvac/src/esphome/components/midea_ac/midea_frame.cpp.o
Compiling /data/mideahvac/.pioenvs/mideahvac/src/esphome/components/midea_dongle/midea_dongle.cpp.o
Compiling /data/mideahvac/.pioenvs/mideahvac/src/esphome/components/midea_dongle/midea_frame.cpp.o
Compiling /data/mideahvac/.pioenvs/mideahvac/src/main.cpp.o
Linking /data/mideahvac/.pioenvs/mideahvac/firmware.elf
Building /data/mideahvac/.pioenvs/mideahvac/firmware.bin
Retrieving maximum program size /data/mideahvac/.pioenvs/mideahvac/firmware.elf
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.

I only can’t upload it OTA:

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)

However, I can download the bin, and then flash it by USB using ESPFlasher

The board I have looks similar, however, if I disconnect the cable to the Wifi module USB port, my indoor unit stops responding to the IR remote. So I dont think you can just solder on a port, the IR receiver is on the PCB with the LED display. The USB port module that I have looks similar to the one @yodi has. I also have the USB A port with the cuts.

@yodi did you have any success yet ?

Here are some pictures:



My system is an Inventor Multisplit with AR2MVI-12WiFi indoor units. The WiFi module that came with it is the EU-OSK103.

@nvschilleman, No sorry I’ve not had time to play with this yet, plan is to setup the serial bridge / uart sniffer from https://github.com/reneklootwijk to get a better view of what is being transmitted, but indeed our units looks very similar.

@bartlebi Do you have the wifi board as shown in nvschilleman’s 3rd picture? I think you’ll need that in order to enable wifi…
@nvschilleman The left connector on the wifi board goes to ?? CN3 on the display board ??

1 Like

@nvschilleman Thanks for your photos. It is strange, and is not clear for me how the IrDA and the Wi-Fi module are related. Am i right that you already had a board for connecting USB devices when you bought it, and after you bought only the Wi-Fi module itself?

I wrote to the service of the air conditioner brand with this question, they replied that simply unsoldering the connector on the board or replacing the display board with one with an indication and a connector will give nothing, since the presence of a wifi is not programmed in the main unit of the air conditioner and it simply will not work …

@yodi Okay! I ordered some ESP-01’s yesterday. When those arrive I’ll also give it a shot and post my progress in this topic.

@aceindy The left connector on the wifi board goes to CN3 on the display board.

@bartlebi, yes it is indeed strange, when I connect the WIFI board the LED on this board stars blinking a few times, also when there is no WIFI module plugged into the USB port of the WIFI board. When it stops blinking my IR remote works again…

What make/model is your air conditioner?

@nvschilleman I have 2 Lessar LS-H09KPA2/LU-H09KPA2.

I think our indoor units are almost identical, you might be able to swap the circuit board from a wifi enabled model. I can take a picture of my indoor unit circuit board if you’d like.

It would be great! I tried to find any similar boards in my country and on aliexpress with wifi led or usb wire, but without any success. Wrote to midea directly but they didn’t reply at all. It only remains hope for the official service center, with which I correspond, I will try to purchase and replace boards through them.

I’m a refrigeration technician myself, I can order parts through my employer. I might be able to help out if the official service center isnt helpful.

I’ll take some pictures later today!

1 Like

As promised, here are some pictures of the indoor unit

Make/model of the indoor unit is Inventor AR2MVI-12WiFi, installed 07-2020

Indoor Unit without front panel, I think more manufacturers use this “chassis” and only the front panel covering the filters differs. Maybe someone can confirm this.

PCB overview:

PCB, some numbers/information


I hope this helps, if you have any questions or need a closer picture or something like that dont hestitate to ask. If you search AliExpress for EU-KFR266 you’ll get some hits, so you might succeed there. Pay attention to the components on the PCB, there are different versions on AliExpress.

Found some display units here:

Thanks for your participation! I wrote to this supplier on aliexpress, but they have only boards on the picture that same as mine (4 on the photo). Yes, based on your photos, the only visual difference is in the top bar. From the inside, my air conditioner looks just like yours, one to one. In the evening I will reach the internal board, examine it and compare it with yours. Thank you! I will try to negotiate with the service center and if it doesn’t work out, I’ll ask you for hel

Update from me, I compiled the mideahvac binary using ESPHome, just to be sure I edited the config to add the midea-climate-support repo. After uploading the binary I noticed that the log gets flooded with TX Queries. The blue light on my ESP-01 is constantly blinking. However:

I am able to control my AC Unit from Home Assistant, switching modes, setting the setpoint all works.

Two problems:
The indoor unit is beeping constantly, the frequency of the beep matches the frequency of the blinking ESP-01 LED. Its similar to the problem @yodi has, however I am still able to control the AC while its beeping constantly, but I am not able to turn the unit off! Not from Home Assistant nor with the IR Remote. When I disconnect the ESP from the indoor unit the IR remote is able to turn the unit off.

The logfile when controlling the unit looks like this:

[01:58:17][D][midea_ac:050]: TX: control
[01:58:17][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 02 40 01 63 00 7F 7F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D4 B7 
[01:58:18][W][midea_dongle:030]: RX: frame check failed!
[01:58:18][D][climate:010]: 'Werkkamer' - Setting
[01:58:18][D][climate:014]:   Mode: HEAT
[01:58:18][D][midea_ac:050]: TX: control
[01:58:18][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 02 40 01 83 00 7F 7F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B9 B2 
[01:58:19][W][midea_dongle:030]: RX: frame check failed!
[01:58:19][D][midea_ac:050]: TX: control
[01:58:19][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 02 40 01 83 00 7F 7F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B9 B2 
[01:58:20][W][midea_dongle:030]: RX: frame check failed!
[01:58:20][D][midea_ac:050]: TX: control
[01:58:20][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 02 40 01 83 00 7F 7F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B9 B2 

The logfile when doing nothing looks like this, both with unit turned off and unit running. When the unit is turned off it does not beep constantly, however the LED on the ESP is blinking.

[01:48:39][D][midea_ac:053]: TX: query
[01:48:39][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:40][D][midea_ac:053]: TX: query
[01:48:40][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:41][D][midea_ac:053]: TX: query
[01:48:41][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:42][D][midea_ac:053]: TX: query
[01:48:42][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:43][D][midea_ac:053]: TX: query
[01:48:43][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:44][D][midea_ac:053]: TX: query
[01:48:44][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:45][D][midea_ac:053]: TX: query
[01:48:45][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:46][D][midea_ac:053]: TX: query
[01:48:46][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:47][D][midea_ac:053]: TX: query
[01:48:47][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:48][D][midea_ac:053]: TX: query
[01:48:48][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 
[01:48:49][D][midea_ac:053]: TX: query
[01:48:49][D][midea_dongle:094]: TX: AA 22 AC 00 00 00 00 00 03 03 41 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 68 

and this goes on and on and on…

HA does not receive status updates. I can not see the temperature, it just shows zero degrees. I am not able to see the current mode. The climate card keeps looking like this:

Knipsel

@aceindy Do you have any idea what could cause this behaviour?

Here are some pictures:


@nvschilleman Hmm, i don’t think i can be of real help here, I have been monitoring the development closely, but was never deeply involved, as it was already in an almost finished state (and i am now working on my own pellet stove project)
So the only thing i can suggest is to ask on the original devs on Telegram…