Skip to content

Commit 665b86a

Browse files
committed
Start adding _collect_group_sensors()
1 parent 7ce779a commit 665b86a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

plugwise/helper.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
DHW_SETPOINT,
2222
DOMAIN_OBJECTS,
2323
ENERGY_WATT_HOUR,
24+
GROUP_MEASUREMENTS,
2425
HEATER_CENTRAL_MEASUREMENTS,
2526
LOCATIONS,
2627
LOGGER,
@@ -339,6 +340,11 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
339340
if smile_is_power and not self.smile.anna_p1:
340341
return data
341342

343+
# Get group data
344+
measurements = GROUP_MEASUREMENTS
345+
if "members" in entity:
346+
self._collect_group_sensors(data, entity, , entity_id, measurements)
347+
342348
# Get non-P1 data from APPLIANCES
343349
measurements = DEVICE_MEASUREMENTS
344350
if self._is_thermostat and entity_id == self.heater_id:
@@ -370,6 +376,16 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
370376

371377
return data
372378

379+
def _collect_group_sensors(
380+
self,
381+
data: GwEntityData,
382+
entity: GwEntityData,
383+
entity_id: str,
384+
measurements: dict[str, DATA | UOM],
385+
) -> None:
386+
"""Collect group sensors."""
387+
pass
388+
373389
def _collect_appliance_data(
374390
self,
375391
data: GwEntityData,

0 commit comments

Comments
 (0)