weheat 2025.2.26__py3-none-any.whl → 2025.3.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of weheat might be problematic. Click here for more details.

@@ -121,10 +121,10 @@ class HeatPump:
121
121
  # except for the Flint, that cannot go above 100%.
122
122
  if model_id == 1:
123
123
  # BB60
124
- self._nominal_max_power = 5280
124
+ self._nominal_max_power = 5520
125
125
  elif 2 <= model_id <= 4:
126
126
  # SP60
127
- self._nominal_max_power = 5280
127
+ self._nominal_max_power = 5520
128
128
  elif model_id == 5:
129
129
  # Flint
130
130
  self._nominal_max_power = 5400
@@ -285,6 +285,39 @@ class HeatPump:
285
285
  return self.State.DEFROSTING
286
286
  return None
287
287
 
288
+ @staticmethod
289
+ def _pwm_to_volume(pwm: float, max: float) -> Union[float, None]:
290
+ """Calculate PWM to Volume in m3/h based on the max available volume"""
291
+
292
+ # 0 or > 75 are abnormal states. 255 = Off
293
+ if pwm < 1 or pwm > 75:
294
+ return None
295
+
296
+ # 2 = standby
297
+ if pwm <= 5:
298
+ return 0
299
+
300
+ # 5-75 is linear from 0 to max
301
+ return ((pwm - 5) / 70) * max
302
+
303
+ @property
304
+ def dhw_flow_volume(self) -> Union[float, None]:
305
+ """The DHW Flow in m3/h."""
306
+ pwm = pwm=self._if_available("dhw_flow")
307
+ if pwm is None:
308
+ return None
309
+
310
+ return self._pwm_to_volume(pwm, max=2.1)
311
+
312
+ @property
313
+ def central_heating_flow_volume(self) -> Union[float, None]:
314
+ """The Central Heating Flow in m3/h."""
315
+ pwm = pwm=self._if_available("central_heating_flow")
316
+ if pwm is None:
317
+ return None
318
+
319
+ return self._pwm_to_volume(pwm, max=2.1)
320
+
288
321
  @property
289
322
  def energy_total(self) -> Union[float, None]:
290
323
  """The total used energy in kWh from 2023 to now."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: weheat
3
- Version: 2025.2.26
3
+ Version: 2025.3.7
4
4
  Summary: Weheat Backend client
5
5
  Home-page: https://github.com/wefabricate/wh-python
6
6
  Author: Jesper Raemaekers
@@ -7,7 +7,7 @@ weheat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  weheat/rest.py,sha256=hSt8T6NQfdrgz_7Dxo9U-DO5ZEgUVVG38OUErThWqlU,7086
8
8
  weheat/abstractions/__init__.py,sha256=BbA5WW8RE8vtpK0Dq80ayMILN4m6lmCyIPYzYXy3rTE,177
9
9
  weheat/abstractions/discovery.py,sha256=Iuqn-vTz4OO7UAqvS4vnLOpEWuswILOHAyKKIAe4XmA,2398
10
- weheat/abstractions/heat_pump.py,sha256=roUDxZZsKTbTmI9ZJqXKy51IoMlyJGY5N1tqSl8TIv8,11322
10
+ weheat/abstractions/heat_pump.py,sha256=cjc9npinU556Y0ZZUEsrmsMK0WRVLjWkksjUrvIj3_Q,12304
11
11
  weheat/abstractions/user.py,sha256=moeJAmbjdYuXAkL7Xuks5w4zcPpjKUXM9nYJDv8WEXs,775
12
12
  weheat/api/__init__.py,sha256=zZ_Xqek8VY6gARsJK6hRess0qqGii-Ls1uXm92k0jPE,244
13
13
  weheat/api/energy_log_api.py,sha256=plZ9YoQ9O39qufzr3B6CduuzJMY1K6iJS5f5AXN-vUo,17587
@@ -29,8 +29,8 @@ weheat/models/read_heat_pump_dto.py,sha256=7jH2MwMVKv_dOoJUUsKE8sTR5mROqco71OzOA
29
29
  weheat/models/read_user_dto.py,sha256=OIsWQZcdByN94ViSv0DjFHORRsMnkQ93jc-gJuudRdg,4018
30
30
  weheat/models/read_user_me_dto.py,sha256=Ger6qKlbZBBvG_4MStl6aEMkrBBJIjQtV6pvK1-lw28,4441
31
31
  weheat/models/role.py,sha256=6KUInAmkhoxEdWxBo9jBHXiy_nqJHrKXVeh8RvQPEYM,1101
32
- weheat-2025.2.26.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
33
- weheat-2025.2.26.dist-info/METADATA,sha256=FhulrKu6yQJTWDwiCif7mwzZN4cgQSsR3X8yH3aU-Y4,3874
34
- weheat-2025.2.26.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
35
- weheat-2025.2.26.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
36
- weheat-2025.2.26.dist-info/RECORD,,
32
+ weheat-2025.3.7.dist-info/LICENSE,sha256=rWmFUq0uth2jpet-RQ2QPd2VhZkcPSUs6Dxfmbqkbis,1068
33
+ weheat-2025.3.7.dist-info/METADATA,sha256=6vZo2ZD8vF2xWH13lKsg9oSgYhmyTSSojRc5IY83rAE,3873
34
+ weheat-2025.3.7.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
35
+ weheat-2025.3.7.dist-info/top_level.txt,sha256=hLzdyvGZ9rs4AqK7U48mdHx_-FcP5sDuTSleDUvGAZw,7
36
+ weheat-2025.3.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.1)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5