From 80fc4f7ce7411f668f32f66154d372d336a30efd Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Mon, 2 Feb 2026 22:37:21 +0800 Subject: [PATCH] feat: add support for new T0xE1 device(7600V1E7) --- .../midea_auto_cloud/device_mapping/T0xE1.py | 66 ++++++++++++++++++- .../midea_auto_cloud/translations/en.json | 4 ++ .../translations/zh-Hans.json | 4 ++ 3 files changed, 73 insertions(+), 1 deletion(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xE1.py b/custom_components/midea_auto_cloud/device_mapping/T0xE1.py index f7ef584..c353c40 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xE1.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xE1.py @@ -128,5 +128,69 @@ DEVICE_MAPPING = { }, } } + }, + "7600V1E7": { + "rationale": [0, 1], + "queries": [{}], + "centralized": [], + "entities": { + Platform.SWITCH: { + "airswitch": { + "device_class": SwitchDeviceClass.SWITCH, + }, + "lock": { + "device_class": SwitchDeviceClass.SWITCH, + "translation_key": "child_lock" + } + }, + Platform.NUMBER: { + "air_set_hour": { + "min": 1, + "max": 72, + "step": 1, + "unit_of_measurement": UnitOfTime.HOURS + } + }, + Platform.SELECT: { + "work_status": { + "options": { + "power_off": {"work_status": "power_off" }, + "power_on": {"work_status": "power_on" }, + "cancel": {"work_status": "cancel" }, + "pause": {"operator":"pause"}, + "resume": {"operator":"start"}, + } + }, + "wash_mode": { + "options": { + "neutral_gear": {"work_status": "work", "mode": "neutral_gear"}, + "auto_wash": {"work_status": "work", "mode": "auto_wash"}, + "strong_wash": {"work_status": "work", "mode": "strong_wash"}, + "standard_wash": {"work_status": "work", "mode": "standard_wash"}, + "eco_wash": {"work_status":"work","mode":"eco_wash","additional":0,"wash_region":3}, + "soft_wash": {"work_status": "work", "mode": "glass_wash"}, + "fast_wash": {"work_status": "work", "mode": "fast_wash"}, + "soak_wash": {"work_status": "work", "mode": "soak_wash"}, + "self_clean": {"work_status": "work", "mode": "self_clean"}, + "fruit_wash": {"work_status": "work", "mode": "fruit_wash"} + } + } + }, + Platform.SENSOR: { + "bright": { + "device_class": SensorDeviceClass.ENUM + }, + "temperature": { + "device_class": SensorDeviceClass.TEMPERATURE, + "unit_of_measurement": UnitOfTemperature.CELSIUS, + "state_class": SensorStateClass.MEASUREMENT + }, + "left_time": { + "device_class": SensorDeviceClass.DURATION, + "unit_of_measurement": UnitOfTime.MINUTES, + "state_class": SensorStateClass.MEASUREMENT + } + } + } } -} \ No newline at end of file +} diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index cd2aa3e..f282e38 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -890,6 +890,7 @@ "standard_wash": "standard wash", "eco_wash": "eco wash", "glass_wash": "glass wash", + "soft_wash": "soft wash", "hour_wash": "hour wash", "fast_wash": "fast wash", "soak_wash": "soak wash", @@ -2213,6 +2214,9 @@ } }, "number": { + "air_set_hour": { + "name": "Drying Storage Set Time" + }, "delay_light_off": { "name": "Delay Light Off" }, diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index ff62f88..d943135 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -1077,6 +1077,7 @@ "standard_wash": "标准洗", "eco_wash": "节能洗", "glass_wash": "玻璃洗", + "soft_wash": "轻柔洗", "hour_wash": "小时洗", "fast_wash": "快速洗", "soak_wash": "预冲洗", @@ -2523,6 +2524,9 @@ } }, "number": { + "air_set_hour": { + "name": "烘干存储设置时间" + }, "delay_light_off": { "name": "延时关灯" },