feat: add native charging station telemetry and aliased lock status

This commit is contained in:
jhartworks committed 2026-11-12 14:55:18 +01:00
1 parent df4a6f36a3
commit 59292517b7
24 files changed
+1756 -1304

No files matched your search

+2 -2
View File
@@ -60,7 +60,7 @@ try {
await e.updateComplete; await window.nfPanel.updateComplete; await e.updateComplete;
const marker = [...e.shadowRoot.querySelectorAll("label.nf-field")].find((l) => l.textContent.trim().startsWith(e.t("marker_show")));
if (!marker) throw new Error("A power-only pack light must offer the marker controls too");
const option = [...e.shadowRoot.querySelectorAll("label.nf-check")].find((l) => l.textContent.includes("Leistung als 3D-Kachel"));
const option = [...e.shadowRoot.querySelectorAll("label.nf-check")].find((l) => l.textContent.includes(e.t("charging_card")));
if (!option) throw new Error("Power card setting missing");
option.querySelector("input").click();
await e.updateComplete; await window.nfPanel.updateComplete; await e.updateComplete;
@@ -131,7 +131,7 @@ try {
await page.waitForFunction(() => window.nfPanel.shadowRoot.querySelector("nf-editor")?.shadowRoot);
await page.evaluate(async () => {
const e = window.nfPanel.shadowRoot.querySelector("nf-editor"); e._floorId = window.powerFloor; e.selectItem("furniture", "Wallbox"); await e.updateComplete;
const option = [...e.shadowRoot.querySelectorAll("label.nf-check")].find((l) => l.textContent.includes("Leistung als 3D-Kachel"));
const option = [...e.shadowRoot.querySelectorAll("label.nf-check")].find((l) => l.textContent.includes(e.t("charging_card")));
if (!option.querySelector("input").checked) throw new Error("Power card flag did not survive reopening the editor");
option.querySelector("input").click();
await e.updateComplete; await window.nfPanel.updateComplete;