fix: update translation and entity for T0xE1

This commit is contained in:
sususweet
2025-10-10 09:42:51 +08:00
parent 2bceda19ac
commit 2d2d0de10a
3 changed files with 40 additions and 39 deletions

View File

@@ -19,9 +19,6 @@ DEVICE_MAPPING = {
"uvswitch": { "uvswitch": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
}, },
"doorswitch": {
"device_class": SwitchDeviceClass.SWITCH,
},
"dryswitch": { "dryswitch": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
}, },
@@ -30,6 +27,9 @@ DEVICE_MAPPING = {
} }
}, },
Platform.BINARY_SENSOR: { Platform.BINARY_SENSOR: {
"doorswitch": {
"device_class": BinarySensorDeviceClass.RUNNING,
},
"air_status": { "air_status": {
"device_class": BinarySensorDeviceClass.RUNNING, "device_class": BinarySensorDeviceClass.RUNNING,
}, },
@@ -59,6 +59,16 @@ DEVICE_MAPPING = {
}, },
}, },
Platform.SELECT: { Platform.SELECT: {
"air_set_hour": {
"options": {
"12": {"air_set_hour": "12" },
"24": {"air_set_hour": "24" },
"36": {"air_set_hour": "36" },
"48": {"air_set_hour": "48" },
"60": {"air_set_hour": "60" },
"72": {"air_set_hour": "72" },
}
},
"work_status": { "work_status": {
"options": { "options": {
"power_off": {"work_status": "power_off" }, "power_off": {"work_status": "power_off" },
@@ -96,9 +106,7 @@ DEVICE_MAPPING = {
}, },
Platform.SENSOR: { Platform.SENSOR: {
"bright": { "bright": {
"device_class": SensorDeviceClass.ILLUMINANCE, "device_class": SensorDeviceClass.ENUM
"unit_of_measurement": "lx",
"state_class": SensorStateClass.MEASUREMENT
}, },
"temperature": { "temperature": {
"device_class": SensorDeviceClass.TEMPERATURE, "device_class": SensorDeviceClass.TEMPERATURE,
@@ -106,20 +114,13 @@ DEVICE_MAPPING = {
"state_class": SensorStateClass.MEASUREMENT "state_class": SensorStateClass.MEASUREMENT
}, },
"softwater": { "softwater": {
"device_class": SensorDeviceClass.TEMPERATURE, "device_class": SensorDeviceClass.ENUM
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT
}, },
"left_time": { "left_time": {
"device_class": SensorDeviceClass.DURATION, "device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES, "unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT "state_class": SensorStateClass.MEASUREMENT
}, },
"air_set_hour": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.HOURS,
"state_class": SensorStateClass.MEASUREMENT
},
"air_left_hour": { "air_left_hour": {
"device_class": SensorDeviceClass.DURATION, "device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.HOURS, "unit_of_measurement": UnitOfTime.HOURS,

View File

@@ -123,6 +123,9 @@
}, },
"entity": { "entity": {
"binary_sensor": { "binary_sensor": {
"doorswitch": {
"name": "Door Switch"
},
"softener_lack": { "softener_lack": {
"name": "Softener Lack" "name": "Softener Lack"
}, },
@@ -145,7 +148,7 @@
"name": "Bottom Hot" "name": "Bottom Hot"
}, },
"bright_lack": { "bright_lack": {
"name": "Brightness Lack" "name": "Brightener Lack"
}, },
"carpet_switch": { "carpet_switch": {
"name": "Carpet Switch" "name": "Carpet Switch"
@@ -208,7 +211,7 @@
"name": "RTC Error" "name": "RTC Error"
}, },
"softwater_lack": { "softwater_lack": {
"name": "Soft Water Lack" "name": "Lack of Soft Water Salt"
}, },
"storage_door_state": { "storage_door_state": {
"name": "Storage Door State" "name": "Storage Door State"
@@ -599,6 +602,9 @@
}, },
"drying_direction": { "drying_direction": {
"name": "Drying Direction" "name": "Drying Direction"
},
"air_set_hour": {
"name": "Drying Storage Set Time"
} }
}, },
"sensor": { "sensor": {
@@ -624,10 +630,7 @@
"name": "Air Dry Left Time" "name": "Air Dry Left Time"
}, },
"air_left_hour": { "air_left_hour": {
"name": "AC Remaining Time" "name": "Drying Storage Remaining Time"
},
"air_set_hour": {
"name": "AC Set Time"
}, },
"appointment_time": { "appointment_time": {
"name": "Appointment Time" "name": "Appointment Time"
@@ -657,7 +660,7 @@
"name": "Bottom Temperature" "name": "Bottom Temperature"
}, },
"bright": { "bright": {
"name": "Brightness" "name": "Brightener Level"
}, },
"category": { "category": {
"name": "Category" "name": "Category"
@@ -1074,7 +1077,7 @@
"name": "Softener Global" "name": "Softener Global"
}, },
"softwater": { "softwater": {
"name": "Soft Water Temp" "name": "Soft Water Level"
}, },
"station_error_desc": { "station_error_desc": {
"name": "Station Error Description" "name": "Station Error Description"
@@ -1649,7 +1652,7 @@
"name": "Air Dry On Off" "name": "Air Dry On Off"
}, },
"airswitch": { "airswitch": {
"name": "AC Switch" "name": "Drying Storage Switch"
}, },
"appointment": { "appointment": {
"name": "Appointment" "name": "Appointment"
@@ -1771,9 +1774,6 @@
"door_warn": { "door_warn": {
"name": "Door Warning" "name": "Door Warning"
}, },
"doorswitch": {
"name": "Door Switch"
},
"down_light": { "down_light": {
"name": "Down Light" "name": "Down Light"
}, },

View File

@@ -123,6 +123,9 @@
}, },
"entity": { "entity": {
"binary_sensor": { "binary_sensor": {
"doorswitch": {
"name": "门锁开关"
},
"air_status": { "air_status": {
"name": "空气运行" "name": "空气运行"
}, },
@@ -133,7 +136,7 @@
"name": "底部加热" "name": "底部加热"
}, },
"bright_lack": { "bright_lack": {
"name": "亮光不足" "name": "亮光不足"
}, },
"carpet_switch": { "carpet_switch": {
"name": "地毯开关" "name": "地毯开关"
@@ -196,7 +199,7 @@
"name": "RTC 错误" "name": "RTC 错误"
}, },
"softwater_lack": { "softwater_lack": {
"name": "软水不足" "name": "软水不足"
}, },
"storage_door_state": { "storage_door_state": {
"name": "冷藏门状态" "name": "冷藏门状态"
@@ -599,6 +602,9 @@
}, },
"drying_direction": { "drying_direction": {
"name": "烘干方向" "name": "烘干方向"
},
"air_set_hour": {
"name": "烘干存储设置时间"
} }
}, },
"sensor": { "sensor": {
@@ -624,10 +630,7 @@
"name": "风干剩余时间" "name": "风干剩余时间"
}, },
"air_left_hour": { "air_left_hour": {
"name": "空调剩余时间" "name": "烘干存储剩余时间"
},
"air_set_hour": {
"name": "空调设置时间"
}, },
"appointment_time": { "appointment_time": {
"name": "预约时间" "name": "预约时间"
@@ -657,7 +660,7 @@
"name": "底部温度" "name": "底部温度"
}, },
"bright": { "bright": {
"name": "亮" "name": "亮光剂档位"
}, },
"category": { "category": {
"name": "类别" "name": "类别"
@@ -1074,7 +1077,7 @@
"name": "柔顺剂全局" "name": "柔顺剂全局"
}, },
"softwater": { "softwater": {
"name": "软水温度" "name": "软水盐档位"
}, },
"station_error_desc": { "station_error_desc": {
"name": "基站错误描述" "name": "基站错误描述"
@@ -1649,7 +1652,7 @@
"name": "风干开关" "name": "风干开关"
}, },
"airswitch": { "airswitch": {
"name": "空调开关" "name": "烘干存储开关"
}, },
"appointment": { "appointment": {
"name": "预约" "name": "预约"
@@ -1771,9 +1774,6 @@
"door_warn": { "door_warn": {
"name": "门警告" "name": "门警告"
}, },
"doorswitch": {
"name": "门锁开关"
},
"down_light": { "down_light": {
"name": "下灯" "name": "下灯"
}, },
@@ -1796,7 +1796,7 @@
"name": "烘干通道过热" "name": "烘干通道过热"
}, },
"dryswitch": { "dryswitch": {
"name": "烘干开关" "name": "晶焰烘干开关"
}, },
"easy_ironing": { "easy_ironing": {
"name": "易熨烫" "name": "易熨烫"