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:
Cyborg2017
2026-01-02 21:52:27 +08:00
parent 2e389c50cc
commit a738b2e4a0
3 changed files with 101 additions and 1 deletions

View File

@@ -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
}
}
}
}
}

View File

@@ -1917,6 +1917,9 @@
},
"tw1_out_water_temp": {
"name": "Outlet Water Temperature"
},
"total_elec_value": {
"name": "Total Electricity"
}
},
"light": {

View File

@@ -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": {