feat: add native Symcon room climate, schedules, weather and presence
This commit is contained in:
1 parent
510aece983
commit
18e73194e0
37 files changed
+2861
-2132
No files matched your search
@@ -22,6 +22,8 @@ import { colorSchemeOf, controls, readableStyles, tokens } from "./styles.ts";
|
||||
import { LOOKS, lookNow, type Look } from "./themes.ts";
|
||||
import type { HomeAssistant } from "./types.ts";
|
||||
import { withCoverControls } from "./entities/cover-controls.ts";
|
||||
import { withSymconWeather } from "./symcon-weather.ts";
|
||||
import { isSymcon } from "./entities/symcon-values.ts";
|
||||
import { allOffPlan, floorSwitchables, type ServiceCall } from "./live/all-off.ts";
|
||||
import type { FloorStack, Quality, WallMode } from "./viewer/viewer3d.ts";
|
||||
|
||||
@@ -331,7 +333,7 @@ export class NextFloorPanel extends LitElement {
|
||||
>${this.t("glass_walls")}
|
||||
<input type="range" min="0" max="100" step="5" .value=${String(p.glassWalls)} aria-label=${this.t("glass_walls")} @input=${(e: Event) => this.setPref("glassWalls", Number((e.target as HTMLInputElement).value))} />
|
||||
</label>
|
||||
<details class="nf-seg nf-screen-pick">
|
||||
${isSymcon(this.hass) ? nothing : html`<details class="nf-seg nf-screen-pick">
|
||||
<summary title=${this.t(p.announceMuted ? "announce_muted" : "announce_on")} aria-label=${this.t(p.announceMuted ? "announce_muted" : "announce_on")}>${p.announceMuted ? "🔇" : "📢"}</summary>
|
||||
<div class="nf-screen-menu">
|
||||
<label class="nf-check"><input type="checkbox" .checked=${!p.announceMuted} @change=${(e: Event) => this.setPref("announceMuted", !(e.target as HTMLInputElement).checked)} /> ${this.t("announce_on")}</label>
|
||||
@@ -341,7 +343,7 @@ export class NextFloorPanel extends LitElement {
|
||||
</label>
|
||||
<p class="nf-screen-hint">${this.t("screen_name_hint")}</p>
|
||||
</div>
|
||||
</details>
|
||||
</details>`}
|
||||
<div class="nf-seg nf-quality">
|
||||
<button aria-pressed=${p.timeSlider} title=${this.t("time_of_day_hint")} @click=${() => this.toggleTimeSlider(!p.timeSlider)}>☀ ${this.t("time_of_day")}</button>
|
||||
<button aria-pressed=${p.menuOpen} title=${this.t("menu_open_hint")} @click=${() => this.setPref("menuOpen", !p.menuOpen)}>★ ${this.t("menu_open")}</button>
|
||||
@@ -585,7 +587,7 @@ export class NextFloorPanel extends LitElement {
|
||||
<div class="nf-stage-wrap ${this._roomId ? "nf-room-open" : ""}">
|
||||
<nf-view3d
|
||||
class="nf-body"
|
||||
.hass=${withCoverControls(this.hass, building.floors)}
|
||||
.hass=${withSymconWeather(withCoverControls(this.hass, building.floors), building.settings)}
|
||||
.building=${building}
|
||||
.packs=${this.data.packs}
|
||||
.floorStack=${p.floorStack}
|
||||
@@ -607,7 +609,7 @@ export class NextFloorPanel extends LitElement {
|
||||
.theme=${lookNow(p.theme, this.sunState())}
|
||||
.timeOfDay=${this._timeOfDay}
|
||||
.clock=${p.clock === "none" ? null : p.clock}
|
||||
.announcements=${!p.announceMuted}
|
||||
.announcements=${!isSymcon(this.hass) && !p.announceMuted}
|
||||
.glassWalls=${p.glassWalls}
|
||||
.screenName=${p.screenName || null}
|
||||
.lockButton=${true}
|
||||
|
||||
Reference in new issue
Block a user