English | 简体中文
Control your Midea air conditioners via local area network.
- Automated device discover and configuration based HA config flow UI.
- Extra sensors and swithes.
- Synchronize status with the device by long TCP connection in time.
This component inspired from the repository at @mac-zhou which provides similar functionality for Midea air conditioners. This component include verbatim or adapted portions of the code from his great projects.
Thanks also to @NeoAcheron.
- Midea Air Conditioners (V2 or V3), type "AC"
Midea Air Conditioner Control Panels, type "CC"
Search 'Midea AC LAN' in HACS and install, or copy all files in custom_components/midea_ac_lan
from Latest Release to your /custom_components/midea_ac_lan
in Home Assistant manually. Restart HomeAssistant.
After installation, search and add component Midea AC LAN in HomeAssistant integrations page, If component can not found any devices, you can specify the IP address to add the device.
This component could auto-discover and list Midea M-Smart AC devices in network, select one and add it in. You could repeat the above action to add multiple devices.
Automatic configuration requires your air-conditioners and your Home Assistant must be in the same sub-network. Otherwise, devices cannot be auto-discovered. Check this by yourself.
If auto-discover could not work, you could add the device(s) manually with the following information.
- Device ID
- IP address
- Port (defualt 6444)
- Model (optional, default "unknown")
- Protocol version (2 or 3)
- Token
- Key
If ID/Token/key information was unknown, you could run the following commands in host.
pip3 install msmart
midea-discover
msmart from midea-msmart of @mac-zhou
Only one cliamate entity will be generated after configration. If you want to make the attributes of climate to extra sensor and switch entities, click CONFIGURE in Midea AC LAN integration card to choose (if your devices supported). All entities listed in Extra entities.
- Supports target temperature
- Supports run mode
- Supports fan mode
- Supports swing mode
- Supports auxiliary heating
EntityID | Class | Description |
---|---|---|
climate.{DEVICEID}_climate | Climate | Climate entity |
EntityID | Class | Description |
---|---|---|
sensor.{DEVICEID}_indoor_humidity | Sensor | Indoor humidity |
sensor.{DEVICEID}_indoor_temperature | Sensor | Indoor Temperature |
sensor.{DEVICEID}_outdoor_temperature | Sensor | Outdoor Temperature |
switch.{DEVICEID}_aux_heat | switch | Aux Heating |
switch.{DEVICEID}_breezyless | switch | Breezyless |
switch.{DEVICEID}_comfort_mode | switch | Comfort Mode |
switch.{DEVICEID}_dry | switch | Dry |
switch.{DEVICEID}_eco_mode | switch | ECO Mode |
switch.{DEVICEID}_indirect_wind | switch | Indirect Wind |
switch.{DEVICEID}_natural_wind | switch | Natural Wind |
switch.{DEVICEID}_night_light | switch | Night Light |
switch.{DEVICEID}_prompt_tone | switch | Prompt Tone |
switch.{DEVICEID}_screen_display | switch | Screen Display |
switch.{DEVICEID}_smart_eye | switch | Smart eye |
switch.{DEVICEID}_swing_horizontal | switch | Swing Horizontal |
switch.{DEVICEID}_swing_vertical | switch | Swing Vertical |
switch.{DEVICEID}_turbo_mode | switch | Turbo Mode |
following extra services will be made
Set fan speed of AC fan. Service data:
Name | Description |
---|---|
entity_id | The entity_id of cliamte entity. |
fan_speed | Range 1 to 100 or auto |
Example
service: midea_ac_lan.set_fan_speed
data:
entity_id: climate.XXXXXXXXXXXX_climate
fan_speed: auto
Set the attribute of AC. Service data:
Name | Description |
---|---|
entity_id | The entity_id of cliamte entity. |
attribute | "aux_heat" "breezyless" "comfort_mode" "dry" "eco_mode" "indirect_wind" "natural_wind" "night_light" "prompt_tone" "screen_display" "smart_eye" "swing_horizontal" "swing_vertical" "turbo_mode" |
value | true or false |
Example
service: midea_ac_lan.set_attribute
data:
entity_id: climate.XXXXXXXXXXXX_climate
attribute: eco_mode
value: true
Turn on the debug log out,config in configuration.yaml
logger:
default: warn
logs:
custom_components.midea_ac_lan: debug