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
@@ -19,6 +19,8 @@ import { roomsOnly } from "./rooms-only.ts";
|
||||
import { colorSchemeOf, controls, readableStyles, tokens } from "./styles.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 type { WallMode } from "./viewer/viewer3d.ts";
|
||||
import { lookNow } from "./themes.ts";
|
||||
|
||||
@@ -318,7 +320,7 @@ export class NextFloorCard extends LitElement {
|
||||
};
|
||||
const eye = c?.controls_hidden !== undefined || (c?.controls_hide_after ?? 0) > 0;
|
||||
return html`<nf-view3d
|
||||
.hass=${withCoverControls(this.hass, b.floors)}
|
||||
.hass=${withSymconWeather(withCoverControls(this.hass, b.floors), b.settings)}
|
||||
.building=${b}
|
||||
.packs=${this.data.packs}
|
||||
.floorId=${s.floorId}
|
||||
@@ -364,7 +366,7 @@ export class NextFloorCard extends LitElement {
|
||||
.panelOpen=${!!this._roomId && c?.room_panel !== false}
|
||||
.alerts=${c?.alerts !== false}
|
||||
.alertJump=${!!c?.alert_jump}
|
||||
.announcements=${c?.announcements !== false && !screenMuted()}
|
||||
.announcements=${!isSymcon(this.hass) && c?.announcements !== false && !screenMuted()}
|
||||
.sensorBar=${c?.sensor_bar !== false}
|
||||
.glassWalls=${typeof c?.glass_walls === "number" ? Math.min(100, Math.max(0, c.glass_walls)) : null}
|
||||
.screenName=${c?.screen_name ?? screenName()}
|
||||
|
||||
Reference in new issue
Block a user