feat: discover Symcon room utility meters and sum floor consumption

This commit is contained in:
jhartworks committed 2026-11-11 09:55:26 +01:00
1 parent 18e73194e0
commit a804fc8e15
27 files changed
+2504 -1874

No files matched your search

+7
View File
@@ -787,6 +787,13 @@ FLOOR_SCHEMA = vol.Schema(
),
# the floor's own meter: a power sensor shown on the floor label and the house card of this floor
vol.Optional("power_entity", default=None): vol.Any(None, vol.All(str, vol.Length(max=255))),
vol.Optional("utility_meters"): vol.Any(
None,
{
vol.Optional(kind): {vol.Optional("power"): _ENTITY_REF, vol.Optional("energy"): _ENTITY_REF}
for kind in ("electricity", "water", "gas", "heating", "cooling")
},
),
vol.Optional("outdoor", default=list): vol.All([OUTDOOR_SCHEMA], vol.Length(max=MAX_ITEMS)),
# free-standing walls (partitions); room walls come from the room edges
vol.Optional("walls", default=list): vol.All([FREE_WALL_SCHEMA], vol.Length(max=MAX_ITEMS)),