feat: improve Symcon controls, device readings and designer help

This commit is contained in:
jhartworks committed 2026-11-10 09:19:13 +01:00
1 parent ff54f4461a
commit 00fca890de
50 files changed
+2447 -1840

No files matched your search

+4 -2
View File
@@ -1,6 +1,8 @@
// 2D editor: floors, rooms (rectangles and free shapes), snapping, undo, background template.
import { html, LitElement, nothing, svg, type PropertyValues, type TemplateResult } from "lit";
import { withCoverControls } from "../entities/cover-controls.ts";
import { hint } from "./editor/fields.ts";
import { fetchImage, importPack, storeImage } from "../api.ts";
import { defaultHeight, entityName, kindOf, roomEntities } from "../devices.ts";
import { closeGaps, suggestedThickness } from "../geometry/gaps.ts";
@@ -1043,7 +1045,7 @@ export class NfEditor extends LitElement {
</div>`}
${this.render3dBar()}
<nf-view3d
.hass=${this.hass}
.hass=${this.hass ? withCoverControls(this.hass, this._doc3d.floors) : undefined}
.building=${this._doc3d}
.floorId=${this.houseTool ? null : this._floorId}
.roomId=${null}
@@ -3210,7 +3212,7 @@ export class NfEditor extends LitElement {
${this.planLayers(floor, walls?.walls ?? null)}
</svg>
${this.renderContext()}
<p class="nf-hint ${this._fixedHint ? "nf-hint-fixed" : ""}">${this._pick ? this.t("robot_cal_doing") : !floor ? this.t("hint_empty") : this._fixedHint ? this.t("fixed_drag_hint") : this.t(`hint_${this._tool}` as I18nKey)}</p>
${this._pick || this._fixedHint ? html`<p class="nf-hint ${this._fixedHint ? "nf-hint-fixed" : ""}">${this._pick ? this.t("robot_cal_doing") : this.t("fixed_drag_hint")}</p>` : html`<div class="nf-hint">${hint(!floor ? this.t("hint_empty") : this.t(`hint_${this._tool}` as I18nKey))}</div>`}
<button class="nf-keys-open" title=${this.t("keys_title")} aria-label=${this.t("keys_title")} @click=${() => (this._keys = true)}>?</button>
${this.isAdmin
? renderTour((k, vars) => this.t(k, vars), this._tour, (step) => {