This is a custom component for Home Assistant to integrate the Midea Air Conditioners via the Local area network.
Tested with hass version 0.110.2
Version >= 0.1.27, the device naming rules have changed.
Search the HACS Store for midea_ac
- Clone this repo
- Place the
custom_components/midea_ac
folder into yourcustom_components
folder
Configuration variables:
key | description | example |
---|---|---|
platform (Required) | The platform name. | midea_ac |
host (Required) | Midea AC Device's IP Address. | 192.168.1.100 |
id (Required) | Midea AC Device's applianceId. | 123456789012345 |
token (Optional) | Midea AC Device's token, V3 is required. | ACEDDA53831AE5DC...(Length 128) |
k1 (Optional) | Midea AC Device's k1, V3 is required. | CFFA10FC...(Length 64) |
temp_step (Optional) | Step size for temperature set point, default is 1.0 | 0.5 |
prompt_tone (Optional) | Prompt Tone, default is true. | false |
keep_last_known_online_state (Optional) | Set this to true if you see too many unavailable in log. |
true |
use_fan_only_workaround (Optional) | Set this to true if you need to turn off device updates because they turn device on and to fan_only | true |
Example configuration.yaml:
climate:
- platform: midea_ac
host: 192.168.1.100
id: 123456789012345
# v3 need token and id
# token: ACEDDA53831AE5DC...(Length 128)
# k1: CFFA10FC...(Length 64)
- Use command
midea-discover
to discover midea devices on the host in the same LAN. Note: This component only supports devices with model 0xac (air conditioner) and wordssupported
in the output. V3(8370) need to get token and k1.pip3 install msmart midea-discover
- If your device's version is V2, please ignore.
- Use Android phone or emulator (which can use bridge, such as LDPlayer)
must be in the same LAN as the device
. - If you are in China, please install meiju-gettoken-only-china.apk.
- If you are OverSea(Outside China), please install Midea-Air-gettoken-only-oversea.apk.
- I just changed the log level of APP, you can modify it yourself.
- You may need to be patient, it may take 5-30 minutes, you can reopen or relogin APP.
- Use
adb
,filter from logcat: shell:cmd:adb logcat | grep doKeyAgree
adb logcat | findstr doKeyAgree
- via Paypal
- via Bitcoin (3GAvud4ZcppF5xeTPEqF9FcX2buvTsi2Hy)
- via AliPay(支付宝)
- via WeChatPay(微信)
Your donation will make me work better for this project.