Compare commits

...

8 Commits

Author SHA1 Message Date
Li Shuzhen
4ebbb10ddf
Merge 3300eeb595 into 9ceca34b28 2025-01-10 23:14:30 +08:00
LiShuzhen
3300eeb595 perf: get fan level 2025-01-10 12:28:06 +08:00
LiShuzhen
31ed45faf8 fix: get the current fan mode 2025-01-09 17:25:02 +08:00
LiShuzhen
fe3e1b4005 fix: thermostat on/off 2025-01-09 16:02:58 +08:00
LiShuzhen
ff984fae33 refactor: climate entity 2025-01-09 14:10:05 +08:00
LiShuzhen
2954606a40 Merge branch 'main' into new-climate-entity 2025-01-09 12:14:06 +08:00
LiShuzhen
694858e722 feat: add bath-heater as climate entity 2024-12-26 21:39:53 +08:00
LiShuzhen
80931aaa42 feat: add thermostat as climate entity 2024-12-26 19:42:16 +08:00
2 changed files with 719 additions and 412 deletions

File diff suppressed because it is too large Load Diff

View File

@ -219,6 +219,30 @@ SPEC_DEVICE_TRANS_MAP: dict[str, dict | str] = {
'entity': 'air-conditioner'
},
'air-condition-outlet': 'air-conditioner',
'thermostat': {
'required': {
'thermostat': {
'required': {
'properties': {
'on': {'read', 'write'}
}
},
'optional': {
'properties': {'target-temperature', 'mode', 'fan-level',
'temperature'}
},
}
},
'optional': {
'environment': {
'required': {},
'optional': {
'properties': {'temperature', 'relative-humidity'}
}
},
},
'entity': 'thermostat'
},
'heater': {
'required': {
'heater': {
@ -241,6 +265,30 @@ SPEC_DEVICE_TRANS_MAP: dict[str, dict | str] = {
},
},
'entity': 'heater'
},
'bath-heater': {
'required': {
'ptc-bath-heater': {
'required': {},
'optional': {
'properties': {
'target-temperature', 'heat-level',
'temperature', 'mode'
}
},
}
},
'optional': {
'fan-control': {
'required': {},
'optional': {
'properties': {
'on', 'fan-level', 'horizontal-swing', 'vertical-swing'
}
},
}
},
'entity': 'bath-heater',
}
}