diff --git a/custom_components/midea_ac_lan/midea_devices.py b/custom_components/midea_ac_lan/midea_devices.py index 7af8d70..5882933 100644 --- a/custom_components/midea_ac_lan/midea_devices.py +++ b/custom_components/midea_ac_lan/midea_devices.py @@ -1965,6 +1965,78 @@ "name": "Start", "icon": "mdi:motion-play-outline", }, + DCAttributes.status: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "status", + "name": "Status", + "icon": "mdi:auto-mode", + }, + DCAttributes.program: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "program", + "name": "Program", + "icon": "mdi:washing-machine", + }, + DCAttributes.dry_temperature: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "dry_temperature", + "name": "Dry Temperature", + "device_class": SensorDeviceClass.TEMPERATURE, + "unit": UnitOfTemperature.CELSIUS, + "state_class": SensorStateClass.MEASUREMENT, + }, + DCAttributes.intensity: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "intensity", + "name": "Intensity", + "icon": "mdi:waves-arrow-up", + }, + DCAttributes.dryness_level: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "dryness_level", + "name": "Dryness Level", + "icon": "mdi:spirit-level", + }, + DCAttributes.error_code: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "error_code", + "name": "Error Code", + "icon": "mdi:code-block-tags", + }, + DCAttributes.door_warn: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "door_warn", + "name": "Door Warn", + "icon": "mdi:alert-box", + }, + DCAttributes.ai_switch: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "ai_switch", + "name": "AI Switch", + "icon": "mdi:toggle-switch", + }, + DCAttributes.material: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "material", + "name": "Material", + "icon": "mdi:material-design", + }, + DCAttributes.water_box: { + "type": Platform.SENSOR, + "has_entity_name": True, + "translation_key": "water_box", + "name": "Water Box", + "icon": "mdi:cup-water", + }, }, }, 0xE1: { diff --git a/custom_components/midea_ac_lan/translations/zh-Hans.json b/custom_components/midea_ac_lan/translations/zh-Hans.json index 9cc77ac..c1f9305 100644 --- a/custom_components/midea_ac_lan/translations/zh-Hans.json +++ b/custom_components/midea_ac_lan/translations/zh-Hans.json @@ -312,6 +312,27 @@ "detergent": { "name": "洗涤剂" }, + "intensity": { + "name": "强度" + }, + "dryness_level": { + "name": "干燥档位" + }, + "dry_temperature": { + "name": "干燥温度" + }, + "door_warn": { + "name": "开门警告" + }, + "ai_switch": { + "name": "AI开关" + }, + "material": { + "name": "材质" + }, + "water_box": { + "name": "水箱" + }, "energy_consumption": { "name": "能耗" },