From 8b4d40f85ee65460b54d349315c02c1e39e4c6f8 Mon Sep 17 00:00:00 2001 From: atef Date: Wed, 12 Nov 2025 15:52:01 +0100 Subject: [PATCH] Update the aggregator path for PV. --- csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs b/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs index f68d0a1c8..19bb623a5 100644 --- a/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs +++ b/csharp/App/SodiStoreMax/src/AggregationService/Aggregator.cs @@ -137,9 +137,9 @@ public static class Aggregator { batterySoc.Add((double)jsonObject["Battery"]["Soc"]); } - if (jsonObject["PvOnDc"] != null && jsonObject["PvOnDc"]["DcWh"] != null) + if (jsonObject["PvOnDc"] != null && jsonObject["PvOnDc"]["1"]["DcWh"] != null) { - pvPowerSum.Add((double)jsonObject["PvOnDc"]["DcWh"]); + pvPowerSum.Add((double)jsonObject["PvOnDc"]["1"]["DcWh"]); } if (jsonObject["Battery"] != null && jsonObject["Battery"]["Power"] != null) {