feat: add 3D hydronic manifolds buffer tanks and fresh water stations

This commit is contained in:
jhartworks committed 2026-11-12 14:28:30 +01:00
1 parent 93c015ec77
commit 173d02e3cc
37 files changed
+3253 -1815

No files matched your search

+25
View File
@@ -207,6 +207,31 @@ def test_furniture_power_card() -> None:
FURNITURE_SCHEMA({**FURN, "power_card": "yes"})
def test_hydronic_circuits_buffer_probes_and_fresh_water_bindings() -> None:
control = {"command": "cover.1", "feedback": "sensor.2", "inverted": True}
circuit = {"id": "c1", "name": "Vorschub", "kind": "pump", "has_valve": False, "pump": control}
hydronic = {
"card": True,
"circuits": [circuit],
"sensors": [{"id": f"s{i}", "name": f"Fühler {i}", "entity": None, "level": i / 6} for i in range(7)],
"flow": "light.3",
"return": "climate.4",
"circulation": control,
"circulation_temperature": "sensor.5",
"hot_water": "sensor.6",
}
assert FURNITURE_SCHEMA({**FURN, "type": "heating_manifold", "hydronic": hydronic})["hydronic"] == hydronic
for bad in (
{"circuits": [{**circuit, "kind": "guess_from_name"}]},
{"circuits": [circuit] * 33},
{"sensors": [{"id": "s", "name": "Fühler", "entity": None, "level": 1.01}]},
{"pump": {"command": 12345}},
{"card": "yes"},
):
with pytest.raises(vol.Invalid):
FURNITURE_SCHEMA({**FURN, "hydronic": bad})
def test_furniture_show_when() -> None:
assert "show_when" not in FURNITURE_SCHEMA(FURN)
cond = {"entity": "input_boolean.xmas", "state": "on, home", "invert": True}