refactor: climate entity

This commit is contained in:
LiShuzhen 2025-01-09 14:10:05 +08:00
parent 2954606a40
commit ff984fae33
2 changed files with 662 additions and 631 deletions

File diff suppressed because it is too large Load Diff

View File

@ -219,7 +219,29 @@ SPEC_DEVICE_TRANS_MAP: dict[str, dict | str] = {
'entity': 'air-conditioner'
},
'air-condition-outlet': 'air-conditioner',
'thermostat': 'air-conditioner',
'thermostat': {
'required': {
'thermostat': {
'required': {
'properties': {
'on': {'read', 'write'}
}
},
'optional': {
'properties': {'target-temperature', 'mode', 'fan-level'}
},
}
},
'optional': {
'environment': {
'required': {},
'optional': {
'properties': {'temperature', 'relative-humidity'}
}
},
},
'entity': 'thermostat'
},
'heater': {
'required': {
'heater': {