Merge pull request #98 from Cyborg2017/staging

feat: Update device mapping for T0xB6
This commit is contained in:
Yingqi Tang
2026-01-20 14:19:49 +08:00
committed by GitHub
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": "右灶档位"