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

+2 -1
View File
@@ -6,6 +6,7 @@ import { formatNumber, translate, type I18nKey } from "./i18n.ts";
import { iconSvg, mdiIcon } from "./icons.ts";
import { ceilingAt, offsetAt, pointInPolygon, type Building, type Floor, type Placement, type Room } from "./model.ts";
import type { HassEntity, HomeAssistant } from "./types.ts";
import { deviceValuesText } from "./entities/device-values.ts";
import type { DeviceMarker } from "./viewer/viewer3d.ts";
import { lightAnimation } from "./light-effects.ts";
import { pluginFloorWedge, pluginKind, pluginMarkerPatch } from "./plugins/registry.ts";
@@ -135,7 +136,7 @@ function markerFor(hass: HomeAssistant, floor: Floor, placed: Placement): Device
name: placed.name || entityName(hass, placed.entity_id, areaName),
ownName: placed.name || undefined,
showName: !!placed.show_name,
text: stateText(hass, st),
text: [stateText(hass, st), deviceValuesText(hass, placed.values)].filter(Boolean).join(" · "),
active: isActive(st),
unavailable: isUnavailable(st),
glow: kind === "light" ? scaleGlow(lightGlow(st), placed.glow_scale) : null,