New OH3 Binding - Midea Air Conditioning (LAN)

Another piece of news. Midea has apparently shutdown the MSmartHome Cloud. For new folks use the NetHome option for this OH binding. For current MSmart app users keep a record of your token and key. They will still work, but you won’t be able to update them. One reference from the HA “binding” for Midea. SmartHome cloud get_token is still broken · Issue #201 · mill1000/midea-msmart

1 Like

My efforts to get this binding (originally created and updated by others in this post) into the official openhab-addons is stalled. As noted above, it has been partially reviewed, but not yet approved. The release is here 4-23-2025

However, through the winter I did add a few new items. They work for me but could have issues in the “wild” :wink:.

  1. I added a thing configuration to update the token and key
    tokenkey 2025-04-23 152507
  2. From the Home Assistant python code, I added a java “get capabilities” command during initialization. True or False items were returned by the command. The Default label means that it wasn’t returned from the command but is the typical situation.
  3. Lastly, V3 devices are now automatically authenticated via the NetHome Plus cloud. Again thanks to the HA Midea repository. This means that you do not have to enter your cloud credentials in OH. You still need a cloud account to get your device an IP address on your local LAN, so it can be discovered.
1 Like

really cool that you are improving the binding: Out of curiosity: What are the biggest problems so that it’s unlikely that it will become an official binding?

My guess is reviewer time. I believe I have addressed all comments pending more feedback but haven’t heard anything since Feb 20. Last overall comment was Marked some previous comments as resolved. Found some new ones, but nothing big. Let's slowly continue and narrow the remaining issues down and fix them together.

Edit: Also the new stuff hasn’t been looked at, so there could be stuff there

Works without any issues so far (openHAB 5.0.M2).
Thx a lot :+1:

1 Like

Thanks. I would be curious to get a screen shot of your properties. You can block out the SN and SSID like I did above.

Sure (Kaisai KWX-09):

Thanks. Just like mine (Cooper&Hunter)

One more beta enhancement to the OH Midea java binding via the HA Midea python application. My capabilities did not include energy_bcd, however, when I added the energy polling command, I found I did get a KWH reading from my AC. That allowed me to test and integrate that feature. The updated jars for OH4 and OH5 are at the link above.

A couple of notes. I added channels for watts and amperes for completeness, but my device doesn’t provide those. I validated my AC used the BCD (Binary Coded Decimal) method, but in the HA version there are indications some ACs use an alternate energy byte reading method. There is a switch in the updated jar to use the other method (default is BCD). If you are getting results and they don’t look right (based on other energy data you may be collecting), you can switch to the other method. Lastly, I set the energy poll in minutes and to only run when the AC is on, to avoid a lot of unnecessary LAN traffic. It is disabled by default initially, too.

2 Likes