From ca08d8d6deb7f515213d798f3e3e695adaa1d4cf Mon Sep 17 00:00:00 2001 From: atef Date: Tue, 18 Nov 2025 02:29:51 +0100 Subject: [PATCH] update to max pv production --- csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs b/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs index 19bb623a5..0699adcb1 100644 --- a/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs +++ b/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs @@ -295,7 +295,7 @@ public static class Aggregator ChargingBatteryPower = batteryChargePower.Any() ? batteryChargePower.Average() : 0.0, GridExportPower = gridPowerExport.Any() ? gridPowerExport.Sum() : 0.0, GridImportPower = gridPowerImport.Any() ? gridPowerImport.Sum() : 0.0, - PvPower = pvPower.Any() ? pvPower.Last() : 0.0, + PvPower = pvPower.Any() ? pvPower.Max() : 0.0, HeatingPower = heatingPowerAvg.Any() ? heatingPowerAvg.Average() : 0.0, };