Compare commits

...

10 Commits

Author SHA1 Message Date
Li Shuzhen
fbebfc4fd8
Merge 9b14d1b086 into 3a5b641ec7 2025-01-21 20:34:38 +08:00
topsworld
9b14d1b086 fix: fix climate hvac_mode 2025-01-21 20:08:04 +08:00
topsworld
b4b81dc6e0 merge: merge main to this branch 2025-01-21 10:24:36 +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 625 additions and 389 deletions

File diff suppressed because it is too large Load Diff

View File

@ -219,6 +219,31 @@ 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 +266,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',
}
}