Midea branded AC’s with ESPhome (no cloud)

I purchased a SLWF-01pro from smartlight.me and connected it to my Home Assistant as documented by them. It shows up in my Integrations under ESPHome and properly identifies itself as a climate entity and outdoor thermometer. All good so far.

However, it doesn’t show up on the actual ESPHome panel as something I can update or modify.

What’s the process for getting ESPHome to “adopt” it so it can manage it? Or should I, even?

1 Like

the esphome panel is only for programming, it doesn’t have any other purpose…
so, up to you….

You can always use the example config from the 1st post :wink:

I’ve also bought an SLWF-01pro from smartlight.me.
I want to reflash the esp12f chip but I don’t know how to do.

I have connected to ESPHome in home assistant but it’s undetected. Same things on windows. On the board there is two button (RES and FLH).
I’ve tried a lot of time but nothing happen

  1. Compile the bin’s using the ESPHome addon, and choose ‘manual download’; store the bin’s somewhere, power on your SLWF-01, and connect to it using it’s HotSpot, and upload the previously download bin file using it’s web insterface.
    image

  2. Obtain a USB Serial Adapter f.e. CH340G and wire it up to the SLWF-01, on ESPHome compile the binary and use ‘Plug into this computer’ to upload it through serial port

2 Likes

Oh! I’ve forgotten the OTA update through web interface. Thanks a lot :grin:

1 Like

I recently tried the OTA route but it did not work. I then made a quick programmer using a female USB connector board and a FTDI and simply plugged the dongle into the connector and could program it.

I don’t know why OTA did not work as the same bin file was used with ESPHome Flasher and the module booted just fine.

Hey ,

recently bought some heatpumps (3x A2A running,1x A2W is ordered, 1x A2W is planned).

Found some Modbus Protocoll description for my incoming HW-Unit:

The PCB offers Midea “standards”: XYE, X1X2, PQE besides an integrated Wifi module linked to the famous cloud.

I could imagine, this protocoll is more or similar for all monoblocs.

Some other intresting stuff i found:
My AC units use an “LNS” inteface (230V AC + Signal + Gnd) -
I found an “0-10V to LNS”-Interface, In the end this will mock an indoor unit.

Some AC indoor units also can be retrofitted with XYE & ON/OFF terminals by adding a connection board:

https://www.manualslib.com/manual/2054630/Midea-09.html?page=17#manual

Did you ever have any luck with this?

I too have been investigating trying to get some extra controls back to home assistant. I think ive established the only real way is via the Modbus RS485 connection on the back of the Remote Controller via the H1 and H2 terminals.

I’ve had a few tries and pulling some data from it via an ESP32Dev and RS485 module, but had no luck. I’ve ordered some 120Ohm resistors to put over as a termination end and ill try again.

1 Like

Did you have any luck with comms over the Modbus connection?

I was able to get a Modbus link working to a Pioneer (rebadged Midea - 18K BTU) concealed duct unit using a TTL-RS485 adapter on a ESP8266. I modified the code here: GitHub - rikman122/esp8266_midea_RS485 to work with my 485 adapter (it has auto sense T/R) and my unit, which (as far as I can tell) reports all temps as F.

Based on docs here: xye/xye: Reverse engineered information of protocol spoken on the XYE bus found on many AC indoor components of split VRF systems. Primary vendor seems to be Midea, but others vendors seem to sell rebanded versions (e.g. FrigoLine, Mundo Clima, Daikin, ...) - xye - Codeberg.org I am able to read T1 (intake air) T2 (indoor coil) and T4 (outdoor ambient), as well as fan/mode. However, I really wanted to be able to tap into some of the other settings displayed in diagnostic mode.

Does anyone know how to form a XYE/modbus query to enumerate more settings/sensors? I’ve searched everywhere for documentation, and while there are devices that map these XYE comms to more modbus registers, they don’t document the ‘secret sauce’ of the queries to the unit.

1 Like

Hello,
I have a Clivet heatpump Air to Water which is internally Midea. Im planning to use its Modbus terminals as some people mentioned above:


All the Modbus registers are listed in its Installation manual in Clivet’s page. I havent used ESPhome before and mostly have expirience with ESP32’s IDF stack which im gonna use(it has Modbus module). Just ordered this TTL to RS485 Converter 3.3V/5.0V module.
Could you please give me some advice because i read that some people are already playing with this? What is the voltage of the modbus - can i use the 3.3V signal?

I used that same 485 board to connect to the XYE terminals (proprietary Modbus wrapper protocol), and it worked great. The 3.3v was fine. 485 is a pretty robust standard that can handle like 12V max, >=1V differential signal. I measured the output of my transmitter at around 2.5V signals (on 3.3v power), so it was plenty.

I don’t have the H1/H2 terminals available on my unit. As I understand it, those are conventional modbus (RTU?), whereas the XYE is a poorly-documented (modbus-like) protocol on top of that. They sell units that convert from XYE->Modbus for my unit, but they don’t expose all the status registers (nor do they reveal the XYE translation.)

1 Like

Thanks! Im gonna use the 3V3 interface in this case. I havent used modbus yet but there are very good examples for esp-idf including multi-register requests.

Hello…

Just wanted to share that my mr cool 27k dualhead us mini split works like a champ with these home made dongles and esphome on them…to all out there who are afraid that regular usb does not fit into the strange plug…IT FITS…just needs some effort…worked totally fine with both of my units.
Used this how to and it is just straight forward and works

:rofl:

Does it mean just a small hammer, and all fits?

Nope regular pushing works…

Can anybody tell/show the wiring scheme for this? I have already burned one, so I’m trying not to repeat the magic

@tmsaavedra you have to provide a bit more info…
wiring what to what and why???

I put reply on the post but it no made the quote, sorry.

The help I need is about conecting the SWLF-01 to the programmer to flash it, I flashed it via OTA but can’t find it anywhere, the config is correct since it’s the same as other one I used on another dongle.