Skip to content

Midea AC Binding ​

This binding integrates Air Conditioners (type AC) and Dehumidifiers that use the Midea protocol. Midea is an OEM for many brands.

A Midea device is likely supported if it uses one of the following Android apps or it's iOS equivalent.

Cloud ProviderCommentOptionsDefault
Midea Air (com.midea.aircondition.obm)Note: Reports that this cloud is offlineMidea Air
NetHome Plus (com.midea.aircondition)Note: Reports that this cloud is offlineNetHome Plus
SmartHome (com.midea.ai.overseas)Full Support of key and token updatesSmartHomeYes

Notes: The Midea device must already be set-up with the app on your WiFi network with a fixed IP Address to be discovered. After discovery by openHAB, if not using the app, device access to the internet is not needed.

Supported Things ​

This binding supports Thing types (Air Conditioner) ac and (Dehumidifier) a1

Discovery ​

Once the thing is on your network, activating the Inbox scan with this binding will send an IP broadcast message. Every responding unit gets added to the Inbox. When adding each thing, the required parameters will be populated with discovered values. For a V.3 device, enter your cloud provider, email and password. There is no longer a default option. Save your token and key in a safe place in case a cloud is shutdown. They do not expire.

Binding Configuration ​

No binding configuration is required.

Thing Configuration ​

ParameterRequired ?CommentDefaultAdvanced
ipAddressYesIP Address of the device.
ipPortYesIP port of the device6444Yes
deviceIdYesID of the device. Leave 0 to do ID discovery.0Yes
cloudYes for V.3Your Cloud Provider name (or default).SmartHome
emailYes for V.3Email for your cloud account.
passwordYes for V.3Password for your cloud account.
tokenYes for V.3Secret Token - Retrieved from cloudYes
keyYes for V.3Secret Key - Retrieved from cloudYes
pollingTimeYesFrequency to Poll AC Status in seconds. Minimum is 30.60 seconds
keyTokenUpdateNoFrequency to update key-token from cloud in hours. NOT ADVISED0 hours (disabled)Yes
energyPollYesFrequency to poll energy data (if supported)0 minutes (disabled)
timeoutYesSocket connection timeout in seconds. Min. is 2, max. 10.4 secondsYes
promptToneYes"Ding" tone when command is received and executed.false
versionYesVersion 3 has token, key and cloud requirements.3Yes
energyDecodeYesBinary Coded Decimal (BCD) = true. BigEndian = false.trueYes
deviceTypeYes(Air Conditioner) ac and (Dehumidifier) a1acYes
tokenKeyMethodYesIf Handshake error at first, try LittleEndian, refresh token & keyBigEndianYes

Channels ​

Following channels are available: Note: After discovery, the thing properties dropdown on the Thing UI page will show what channels and modes your device supports.

ChannelTypeDescriptionRead onlyAdvancedACDH
powerSwitchTurn the Thing on or off.XX
target-temperatureNumber:TemperatureTarget temperature for AC.X
operational-modeStringAC Operational modes: AUTO, COOL, DRY, HEAT, FAN ONLYX
dehumidifier-modeStringDehumidifier Operational modes: AUTO, MANUAL, CONTINUOUS, CLOTHES DRY, SHOE DRYX
fan-speedStringFan speeds: SILENT, LOW, MEDIUM, HIGH, FULL, AUTO. Not all modes supported by all units.X
dh-fan-speedStringFan speeds: OFF (turns off), LOWEST, LOW, MEDIUM, HIGH, AUTO.X
swing-modeStringSwing mode: OFF, VERTICAL, HORIZONTAL, BOTH. Not all modes supported by all units.X
dehumidifier-swingSwitchTurns Dehumidifier Swing mode On or OffX
dh-tank-setpointNumberDehumidifier Tank Setpoint 25%, 50%, 75%, 100%X
dehumidifier-tankNumberDehumidifier Tank LevelYesX
eco-modeSwitchEco mode - Cool only (Temperature is set to 24 C (75 F) and fan on AUTO)X
turbo-modeSwitchTurbo mode, "Boost" in Midea Air app, long press "+" on IR Remote Controller. COOL and HEAT only.X
sleep-functionSwitchSleep function ("Moon with a star" icon on IR Remote Controller).X
indoor-temperatureNumber:TemperatureIndoor temperature measured in the room, where internal unit is installed.YesXX
outdoor-temperatureNumber:TemperatureOutdoor temperature by external unit. Some units do not report reading when off.YesX
temperature-unitSwitchSets the LED display on the evaporator to Fahrenheit (true) or Celsius (false).YesX
on-timerStringSets the future time to turn on the Device.YesXX
off-timerStringSets the future time to turn off the Device.YesXX
screen-displaySwitchIf device supports across LAN, turns off the LED display.YesX
maximum-humidityNumberDehumidifier control point, AC If device supports in DRY modeXX
humidityNumberIf device supports, the indoor room humidity.YesYesXX
energy-consumptionNumberIf device supports, cumulative Kilowatt-Hours usageYesYesX
current-drawNumberIf device supports, instantaneous amperage usageYesYesX
power-consumptionNumberIf device supports, instantaneous wattage readingYesYesX
appliance-errorSwitchIf device supports, appliance error notificationYesYesX
filter-statusSwitchIf device supports, notification that filter needs cleaningYesYesX
auxiliary-heatSwitchIf device supports, auxiliary heat (On or Off)YesYesX
child-lockSwitchIf device supports, Child Lock (On or Off)YesYesX
anionSwitchIf device supports, Anion (On or Off)YesYesX

