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"
This commit is contained in:
Cyborg2017
2026-01-19 19:18:13 +08:00
parent 1b5283fa4e
commit 24bc3172c7
3 changed files with 29 additions and 9 deletions

View File

@@ -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,

View File

@@ -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"

View File

@@ -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": "右灶档位"