feat: support climate turn on & off feature. Fix #18.

This commit is contained in:
sususweet
2025-10-05 13:42:57 +08:00
parent 1cd31305e5
commit 87fa17c7df
7 changed files with 34 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ DEVICE_MAPPING = {
},
"target_temperature": "temperature.current",
"current_temperature": "temperature.room",
"pre_mode": "mode",
"min_temp": 17,
"max_temp": 30,
"temperature_unit": UnitOfTemperature.CELSIUS,
@@ -89,6 +90,9 @@ DEVICE_MAPPING = {
}
},
Platform.SENSOR: {
"mode": {
"device_class": SensorDeviceClass.ENUM,
},
"room_temperature": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,