Midea branded AC’s with ESPhome (no cloud)

I think with my newly gained knowledge, I need to do further investigation. Unfortunately, the unit is mounted in a small house in the garden, which is not well insulated. This is why I am unsure whether the temperature was either 13°C or 19°C.

When I started the unit approximately 15 minutes earlier, it was 2°C inside, which is why my values indicate a rather cold environment.
I still haven’t installed the wired remote control - when I tested it, it was lying on a pile of chair cushions.

The reply of 0xC4 matches the reply of 0xC6. I am currently extending the dissector. I’ll create a new repository later where I will put my filtered packet dumps for your own research.

My ESP32 board has some electrical issues, which is why some frames may be corrupt. I will fix this before my next tests.


These frames are just 2 sequences behind each other (i just left the query/follow-me frames from the wall sensor out)

With this knowledge i now can letz the 0xc4 dissector also dissect the 0xc6 reply :slight_smile:

The 0xc6 frame has 2 variants i have seen. (it prefixes the temperature with 0x06 0x13 or 0x04 0x13)

Here is my raw data :slight_smile:
HVAC-shark-dumps/Midea-XYE/unsort at master · fabianschwamborn/HVAC-shark-dumps

Just guessing here, but the IR remote has 3 different ‘follow me’ commands. There’s a ‘start follow me mode’, ‘follow me temp update’, and ‘stop follow me mode’. The only practical difference between the first two are the ‘update’ doesn’t cause the unit to beep, as that would be annoying every 3 minutes.

Hello,
im ready with my esphome modbus board and am about to connect it to my midea clone(Clivet)


Should i use H1/H2 terminals or:

  • RS485 A+ → XT6 terminal A (pin 1)
  • RS485 B- → XT6 terminal B (pin 2)
  • Ground/shield → XT6 terminal E (pin 5)

For future reference if people already have a Midea Wifi Subassembly installed by default (which was the case for me) simple plug in the SLWF-01pro. This could also be done by the poster who made this tutorial. The soldering part of the female USB A is redundant.

You should use H1 and H2

1 Like

my idea was that the wire coming from the main control board spark plug might be suitable.

If we look at the CN1 connector, RX, TX, GND, +5V come to the display control board.

Using this pins level shifter board and ESP …

My Midea clone install Februar first week … and testing this solution!

Hello !

Display panel communication in CN1
4 pin (gnd, +5v, tx, rx) My clima Main panel Indoor unit CN18

See picture. Main panel communicate the display panel microcontroller RX, TX (RED draw the picture)

microcontroller comunnication the wifi modul RX TX, CN3 fake USB (Yellow draw the picture)

or wired controller not communication RX,TX (+ and - out the panel and back isolated 2 pin IR led… Work the cover reflect IR signal the normal IR receiver)

my question:

Main board (CN18) TX RX protocol???

Welcome @Akee

i think the short answer is: as far as i know nobody really looked into this communication channel and tracing of wires! (But these just exist on the newer high wall units, in cassette or duct systems, there is no equivalent and CN3 is directly wired to the main board)

On my unit the chain is XYE-Bus-Adapter (official multifunction board) >> R/T pin CN1 >> DisplayBoard-processor “itself”>> RX/TX(CN1) >> Wall-Unit Main board. (which means these pins can route all most commands to mainboard) The R/T pin is a bidirectional! interface pin with currently unknown protocol.

If you have not already read it: the old 90’s style remotes (pre-bus versions) where just wired remotes, that transmitted the ir signals over a wire, but were constantly powered with 5V (Send only, no return) CN2 may be such a “relict”

On the unit i have access to, i cannot hardwire a logic analyzer, but i think it is worth a look.
My guess is that the processor on the display board is just something like a packet router/filter that for some request/response-patterns writes the result to the display. (That may be why the"mute" function for follow-me is needed)

Best regards

Does anyone know where to get the midea 17222000A01170 module in the UK or EU?

image

@exciton
Thanks for share esphome/esphome/components/midea_xye at dev · exciton/esphome · GitHub

I have tested with my air cond., esp32 and TTL to RS485

I just wanted to give you some feedback for the project.
I also tried the original IR remote and the status of the air conditioner changes (seen on HA).
It does not read only the fan speed change, which remains on automatic.
In my case I tried to set a timer from the air conditioner and it is seen perfectly.
I do not have a correct return of the ‘Outside coil temp’ value.
Current always shows 255.
Automode does not work
If you need other tests let me know.

 [19:12:39][D][uart_debug:114]: <<< AA:C0:80:00:00:00:30:10:00:80:1A:53:4E:FF:46:FF:00:00:00:00:00:00:00:00:00:00:00:14:FF:FF:EF:55
[19:12:40][D][uart_debug:114]: >>> AA:C0:00:00:80:00:00:00:00:00:00:00:00:3F:81:55
[19:12:40][W][component:237]: Component midea_xye.climate took a long time for an operation (150 ms).
[19:12:40][W][component:238]: Components should block for at most 30 ms.

If you want to precisely figure out the Follow Me temperature, you could set up another board with an IR blaster and send a specific temperature (I believe your wall remote can receive IR commands directly?) rather than trying to determine the physical temp.

@exciton
midea_xye contains all the changes made on:

?
thanks

Thanks for testing - seems like you have it working the same as I do. Missing the “auto” feature, but that’s not really a big deal.

The code for midea_xye is completely different to the midea code - totally different interfaces.

Does the OSK302 (OSK105?) module supported to use with Home Assistant? FCC ID: 2AS2HMZNA21

In my MKG-V300C the PQE is not factory soldered and the modbus chip seems to be missing. Could you please share more information about how you managed to get it working via the XYE?

Did you manage to buy such a 5 wire to USB style adapter board?

Can you tell me how to use an external temperature sensor from the home assistant (indoor) to control the air conditioner?? Will I be able to control this thermostat through automation?

You should use the ‘follow-me’ option. That includes adding an IR-led to the esp module (it is described in the post above)

Yes…fully

Maybe I didn’t put it right, I want to use the air conditioner as a heat pump. The indoor unit will be missing, so I don’t need to monitor the temperature sensor that is located on the indoor unit, but it is this sensor that appears in the thermostat (climate: - platform: midea). That is, I need to control this thermostat using an external sensor.