feat: improve Symcon controls, device readings and designer help
This commit is contained in:
1 parent
ff54f4461a
commit
00fca890de
50 files changed
+2447
-1840
No files matched your search
@@ -162,7 +162,7 @@ export class NfQuickMenu extends LitElement {
|
||||
@click=${() => (moving ? this.call("cover", "stop_cover") : this.ask() && this.call("cover", closed > 50 ? "open_cover" : "close_cover"))}
|
||||
>
|
||||
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M4 4h16M5 4v15M19 4v15M7 8h10M7 12h10M7 16h10" /></svg>
|
||||
<b>${pos !== null ? `${pos} %` : stateText(this.hass, st)}</b>
|
||||
<b>${pos !== null ? `${Math.round(pos)} %` : stateText(this.hass, st)}</b>
|
||||
</button>
|
||||
</div>
|
||||
${setPos
|
||||
@@ -193,7 +193,7 @@ export class NfQuickMenu extends LitElement {
|
||||
max="100"
|
||||
.value=${String(tilt)}
|
||||
aria-label=${this.t("cover_tilt")}
|
||||
@change=${(e: Event) => this.call("cover", "set_cover_tilt_position", { entity_id: this.tiltEntity || this.entity, tilt_position: Number((e.target as HTMLInputElement).value) })}
|
||||
@change=${(e: Event) => this.call("cover", "set_cover_tilt_position", { entity_id: st.attributes.nf_cover_control ? this.entity : this.tiltEntity || this.entity, tilt_position: Number((e.target as HTMLInputElement).value) })}
|
||||
/></label>`;
|
||||
if (features & (COVER_OPEN_TILT | COVER_CLOSE_TILT))
|
||||
return html`<div class="qm-tilt-buttons">
|
||||
|
||||
Reference in new issue
Block a user