feat: discover Symcon room utility meters and sum floor consumption
This commit is contained in:
1 parent
18e73194e0
commit
a804fc8e15
27 files changed
+2504
-1874
No files matched your search
@@ -11,6 +11,10 @@ import type { ShowWhen } from "./entities/visibility.ts";
|
||||
|
||||
export type Vec2 = [number, number];
|
||||
|
||||
export const UTILITY_KINDS = ["electricity", "water", "gas", "heating", "cooling"] as const;
|
||||
export type UtilityKind = typeof UTILITY_KINDS[number];
|
||||
export interface UtilityMeterRefs { power?: EntityRef; energy?: EntityRef }
|
||||
|
||||
/** Sensors a room's climate is read from (null = automatic, "none" = no value). */
|
||||
export interface RoomClimate {
|
||||
temperature?: string | string[] | null;
|
||||
@@ -439,6 +443,8 @@ export interface Floor {
|
||||
layer?: boolean;
|
||||
/** The floor's own meter: a power sensor whose use shows on the floor label and, in this floor's view, on the house card. */
|
||||
power_entity?: string | null;
|
||||
/** Native meters override the matching room sum, independently for each medium and metric. */
|
||||
utility_meters?: Partial<Record<UtilityKind, UtilityMeterRefs>> | null;
|
||||
/** Notes pinned to a spot of the floor ("filter due in March", "fuse 12"), shown in 3D and found by the search. */
|
||||
notes?: PlanNote[];
|
||||
/** Paint of this floor's outer walls in the solid wall view ("#rrggbb"; null = the building's outside colour): a plinth, a garage (#110). */
|
||||
|
||||
Reference in new issue
Block a user