Compare commits

...

18 Commits

Author SHA1 Message Date
Li Shuzhen
96548d0afd
Merge fbdda23715 into 57422ddf0d 2025-02-08 09:42:04 +00:00
LiShuzhen
fbdda23715 feat: add heat and defog mode of ptc bath heater 2025-02-08 17:41:51 +08:00
LiShuzhen
5e41c48f64 Merge branch 'main' into refactor-climate 2025-02-08 16:43:45 +08:00
LiShuzhen
ae1839bf9a fix: initialize _attr_hvac_modes 2025-01-23 20:48:26 +08:00
LiShuzhen
ad8ca02fa1 style: format the file based on google style 2025-01-23 20:04:52 +08:00
LiShuzhen
3053099fd5 fix: merge conflicts 2025-01-23 15:10:43 +08:00
LiShuzhen
0c0cc8d528 style: add comments 2025-01-23 09:53:11 +08:00
topsworld
ed4812d166 merge: merge main to this branch 2025-01-22 19:44:01 +08:00
LiShuzhen
9562049af9 fix: misuse of getting key or value from dict[int, any] 2025-01-22 18:11:55 +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 601 additions and 428 deletions

File diff suppressed because it is too large Load Diff

View File

@ -224,6 +224,31 @@ SPEC_DEVICE_TRANS_MAP: dict = {
'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': {
@ -246,6 +271,30 @@ SPEC_DEVICE_TRANS_MAP: dict = {
},
},
'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',
}
}