feat: add 3D hydronic manifolds buffer tanks and fresh water stations

This commit is contained in:
jhartworks committed 2026-11-12 14:28:30 +01:00
1 parent 93c015ec77
commit 173d02e3cc
37 files changed
+3253 -1815

No files matched your search

@@ -11,6 +11,7 @@ import { pluginWatched } from "../../plugins/registry.ts";
import type { HomeAssistant } from "../../types.ts";
import { weatherEntity } from "../../weather.ts";
import { utilityWatched } from "../../utilities.ts";
import { hydronicRefs } from "../../hydronic-model.ts";
export interface WatchInputs {
hass: HomeAssistant;
@@ -44,6 +45,7 @@ function furnitureIds(inputs: WatchInputs): MaybeId[] {
// a washer's, dryer's or dishwasher's time left comes from a sensor next to its switch
...pieces.filter((m) => m.type === "washer" || m.type === "dryer" || m.type === "dishwasher").flatMap((m) => deviceSiblings(hass, furnitureLinks.get(m.id)?.entity ?? furnitureLinks.get(m.id)?.power).filter((id) => id.startsWith("sensor."))),
...pieces.flatMap((m) => [m.door_left, m.door_right, m.soc, m.status, m.charge, m.export, m.temp_entity, m.temp_entity2, ...(m.values ?? []).map((v) => v.entity)]),
...pieces.flatMap(hydronicRefs),
...pieces.filter((m) => m.type === "robot_vacuum").map((m) => robotRoomSensor(hass, furnitureLinks.get(m.id)?.entity ?? null, m.room_sensor)),
...pieces.flatMap((m) => (m.pictures ?? []).flatMap((rule) => [rule.entity, ...(rule.image.startsWith("camera:") ? [rule.image.slice("camera:".length)] : [])])),
];