From 24bc3172c7b48cb8f206789cfbe0e49bc1add55f Mon Sep 17 00:00:00 2001 From: Cyborg2017 Date: Mon, 19 Jan 2026 19:18:13 +0800 Subject: [PATCH] feat: Update device mapping for T0xB6 - Add device support for CXW-140-AK5 MAX (sn8: 730007GC) - Create status translation files for "b7_left_status" and "b7_right_status" --- .../midea_auto_cloud/device_mapping/T0xB6.py | 6 +----- .../midea_auto_cloud/translations/en.json | 16 ++++++++++++++-- .../midea_auto_cloud/translations/zh-Hans.json | 16 ++++++++++++++-- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xB6.py b/custom_components/midea_auto_cloud/device_mapping/T0xB6.py index e4a4ad1..d693cb5 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xB6.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xB6.py @@ -30,11 +30,9 @@ DEVICE_MAPPING = { Platform.SENSOR: { "b7_left_status": { "device_class": SensorDeviceClass.ENUM, - "translation_key": "left_status", }, "b7_right_status": { "device_class": SensorDeviceClass.ENUM, - "translation_key": "right_status", }, "b7_vbattery":{ "device_class": SensorDeviceClass.VOLTAGE, @@ -91,7 +89,7 @@ DEVICE_MAPPING = { }, } }, - "730007H8": { + ("730007GC", "730007H8"): { "rationale": ["off", "on"], "queries": [{}], "centralized": ["lightness"], @@ -116,11 +114,9 @@ DEVICE_MAPPING = { Platform.SENSOR: { "b7_left_status": { "device_class": SensorDeviceClass.ENUM, - "translation_key": "left_status", }, "b7_right_status": { "device_class": SensorDeviceClass.ENUM, - "translation_key": "right_status", }, "b7_vbattery":{ "device_class": SensorDeviceClass.VOLTAGE, diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index 6afefd5..227f5df 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -1197,13 +1197,25 @@ "name": "Disinfection Cabinet Status" }, "b7_left_status": { - "name": "Left Stove Status" + "name": "Left Stove Status", + "state": { + "initial": "Initial", + "power_off": "Power Off", + "working": "Working", + "power_off_delay": "Power Off Delay" + } }, "b7_left_gear": { "name": "Left Stove Gear" }, "b7_right_status": { - "name": "Right Stove Status" + "name": "Right Stove Status", + "state": { + "initial": "Initial", + "power_off": "Power Off", + "working": "Working", + "power_off_delay": "Power Off Delay" + } }, "b7_right_gear": { "name": "Left Stove Gear" diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index a8d9d0b..ae3952d 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -1482,13 +1482,25 @@ "name": "消毒柜状态" }, "b7_left_status": { - "name": "左灶状态" + "name": "左灶状态", + "state": { + "initial": "初始化", + "power_off": "已关闭", + "working": "运行中", + "power_off_delay": "延时关闭" + } }, "b7_left_gear": { "name": "左灶档位" }, "b7_right_status": { - "name": "右灶状态" + "name": "右灶状态", + "state": { + "initial": "初始化", + "power_off": "已关闭", + "working": "运行中", + "power_off_delay": "延时关闭" + } }, "b7_right_gear": { "name": "右灶档位"