We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ab399 commit e6236acCopy full SHA for e6236ac
plugwise/helper.py
@@ -23,6 +23,7 @@
23
DOMAIN_OBJECTS,
24
ENERGY_KILO_WATT_HOUR,
25
ENERGY_WATT_HOUR,
26
+ HEATER_CENTRAL_MEASUREMENTS,
27
HOME_MEASUREMENTS,
28
LOCATIONS,
29
MODULES,
@@ -528,7 +529,10 @@ def appliance_data(self, dev_id):
528
529
appliances = search.findall(f'.//appliance[@id="{dev_id}"]')
530
531
for appliance in appliances:
- for measurement, attrs in DEVICE_MEASUREMENTS.items():
532
+ measurements = DEVICE_MEASUREMENTS.items()
533
+ if self.active_device_present:
534
+ measurements = {**DEVICE_MEASUREMENTS, **HEATER_CENTRAL_MEASUREMENTS}.items()
535
+ for measurement, attrs in measurements:
536
537
p_locator = (
538
f'.//logs/point_log[type="{measurement}"]/period/measurement'
0 commit comments