cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.2080: full source
This commit is contained in:
1 parent
5168a4a590
commit
b3dfc9bb68
22 files changed
+865
-43
No files matched your search
@@ -1075,6 +1075,8 @@ def model_state(now: float, controls, inputs, col: Collector, bundles, history,
|
||||
cop_src, band_src, fallback, zone_src = {}, {}, [], {}
|
||||
one_room = sum(c.kind in ("heating", "cooling") for c in controls) == 1
|
||||
for c in controls:
|
||||
if c.kind == "heat_pump_sg":
|
||||
continue # its building's schedule sets it (sgready.py), not this plan
|
||||
if hasattr(c, "learn_range"):
|
||||
c.learn_range(col) # a climate's own min_temp..max_temp
|
||||
bounds = {}
|
||||
@@ -1544,7 +1546,7 @@ def room_refusal(c, st: dict, rc: str, power: str, source: str = "electric", cop
|
||||
|
||||
def _quantities(c) -> list[str]:
|
||||
return {"battery": ["soc_pct", "power_w"], "heating": ["temp_c"], "cooling": ["temp_c"],
|
||||
"ev": ["current_a"], "cover": ["position_pct"], "dhw_tank": ["temp_c"]}[c.kind]
|
||||
"ev": ["current_a"], "cover": ["position_pct"], "dhw_tank": ["temp_c"]}.get(c.kind, [])
|
||||
|
||||
|
||||
def _param_names(c) -> list[str]:
|
||||
|
||||
Reference in new issue
Block a user