Skip to the content
2 layers41.5 × 22 mmTelemetry module, the printed circuit board in 3D

ESPHome component to feed test-port telemetry from Midea mini-splits and centrally ducted units into Home Assistant. No Home Assistant? It works standalone too: the dongle serves its own web dashboard and JSON API, with an optional InfluxDB + Grafana stack for long-term history.

Size
41.5 × 22 mm
Copper layers
2
Thickness
1.6 mm
Parts
8
Nets
21
Pads
36
Tracks, vias
48, 2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
19 Jul 2026
Updated
2 Nov 2026

Overview

Telemetry module is an open-source printed circuit board by fmck3516, from the fmck3516/midea-telemetry-esphome repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 41.5 × 22 mm with 8 parts on 21 nets, routed with 48 tracks and 2 vias.

It belongs with the home automation and IoT boards and the ESP32 boards of this library.

README

README.md

midea-telemetry-esphome

An ESPHome component to feed test-port telemetry from Midea mini-splits and centrally ducted units into Home Assistant. No Home Assistant? It works standalone too: the dongle serves its own web dashboard and JSON API, with an optional InfluxDB + Grafana stack for long-term history.

It supports a variety of brands including MRCOOL, Cooper&Hunter, Pioneer, and Senville.

Home Assistant Dashboard

Support

Please use GitHub Issues for bug reports and feature requests. For questions and general discussion, join the Home Assistant Community thread. I'm active there.

Compatibility

The dongle has been tested successfully with the following outdoor units:

BrandOutdoor ModelsType
MRCOOLDIY-12-HP-C-115C25single-zone mini-split
Cooper&HunterCH-HPR06F9-230VO, CH-N36LCU-230VOsingle-zone mini-split
SenvilleSENDC-36-HF-OGcentrally ducted unit
PioneerYN018GMFI20RPDsingle-zone mini-split
ACiQES-48Z-M6Cmulti-zone mini-split

Since Midea-made mini-splits and centrally ducted units are very similar across brands, many other units from brands like MRCOOL, Cooper&Hunter, Senville, Pioneer, Blueridge, etc. are supported as well. To confirm, look for a test port (a 4-pin JST connector labeled TEST) on your unit's wiring diagram or on the outdoor unit's control or auxiliary board.

Multi-zone units: the dongle runs on multi-zone systems, but four sensors (T1, T2, TT, Pr) have come back empty on the ACiQ multi-zone unit.

Hardware

All you need is a dual-core ESP32 and a level shifter. A dual core is required because the bus bit-banging runs in a dedicated FreeRTOS task. A full request/response cycle keeps the bus busy for ~380 ms, far too long to run on the main loop.

Recommended hardware:

I used the following connector kits, but you can get away with a single 4-pin male JST-XH connector:

PCB & Enclosure

The KiCad project, schematic, and Gerber files live in pcb/ - a 2-layer board, 41.5 × 22 mm, 1.6 mm thick, with four M2 mounting holes. You solder in just three parts - the ODU connector, the level-shifter module, and the XIAO - and that's the whole build. FreeCAD sources plus STL and 3MF exports for the 3D-printable enclosure are in enclosure/.

PCB (top)PCB (bottom)
TopBottom
Assembled dongleEnclosure
PrototypeEnclosure

I've added a jumper that ties the test port's +5V to the XIAO's 5V pin. Use the jumper to run the board straight off the ODU with no USB cable. Leave it off if the board is connected to USB. I also recommend the use of a USB isolator since ground on the test port is not referenced to earth.

Safety

The outdoor unit runs on mains voltage, and internal capacitors can retain a dangerous charge after being unplugged. Always

  • turn off the breaker,
  • pull the disconnect, and
  • wait several minutes and/or verify capacitors are discharged

before performing the installation. Wear appropriate PPE. Consult a qualified electrician when in doubt.

Installation

(See Safety first if you're jumping straight to this section.)

Remove the top panel of the ODU. You'll see the control board. Remove the screws securing the control board to the ODU, then detach the cables from the cable clamps so you can lift the board for access — there's no need to unplug the cables themselves. The test port on my units is located at the front of the board. Plug in the dongle, with the red wire facing toward you. Reattach the cables to the cable clamps and secure the board back to the ODU. There should be enough clearance to tuck the dongle into the service panel — this lets you access the dongle later without needing to remove the control board again. Reinstall the top panel.

Control boardTest port
Install 1/4Install 2/4
Dongle plugged inDongle tucked into service panel
Install 3/4Install 4/4

For a visual walkthrough, see this installation video.

First use

Upon first start, the dongle brings up a temporary WiFi hotspot so you can connect it to your WiFi network. Join the midea-telemetry-esphome network (password midea-telemetry-esphome) and provide your WiFi network's SSID and password in the popup that appears. Once connected, the dongle serves a webserver at http://midea-telemetry.local (useful if you don't run Home Assistant), and Home Assistant automatically detects it as a new ESPHome device.

WiFi hotspotWiFi setup
HotspotWi-Fi settings
On-board webserverHome Assistant auto-discovery
WebserverDevice auto discovery

Configuration

See example_midea_telemetry.yaml for a complete configuration with every supported sensor. That file uses a local components: source, so it's flashable straight from a checkout of this repo; to pull the component remotely instead, switch the source to github://fmck3516/midea-telemetry-esphome.

