Analysis updated 2026-05-18
Control a Midea-made air conditioner, sold under any of dozens of brand names, from Home Assistant.
Automate AC presets like eco, sleep, or boost mode based on other Home Assistant triggers.
Monitor energy and power usage sensors exposed by a supported air conditioner.
Set up a device manually with its token and key instead of using Midea's cloud discovery.
| cjay42/midea-ac-py | 2arons/llm-cli | abe238/claude-video-plus | |
|---|---|---|---|
| Stars | 11 | 11 | 11 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | easy | easy |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | general | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Newer V3 devices need a one-time cloud connection during setup to fetch a token and key.
This is a Home Assistant integration that lets you control Midea air conditioners, and the many other brands Midea manufactures under license, directly over your local network rather than through the internet. Midea makes air conditioning units sold under dozens of other names, including Carrier, Samsung, Toshiba, LG, Comfee, and many more, so a device sold under a completely different brand may still work here if it uses one of a handful of specific companion apps. Only air conditioner type devices are supported, not other kinds of Midea appliances. Control happens locally, so no ongoing internet connection is needed once a device is set up. The one exception is newer devices, referred to as V3 devices, which need to reach Midea's cloud service once, during initial discovery, to obtain a security token and key. After that first setup, the saved token and key are enough, and no further cloud connection is required. Anyone uncomfortable with that step can instead get the token and key themselves using a separate command line tool and their own account. Once connected, the integration automatically figures out which features a given device actually supports and only shows those in Home Assistant, rather than presenting options that would not work. Depending on the device, this can include sleep, eco, boost, and away presets, control of the unit's display, error codes reported as an attribute, energy and power usage sensors, an air purifier toggle, filter alerts, custom fan speeds, humidity sensors and targets, swing angle control, and various other manufacturer specific modes. The project has been translated into more than twenty languages by contributors. Installation is normally done through HACS, a Home Assistant add-on manager, by searching for Midea Smart AC, though it can also be installed manually by copying the integration's folder into Home Assistant's custom components directory and restarting. Setup then happens through the graphical interface, either by letting Home Assistant automatically discover devices on the network or by entering a device's ID, IP address, and, for V3 devices, its token and key by hand. A number of extra options exist per device to fine tune behavior, such as reversing swing direction, adjusting temperature step size, and limiting how long a network connection stays open before reconnecting.
A Home Assistant integration for controlling Midea-made air conditioners, sold under dozens of brand names, over the local network without needing the cloud.
Mainly Python. The stack also includes Python, Home Assistant, HACS.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly general.
This repo across BitVibe Labs
Verify against the repo before relying on details.