From 898961a963d9fc758ec9669fcd532ce14f25db8c Mon Sep 17 00:00:00 2001 From: Leon Badke Date: Fri, 5 Sep 2025 12:28:33 +0200 Subject: [PATCH 1/2] add get-method to read solar cumulative production --- PyViCare/PyViCareHeatingDevice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PyViCare/PyViCareHeatingDevice.py b/PyViCare/PyViCareHeatingDevice.py index 64f8c4f9..9be62abd 100644 --- a/PyViCare/PyViCareHeatingDevice.py +++ b/PyViCare/PyViCareHeatingDevice.py @@ -230,6 +230,10 @@ def getSolarPowerProduction(self): def getSolarPowerProductionUnit(self): return self.service.getProperty("heating.solar.power.production")["properties"]["day"]["unit"] + @handleNotSupported + def getSolarPowerProductionCumulativeProduced(self): + return self.service.getProperty("heating.solar.power.cumulativeProduced")["properties"]["value"]["value"] + @handleNotSupported def getSolarPowerProductionDays(self): return self.service.getProperty("heating.solar.power.production")["properties"]["day"]["value"] From 586125f884878396b374c60bea8b9183a5bfe8d7 Mon Sep 17 00:00:00 2001 From: Christopher Fenner <9592452+CFenner@users.noreply.github.com> Date: Wed, 19 Nov 2025 23:35:29 +0100 Subject: [PATCH 2/2] Update PyViCareHeatingDevice.py --- PyViCare/PyViCareHeatingDevice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PyViCare/PyViCareHeatingDevice.py b/PyViCare/PyViCareHeatingDevice.py index 9be62abd..ed8f4c83 100644 --- a/PyViCare/PyViCareHeatingDevice.py +++ b/PyViCare/PyViCareHeatingDevice.py @@ -226,14 +226,14 @@ def getSolarStorageTemperature(self): def getSolarPowerProduction(self): return self.getSolarPowerProductionDays() - @handleNotSupported - def getSolarPowerProductionUnit(self): - return self.service.getProperty("heating.solar.power.production")["properties"]["day"]["unit"] - @handleNotSupported def getSolarPowerProductionCumulativeProduced(self): return self.service.getProperty("heating.solar.power.cumulativeProduced")["properties"]["value"]["value"] + @handleNotSupported + def getSolarPowerProductionUnit(self): + return self.service.getProperty("heating.solar.power.production")["properties"]["day"]["unit"] + @handleNotSupported def getSolarPowerProductionDays(self): return self.service.getProperty("heating.solar.power.production")["properties"]["day"]["value"]