Flashing

Flash your ESP32 with esphome. On macOS:

sh
brew install esphome
esphome run example_midea_telemetry.yaml

Supported Sensors

The following sensors are currently supported. Code is the two-letter parameter code the Midea service manuals use for the same value, so a reading here can be matched against the one the unit shows on its own diagnostic display; — means the manuals define no code for that value.

CodeNameUnit
TTindoor_setpoint°C
T1indoor_ambient_temperature°C
T2indoor_coil_temperature°C
T3outdoor_coil_temperature°C
T4outdoor_ambient_temperature°C
TPdischarge_temperature°C
—ipm_temperature°C
—operating_moderaw
oTcompressor_frequency_indoor_targetHz
FTcompressor_frequency_outdoor_targetHz
Frcompressor_frequency_actual_intHz
Frcompressor_frequency_actual_floatHz
—compressor_frequency_outdoor_controlHz
Proutdoor_fan_speedRPM
Lreev_stepsraw
dLcurrent_drawA
Acinput_voltageV
Uodc_bus_voltageV
—error_code_1bit mask for E3, E0, P8, Eb, P6, PA, L3, L0
—error_code_2bit mask for E60, E61, L2, E2, E1, L1, P90, P91
—error_code_3bit mask for E80, E81, E1, E83, P0, P1, E5, P8
—error_code_4bit mask for P4, P6, PA, L5, L3, L2, E7

FRAME-BYTES.md documents each sensor in great detail.

JSON endpoint

Add expose_json_endpoint: true to serve all mapped sensors and the underlying raw data as JSON. It needs the web_server component:

yaml
web_server:
  port: 80

midea_telemetry:
  clk_pin: GPIO3
  dat_pin: GPIO2
  expose_json_endpoint: true

The endpoint is served at /json (e.g. http://midea-telemetry.local/json), independent of Home Assistant. This is useful for reverse engineering, scripting, and for using the device without Home Assistant.

Frame log

Add log_frames: true to log every request sent to the ODU and every response received. The lines show up in the ESPHome dashboard's log view (and in esphome logs):

yaml
midea_telemetry:
  clk_pin: GPIO3
  dat_pin: GPIO2
  log_frames: true
text
[17:56:13][D][midea_telemetry:300]: tx=AA000000000000000056
[17:56:13][D][midea_telemetry:319]: rx=55006D457671401F03B0   checksum ok
[17:56:14][D][midea_telemetry:300]: tx=AA010000000000000055
[17:56:14][D][midea_telemetry:319]: rx=55016D457671401F03B0   checksum error
[17:56:14][D][midea_telemetry:300]: tx=AA020000000000FF0055
[17:56:14][D][midea_telemetry:316]: rx=                       no response

Each response is tagged checksum ok, checksum error, bad header (checksum fine, but not a 0x55 frame of a known type), or no response (the ODU didn't answer, so the request is retried). The lines are logged at DEBUG, the logger's default level; if you've set logger: level: to INFO or lower, they won't appear. Leave the option off when you're not using it: it adds about five log lines per second.

Long-term history (InfluxDB + Grafana)

For a permanent, Home-Assistant-independent history, influxdb-grafana/ provides a ready-to-run Docker stack: Telegraf polls each dongle's /json endpoint and stores the raw frame bytes in InfluxDB v2, and Grafana decodes them into a provisioned dashboard. See influxdb-grafana/README.md.

Grafana Dashboard

Prior Art

I've documented the test-port protocol in great detail on Medium: Reverse Engineering Midea's ODU Diagnostic Port. The firmware in this repository is based on those findings. Start there if you want to understand the protocol; the byte mappings and conversion formulas in the Supported Sensors table come straight from it.

Warranty

This is a hobby project. I've permanently installed the telemetry module on all of my units without any problems. That said, use it at your own risk. I do not assume any liability if it causes damage to your equipment. See LICENSE for additional information.

Disclaimer

Midea is a trademark of Midea Group. This is an independent, unofficial hobby project and is not affiliated with, authorized, endorsed by, or sponsored by Midea. The name is used only to describe which hardware the project interoperates with. All product names and trademarks are the property of their respective owners.

Parts

8
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
15V-3.3V Level Shiftertelemetry-module:Module_LevelShifter_4ch_2x06_P2.54mm_RM10.16J3
1ODU 5V power jumperConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1ODU Test Porttelemetry-module:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ1
1XIAO ESP32S3telemetry-module:Module_Seeed_XIAO_2x07_P2.54mm_RM15.24J4

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    8 parts1kGPL-3.0
  • 2 layers52 × 12.6 mmUSB, the printed circuit board in 3D

    USB

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    8 parts960Apache-2.0
  • 2 layers87.5 × 48.5 mm7 input macropad, the printed circuit board in 3D

    7 input macropad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    8 parts915
  • 2 layers36.2 × 63.1 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    PCB4-PWR BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    8 parts578Apache-2.0

Questions

How big is the Telemetry module PCB?

It measures 41.5 × 22 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Telemetry module use?

8 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Telemetry module KiCad files?

From the fmck3516/midea-telemetry-esphome repository on GitHub, at the commit this page was made from: the board is pcb/telemetry-module.kicad_pcb and its schematic pcb/telemetry-module.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Telemetry module design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).