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) {