In Home Assistant (HA) 2025.12.2, the most stable and feature-complete way to integrate Midea devices is still the community integration using the Local LAN approach. Although Midea changed its cloud policies between 2024 and 2025, the local protocol has remained usable.

Below is a detailed, beginner-friendly tutorial verified on Home Assistant 2025.12.2, using the widely recommended Midea AC LAN integration.


Core solution choice

  • Recommended solution: install Midea AC LAN via HACS (author: wuwentao).
  • Advantages:
  • Fully local control: after setup it works even without internet, with extremely fast response.
  • Full feature set: supports air conditioners, dehumidifiers, fans, water heaters and more, including advanced modes such as swing, dry and ECO.
  • Automatic token retrieval: the newer version of the integration can obtain the device Key/Token automatically by logging in with your account, with no tedious packet capturing.

Preparation

  • The Midea device is already on the network: make sure your Midea device is connected to your home Wi-Fi.
  • Strongly recommended: use the Meiju or NetHome Plus app to set up the device network. If the device is new, try NetHome Plus (the international version) first, because it is more friendly to third-party token extraction.

Home Assistant already has HACS installed:

  • If you have not installed HACS (Home Assistant Community Store) yet, refer to the official documentation to install it first. It is an essential store for integrating unofficial devices.

Detailed step-by-step tutorial

Step 1: Download the integration in HACS

  • Open Home Assistant and click HACS in the left sidebar.
  • Click Integrations.
  • Click + Explore & Download Repositories in the bottom right corner.
  • Type Midea AC LAN in the search box.
  • Find Midea AC LAN by wuwentao and click into it.
  • Note: make sure the author is wuwentao; this is currently the most actively maintained version.

Click Download in the bottom right corner. When the download finishes, the system will prompt you to restart Home Assistant.

Go to Settings -> System -> the power button in the top right corner -> Restart Home Assistant.

Step 2: Add the integration and configure it

After the restart completes, let us start adding devices.

  • Click Settings -> Devices & Services in the left sidebar.
  • Click + Add Integration in the bottom right corner.
  • Search for Midea AC LAN and click it.
  • Choose the configuration mode:
  • You will see several options here; usually choose “Auto” (automatic scan) or “Add device by account”.
  • Recommended for beginners: choose “Add device by account”. This is the simplest way to obtain a token in 2025 and does not require manual packet capturing.

Step 3: Automatic token retrieval and adding devices

Midea devices require a Token and Key for local LAN control, so this step is critical.

  • In the account login dialog that appears:
  • Account Type: if you use “Meiju”, select Meiju; if you use “NetHome Plus”, select NetHome Plus.
  • Username/Password: enter the account and password of your app.

Click Submit.

The integration will automatically connect to the Midea cloud and retrieve the IP address, ID, Token and Key of all devices bound to your account.

After a successful retrieval, the list will show the discovered devices. Check the devices you want to add and click submit.

Important note: once a device is added successfully, the integration switches to LAN mode for control. At that point, even if you change your app password or your home loses its internet connection, you can still control the device as long as HA and the air conditioner are on the same router.


Advanced configuration and FAQ

1. Entity naming and cards

After adding successfully, you will see a standard climate card (Climate Entity) on the Overview page.

  • Function test: try clicking the switch and adjusting the temperature. You should find that the response is almost instant, faster than the app itself.
  • Advanced attributes: click the three dots in the top right corner of the card (or click the entity icon) to see more control options, such as Swing, Fan Mode and Preset (such as ECO/Boost).

2. What if automatic discovery fails? (Manual IP method)

If the device cannot be discovered through the account either, it may be on a different subnet (VLAN), or UDP broadcast may be blocked by the router.

  • Find the IP address of the Midea device in your router admin panel (it is recommended to assign a static IP to the Midea device in the router to prevent IP changes from causing disconnection).
  • When adding the integration, choose “Add device manually”.
  • Enter the IP address. At this point you may need to fill in the Token and Key manually.
  • Alternative way to obtain the token: if the integration cannot retrieve it automatically, use the desktop Python tool msmart-ng.
  • Run in your computer terminal: pip install msmart-ng, then run msmart-ng discover. It will scan the local network and try to calculate the Token.

3. Why are some sensors not displayed?

By default, for performance reasons, some non-core sensors (such as outdoor temperature and power statistics) may be disabled.

  • Go to Settings -> Devices & Services -> click Midea AC LAN -> click the corresponding device.
  • In the “entities” list, click those greyed-out entities and enable them in the settings; wait a moment and the data will appear.

4. About Matter (new devices only)

If your device is a high-end model produced after 2024 (such as the new Midea U window unit) with a Matter logo printed on the box.

  • You can scan the QR code on the device body directly through HA’s Matter (BETA) integration.
  • Drawback: the Matter protocol’s support for air conditioners is currently fairly basic and may not control features such as “anti-direct-blow” or “self-cleaning”. If you need those features, stick with the LAN solution above.

Summary

For HA users on version 2025.12.2, HACS + Midea AC LAN (wuwentao version) remains the best answer. It avoids the instability of the Midea cloud and achieves fully local control, making it the most “perfect” integration method today.

相关新闻

cloud@haiots.com

QQ
微信