fix: support Symcon numeric dimmers and independent blind slat controls

This commit is contained in:
jhartworks committed 2026-11-09 15:24:59 +01:00
1 parent b934f78b9a
commit 24188f96f7
36 files changed
+1105 -683

No files matched your search

+2 -1
View File
@@ -30,7 +30,7 @@ const furnitureOf = (b: Building) => b.floors.flatMap((f) => f.furniture);
/** The sensors and entities behind the openings: blinds, contacts, tilt, positions. */
function openingIds(links: WatchInputs["openingLinks"]): MaybeId[] {
return [...links.values()].flatMap((e) => [e.cover, e.cover2, e.contact, e.tilt, e.contact2, e.tilt2, e.position, e.tiltAngle]);
return [...links.values()].flatMap((e) => [e.cover, e.cover2, e.coverTilt, e.cover2Tilt, e.contact, e.tilt, e.contact2, e.tilt2, e.position, e.tiltAngle]);
}
/** What furniture is linked to besides its device: state lights, doors and thermometers of a fridge, battery, status, charge, export, pictures. */
@@ -62,6 +62,7 @@ export function watchedEntities(inputs: WatchInputs): string[] {
const sensorsOfRooms = inputs.needsRoomSensors ? roomsOf(b).flatMap((r) => roomEntities(hass, r).filter((id) => id.startsWith("sensor.") || id.startsWith("climate."))) : [];
const ids: MaybeId[] = [
...placed,
...b.floors.flatMap((f) => f.placements.map((p) => p.cover_tilt)),
...openingIds(inputs.openingLinks),
...placed.map((id) => powerSensorFor(hass, id)),
// what plugins draw for a device may follow further entities (a camera's motion sensor)