From 14038cd13d705d8426dd925e5ff664d9f3689f22 Mon Sep 17 00:00:00 2001 From: atef Date: Fri, 2 Aug 2024 13:25:47 +0200 Subject: [PATCH] Change The PV daily Power to the last reading instead of Max value --- csharp/App/SaliMax/src/AggregationService/Aggregator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/App/SaliMax/src/AggregationService/Aggregator.cs b/csharp/App/SaliMax/src/AggregationService/Aggregator.cs index f05649ccc..37c7d3913 100644 --- a/csharp/App/SaliMax/src/AggregationService/Aggregator.cs +++ b/csharp/App/SaliMax/src/AggregationService/Aggregator.cs @@ -342,7 +342,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.Max() : 0.0, + PvPower = pvPower.Any() ? pvPower.Last() : 0.0, HeatingPower = heatingPowerAvg.Any() ? heatingPowerAvg.Average() : 0.0, };