From 0c4b6b5e0d4ef5d2fdaafe5da623a94ddc09db1c Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Fri, 26 Dec 2025 22:49:59 +0800 Subject: [PATCH] feat: add device mapping for T0xFA(5600119Z) * Device type: T0xFA, Sn8: 5600119Z, model: AAF10MR. --- .../midea_auto_cloud/device_mapping/T0xFA.py | 40 +++++++++++++++++++ .../midea_auto_cloud/translations/en.json | 3 ++ .../translations/zh-Hans.json | 3 ++ 3 files changed, 46 insertions(+) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xFA.py b/custom_components/midea_auto_cloud/device_mapping/T0xFA.py index 1d9c925..2df5ac5 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xFA.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xFA.py @@ -205,5 +205,45 @@ DEVICE_MAPPING = { } } } + }, + "5600119Z": { + "rationale": ["off", "on"], + "queries": [{}], + "centralized": [], + "entities": { + Platform.SWITCH: { + "display_on_off": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": ["on", "off"], + "translation_key": "screen_close", + }, + "humidify": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": ["off", "1"], + }, + "waterions": { + "device_class": SwitchDeviceClass.SWITCH, + "translation_key": "anion", + } + }, + Platform.FAN: { + "fan": { + "power": "power", + "speeds": list({"gear": value + 1} for value in range(0, 3)), + "oscillate": "swing", + "preset_modes": { + "normal": {"mode": "normal"}, + "sleep": {"mode": "sleep"}, + "baby": {"mode": "baby"} + } + } + }, + Platform.SENSOR: { + "water_feedback": { + "device_class": SensorDeviceClass.ENUM, + "state_class": SensorStateClass.MEASUREMENT + } + } + } } } diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index 93a4cb7..559a767 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -2733,6 +2733,9 @@ "function_zone_power": { "name": "Function Zone Power" }, + "humidify": { + "name": "Cool Wind" + }, "humidify_power": { "name": "Humidify Power" }, diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 5d69e2c..1f79e36 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -2833,6 +2833,9 @@ "function_zone_power": { "name": "功能区电源" }, + "humidify": { + "name": "清凉风" + }, "humidify_power": { "name": "加湿电源" },