diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py index 7f995f6..0cf3868 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py @@ -754,5 +754,95 @@ DEVICE_MAPPING = { }, }, } + }, + "23096653": { + "rationale": ["off", "on"], + "queries": [{}, {"query_type":"run_status"}, {"query_type":"indoor_humidity"}, {"query_type":"indoor_temperature"}], + "calculate": { + "get": [ + { + "lvalue": "[total_elec_value]", + "rvalue": "float([total_elec]) / 1000" + }, + ], + }, + "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": "auto"}, + "dry": {"power": "on", "mode": "dry"}, + "fan_only": {"power": "on", "mode": "fan"} + }, + "preset_modes": { + "none": { + "eco": "off", + "cool_power_saving": 0, + "strong_wind": "off" + }, + "eco": {"eco": "on", "cool_power_saving": 1}, + "boost": {"strong_wind": "on"} + }, + "fan_modes": { + "silent": {"wind_speed": 20}, + "low": {"wind_speed": 40}, + "medium": {"wind_speed": 60}, + "high": {"wind_speed": 80}, + "full": {"wind_speed": 100}, + "auto": {"wind_speed": 102} + }, + "target_temperature": ["temperature", "small_temperature"], + "current_temperature": "indoor_temperature", + "pre_mode": "mode", + "aux_heat": "ptc", + "min_temp": 17, + "max_temp": 30, + "temperature_unit": UnitOfTemperature.CELSIUS, + "precision": PRECISION_HALVES, + } + }, + Platform.SWITCH: { + "fengguan_remove_odor": { + "device_class": SwitchDeviceClass.SWITCH, + "rationale": ["on", "off"], + "translation_key": "disinfect", + }, + "power": { + "device_class": SwitchDeviceClass.SWITCH, + }, + "ptc": { + "device_class": SwitchDeviceClass.SWITCH, + "translation_key": "aux_heat", + } + }, + Platform.SELECT: { + "follow_body_sense": { + "options": { + "on": {"follow_body_sense": "on", "follow_body_sense_enable": 1}, + "off": {"follow_body_sense": "off", "follow_body_sense_enable": 1}, + } + } + }, + Platform.SENSOR: { + "mode": { + "device_class": SensorDeviceClass.ENUM, + }, + "indoor_temperature": { + "device_class": SensorDeviceClass.TEMPERATURE, + "unit_of_measurement": UnitOfTemperature.CELSIUS, + "state_class": SensorStateClass.MEASUREMENT + }, + "total_elec_value": { + "device_class": SensorDeviceClass.ENERGY, + "unit_of_measurement": "kWh", + "state_class": SensorStateClass.TOTAL_INCREASING + } + } + } } } diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index 559a767..35dc546 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -1917,6 +1917,9 @@ }, "tw1_out_water_temp": { "name": "Outlet Water Temperature" + }, + "total_elec_value": { + "name": "Total Electricity" } }, "light": { diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 6808305..f7b0411 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -423,7 +423,11 @@ "name": "左右摆风角度" }, "follow_body_sense": { - "name": "随身感" + "name": "随身感", + "state": { + "on": "开", + "off": "关" + } }, "bright": { "name": "亮度" @@ -2046,6 +2050,9 @@ }, "tw1_out_water_temp": { "name": "出水温度" + }, + "total_elec_value": { + "name": "总耗电量" } }, "light": {