diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py index a2525f0..9d25b54 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py @@ -1065,5 +1065,65 @@ DEVICE_MAPPING = { } } } + }, + "26096947": { + "rationale": ["off", "on"], + "queries": [{}, {"query_type":"run_status"}], + "centralized": [], + "entities": { + Platform.SELECT: { + "fresh_air_mode_select": { + "translation_key": "fresh_air_mode_select", + "device_class": "enum", + "options": { + "normal": {"fresh_air_mode": 1}, + "smart": {"fresh_air_mode": 4}, + "manual_recirculation": {"fresh_air_mode": 5}, + "auto_recirculation": {"fresh_air_mode": 6}, + "supply_air_gentle": {"fresh_air_mode": 2, "wind_strength": 0}, + "supply_air_fast": {"fresh_air_mode": 2, "wind_strength": 1}, + "exhaust_air_gentle": {"fresh_air_mode": 3, "wind_strength": 0}, + "exhaust_air_fast": {"fresh_air_mode": 3, "wind_strength": 1} + } + } + }, + Platform.SWITCH: { + "new_wind_machine": { + "translation_key": "new_wind_machine", + "device_class": SwitchDeviceClass.SWITCH + }, + "anion_status": { + "translation_key": "anion_status", + "device_class": SwitchDeviceClass.SWITCH, + "rationale": [0, 1] + } + }, + Platform.NUMBER: { + "fresh_air_fan_speed": { + "translation_key": "fresh_air_fan_speed", + "unit_of_measurement": "%", + "min": 1, + "max": 100, + "step": 1 + } + }, + Platform.SENSOR: { + "fresh_filter_time": { + "translation_key": "fresh_filter_time", + "device_class": "percentage", + "unit_of_measurement": "%" + }, + "new_wind_humidity": { + "translation_key": "new_wind_humidity", + "device_class": "humidity", + "unit_of_measurement": "%" + }, + "new_wind_outdoor_temperature": { + "translation_key": "new_wind_outdoor_temperature", + "device_class": "temperature", + "unit_of_measurement": "°C" + } + } + } } } diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index b58da72..01625a9 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -432,6 +432,19 @@ } }, "select": { + "fresh_air_mode_select": { + "name": "Mode", + "state": { + "normal": "Normal", + "smart": "Smart", + "manual_recirculation": "Manual Recirculation", + "auto_recirculation": "Auto Recirculation", + "supply_air_gentle": "Gentle Supply Air", + "supply_air_fast": "Fast Supply Air", + "exhaust_air_gentle": "Gentle Exhaust Air", + "exhaust_air_fast": "Fast Exhaust Air" + } + }, "dehydration_speed": { "name": "Dehydration Speed" }, @@ -1098,6 +1111,15 @@ } }, "sensor": { + "new_wind_humidity": { + "name": "Fresh air humidity" + }, + "new_wind_outdoor_temperature": { + "name": "Fresh air outdoor temperature" + }, + "fresh_filter_time": { + "name": "Filter remaining life" + }, "tips_code": { "name": "Tips Code" }, @@ -2150,6 +2172,9 @@ } }, "number": { + "fresh_air_fan_speed": { + "name": "Fresh air fan speed" + }, "steam_quantity": { "name": "Steam Quantity" }, @@ -2280,6 +2305,12 @@ } }, "switch": { + "new_wind_machine": { + "name": "Fresh air switch" + }, + "anion_status": { + "name": "Sterilization" + }, "radar_induction_enable": { "name": "Radar Induction" }, diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 2ca84a3..488a48e 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -452,6 +452,19 @@ } }, "select": { + "fresh_air_mode_select": { + "name": "模式", + "state": { + "normal": "普通", + "smart": "智能", + "manual_recirculation": "手动内循环", + "auto_recirculation": "自动内循环", + "supply_air_gentle": "舒缓进风", + "supply_air_fast": "快速进风", + "exhaust_air_gentle": "舒缓排风", + "exhaust_air_fast": "快速排风" + } + }, "dehydration_speed": { "name": "转速" }, @@ -1334,6 +1347,15 @@ } }, "sensor": { + "new_wind_humidity": { + "name": "湿度" + }, + "new_wind_outdoor_temperature": { + "name": "室外温度" + }, + "fresh_filter_time": { + "name": "滤网使用量" + }, "tips_code": { "name": "提示代码" }, @@ -2444,6 +2466,9 @@ } }, "number": { + "fresh_air_fan_speed": { + "name": "风量" + }, "steam_quantity": { "name": "蒸汽量" }, @@ -2595,6 +2620,12 @@ } }, "switch": { + "new_wind_machine": { + "name": "新风开关" + }, + "anion_status": { + "name": "除菌" + }, "radar_induction_enable": { "name": "人感夜灯" }, @@ -3617,4 +3648,4 @@ } } } -} \ No newline at end of file +}