From 77f8e593589ede5ba451b79dbc55446cacfcffd6 Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Sat, 31 Jan 2026 14:00:16 +0800 Subject: [PATCH] feat: update device mapping for T0xFD(202Z219V) --- .../midea_auto_cloud/device_mapping/T0xFD.py | 51 ++++++++++++++++++- .../translations/zh-Hans.json | 3 +- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xFD.py b/custom_components/midea_auto_cloud/device_mapping/T0xFD.py index 507e4bf..788937f 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xFD.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xFD.py @@ -243,5 +243,54 @@ DEVICE_MAPPING = { } } } + }, + "202Z219V": { + "rationale": ["off", "on"], + "queries": [{}], + "centralized": [], + "entities": { + Platform.SWITCH: { + "power": { + "device_class": SwitchDeviceClass.SWITCH, + }, + "bright_led": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": ["exit", "light"], + "translation_key": "light_mode" + + } + }, + Platform.SELECT: { + "humidity": { + "options": { + "40%": {"humidity": 40}, + "45%": {"humidity": 45}, + "50%": {"humidity": 50}, + "55%": {"humidity": 55}, + "60%": {"humidity": 60} + }, + "command": { + "humidity_mode": "auto" + } + }, + "wind_speed": { + "options": { + "low": {"wind_speed": "low"}, + "middle": {"wind_speed": "middle"}, + "high": {"wind_speed": "high"} + }, + "command": { + "humidity_mode": "manual" + } + } + }, + Platform.SENSOR: { + "cur_humidity": { + "device_class": SensorDeviceClass.HUMIDITY, + "unit_of_measurement": PERCENTAGE, + "state_class": SensorStateClass.MEASUREMENT + } + } + } } -} \ No newline at end of file +} diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 676ca15..d031f22 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -548,7 +548,8 @@ "humidity": { "name": "设定湿度", "state": { - "off": "关闭" + "off": "关闭", + "auto": "自动" } }, "b3_function_control": {