Change The PV daily Power to the last reading instead of Max value

This commit is contained in:
atef 2024-08-02 13:25:47 +02:00
parent 1efefc6af4
commit 14038cd13d
1 changed files with 1 additions and 1 deletions

View File

@ -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,
};