Midea Air Conditioner Api 'link' -
| Function | Endpoint (China region) | Method | |----------|------------------------|--------| | Login | https://mapp.appsmidea.com/v1/user/login | POST | | Device list | https://mapp.appsmidea.com/v1/appliance/user/list/get | GET | | Token refresh | https://mapp.appsmidea.com/v1/user/token/refresh | POST |
Assuming you have extracted your device’s deviceId and token (via cloud discovery first), controlling the AC locally is trivial: midea air conditioner api
Using an unofficial API comes with risks. | Function | Endpoint (China region) | Method
Midea air conditioners, sold under brands including Midea, Prodigy, Comfee, and Toshiba, rely on a cloud-based API for mobile app control. However, privacy concerns, latency, and internet dependency have driven developers to reverse-engineer the protocol for local LAN control. This paper documents the Midea API stack—from the cloud authentication layer to the local UDP/TCP messaging protocol—and presents a reference for implementing offline control. This paper documents the Midea API stack—from the
Whether you choose the convenience of the cloud API or the speed of the LAN protocol, understanding this API transforms your Midea AC from a simple appliance into a fully programmable component of your smart home intelligence. Start with the midea-discover tool, pull your token, and write your first Python script to turn on the AC at exactly 22.5°C—all without ever touching the remote.
ac = AirConditioner( device_ip="192.168.1.100", device_id="1234567890", lan_key="your_lan_key_from_cloud" )