mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2026-02-19 01:58:07 +00:00
feat: add device mapping for T0xAC(23096653)
* Device type: T0xAC, Sn8: 23096653, model: KFR-72T2/B3N8-XGQ(1)Ⅲ. - Remove non-existent swing function and humidity sensor - Fix disinfection key (fengguan_remove_odor) - Add standalone power switch - Correct aux heat key (ptc) - Add energy sensor with kWh conversion
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1917,6 +1917,9 @@
|
||||
},
|
||||
"tw1_out_water_temp": {
|
||||
"name": "Outlet Water Temperature"
|
||||
},
|
||||
"total_elec_value": {
|
||||
"name": "Total Electricity"
|
||||
}
|
||||
},
|
||||
"light": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user