fix: rebuild hydronic circuits around correct inline pipework
This commit is contained in:
1 parent
59292517b7
commit
e62f987563
24 files changed
+844
-586
No files matched your search
@@ -76,6 +76,10 @@ try {
|
||||
};
|
||||
const circuit=()=>e.shadowRoot.querySelector('.nf-hydronic-circuit[data-circuit="c1"]');
|
||||
const pumpToggle=[...circuit().querySelectorAll("label.nf-check")].find((l)=>l.textContent.includes("Pumpe vorhanden"));pumpToggle.querySelector("input").click();await window.editorSettle();
|
||||
const valveType=()=>[...circuit().querySelectorAll("label.nf-field")].find((l)=>l.textContent.trim().startsWith("Ventilbauart")).querySelector("select");
|
||||
valveType().value="two_way";valveType().dispatchEvent(new Event("change",{bubbles:true}));await window.editorSettle();
|
||||
if(e._doc.floors[0].furniture.find((f)=>f.id==="manifold").hydronic.circuits[0].valve_type!=="two_way")throw new Error("Two-way valve selection did not persist");
|
||||
valveType().value="mixing";valveType().dispatchEvent(new Event("change",{bubbles:true}));await window.editorSettle();
|
||||
const valve=()=>circuit().querySelector(".nf-hydronic-control");valve().open=true;
|
||||
await window.pickHydronic(valve(),"Rückmeldung",604,"Ventil Ist");await window.pickHydronic(valve(),"Befehl",603,"Ventil Soll");
|
||||
[...valve().querySelectorAll("label.nf-check")].find((l)=>l.textContent.includes("3D umkehren")).querySelector("input").click();await window.editorSettle();
|
||||
|
||||
Reference in new issue
Block a user