From 9a594777a68e91c9b7fd31ab1ee104d9432622a2 Mon Sep 17 00:00:00 2001 From: sususweet Date: Mon, 5 Jan 2026 21:13:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20update=20device=20mapping=20for=20MHSR1?= =?UTF-8?q?80N8-Z1=20=E7=9C=9F=E6=9A=96=E7=83=AD=E6=B3=B5=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../midea_auto_cloud/device_mapping/T0xAC.py | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py index 9f79efb..58db3a6 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py @@ -135,6 +135,68 @@ DEVICE_MAPPING = { } } }, + "21293193": { + "rationale": ["off", "on"], + "queries": [{}, {"query_type": "query_all"}], + "centralized": [], + "entities": { + Platform.CLIMATE: { + "thermostat": { + "power": "power", + "hvac_modes": { + "off": {"power": "off"}, + "heat": {"power": "on", "mode": "heat"}, + "cool": {"power": "on", "mode": "cool"}, + "auto": {"power": "on", "mode": "smart_mode"}, + }, + "preset_modes": { + "auto": {"water_model_temperature_auto": "on", "temperature_control_switch": 0}, + "manual": {"water_model_temperature_auto": "off", "temperature_control_switch": 0}, + "link": {"water_model_temperature_auto": "on", "temperature_control_switch": 1} + }, + "target_temperature": "effluent_temperature", + "pre_mode": "mode", + "min_temp": 25, + "max_temp": 60, + "temperature_unit": UnitOfTemperature.CELSIUS, + "precision": PRECISION_HALVES, + } + }, + Platform.NUMBER: { + "temperature": { + "min": 16, + "max": 30, + "step": 0.5, + "translation_key": "heating_target_temperature", + }, + }, + Platform.SWITCH: { + "out_mode": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": [0, 1], + "translation_key": "water_model_go_out", + }, + "mute_voice": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": [0, 1], + "translation_key": "mute", + }, + "eco": { + "device_class": SwitchDeviceClass.SWITCH, + }, + "temperature_control_switch": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": [0, 1], + "translation_key": "room_temp_ctrl", + }, + }, + Platform.SENSOR: { + "mode": { + "device_class": SensorDeviceClass.ENUM, + } + } + } + }, "22259015": { "rationale": ["off", "on"], "queries": [{}, {"query_type": "run_status"}, {"query_type": "module_30"}, {"query_type": "module_31"},