Examples ​

demo.things Examples ​

dsl
Thing mideaac:ac:mideaac "myAC" @ "Room" [ ipAddress="192.168.1.200", ipPort=6444, deviceId="deviceId", cloud="your cloud (e.g SmartHome)", email="yourclouduser@email.com", password="yourcloudpassword", token="token", key ="key", pollingTime = 60, keyTokenUpdate = 0, energyPoll = 0, timeout=4, promptTone="false", version="3", energyDecode="true", deviceType="ac", tokenKeyMethod="BigEndian"] 
Thing mideaac:a1:mideaac "myDehumidifier" @ "Room" [ ipAddress="192.168.1.200", ipPort=6444, deviceId="deviceId", cloud="your cloud (e.g SmartHome)", email="yourclouduser@email.com", password="yourcloudpassword", token="token", key ="key", pollingTime = 60, keyTokenUpdate = 0, energyPoll = 0, timeout=4, promptTone="false", version="3", deviceType="a1", tokenKeyMethod="BigEndian"]

demo.items AC Example ​

dsl
Switch power "Power"                                                        { channel="mideaac:ac:air_conditioner:power" }
Number:Temperature target_temperature "Target Temperature [%.1f °F]"        { channel="mideaac:ac:air_conditioner:target-temperature" }
String operational_mode "Operational Mode"                                  { channel="mideaac:ac:air_conditioner:operational-mode" }
String fan_speed "Fan Speed"                                                { channel="mideaac:ac:air_conditioner:fan-speed" }
String swing_mode "Swing Mode"                                              { channel="mideaac:ac:air_conditioner:swing-mode" }
Number:Temperature indoor_temperature "Indoor Temperature [%.1f °F]"        { channel="mideaac:ac:air_conditioner:indoor-temperature" }
Switch eco_mode "Eco Mode"                                                  { channel="mideaac:ac:air_conditioner:eco-mode" }
Switch turbo_mode "Turbo Mode"                                              { channel="mideaac:ac:air_conditioner:turbo-mode" }
Switch sleep_function "Sleep function"                                      { channel="mideaac:ac:air_conditioner:sleep-function" }
Switch temperature_unit "Fahrenheit or Celsius"                             { channel="mideaac:ac:air_conditioner:temperature-unit" }

demo.items Dehumidifier Example ​

dsl
Switch power "Power"                                                        { channel="mideaac:a1:dehumidifier:power" }
Number maximum_humidity "Maximum Humidity"                                  { channel="mideaac:a1:dehumidifier:maximum-humidity" }
String dehumidifier_mode "Dehumidifier Mode"                                { channel="mideaac:a1:dehumidifier:dehumidifier-mode" }
String dh_fan_speed "Dehumidifier Fan Speed"                                { channel="mideaac:a1:dehumidifier:dh-fan-speed" }
Switch dehumidifier_swing "Dehumidifier Swing Mode"                         { channel="mideaac:a1:dehumidifier:dehumidifier-swing" }
Number:Temperature indoor_temperature "Indoor Temperature [%.1f °F]"        { channel="mideaac:a1:dehumidifier:indoor-temperature" }
Number humidity "Humidity in Room"                                          { channel="mideaac:a1:dehumidifier:humidity" }

demo.sitemap AC Example ​

dsl
sitemap midea label="Midea AC"{
    Frame label="AC Unit" {
        Text item=outdoor_temperature label="Outdoor Temperature [%.1f °F]"
        Text item=indoor_temperature label="Indoor Temperature [%.1f °F]"
        Setpoint item=target_temperature label="Target Temperature [%.1f °F]" minValue=62.0 maxValue=86 step=1.0
        Switch item=power label="Midea AC Power"
        Switch item=temperature_unit label= "Temp Unit" mappings=[ON="Fahrenheit", OFF="Celsius"]
        Selection item=fan_speed label="Midea AC Fan Speed"
        Selection item=operational_mode label="Midea AC Mode"
        Selection item=swing_mode label="Midea AC Louver Swing Mode"
    }
}