From bd35496a4ed096976bca6b0e8c67784fdb68be0a Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Wed, 12 Nov 2025 15:32:01 +0100 Subject: [PATCH] adpated data paths for Live View of SodistoreHome on monitor --- .../src/content/dashboards/Log/graph.util.tsx | 18 ++++++- .../Topology/TopologySodistoreHome.tsx | 52 +++++++++---------- 2 files changed, 43 insertions(+), 27 deletions(-) diff --git a/typescript/frontend-marios2/src/content/dashboards/Log/graph.util.tsx b/typescript/frontend-marios2/src/content/dashboards/Log/graph.util.tsx index 06d0e6132..dbfa788e0 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Log/graph.util.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Log/graph.util.tsx @@ -434,6 +434,17 @@ export interface JSONRecordData { }; }; + // For SodistoreHome + InverterRecord: { + GridPower:number; + Battery1Power:number; + Battery1Soc:number; + Battery2Power:number; + Battery2Soc:number; + PvPower:number; + ConsumptionPower:number; + }; + AcDcGrowatt: { AcChargeEnable: number; ActivePowerPercentDerating: number; @@ -1057,7 +1068,12 @@ export const getHighestConnectionValue = (values: JSONRecordData) => { 'AcDcGrowatt.TotalPvPower', 'AcDcGrowatt.BatteriesRecords.Power', 'AcDcGrowatt.BatteriesRecords.TotalChargeEnergy', - 'AcDcGrowatt.ConsumptionPower' + 'AcDcGrowatt.ConsumptionPower', + 'InverterRecord.GridPower', + 'InverterRecord.PvPower', + 'InverterRecord.Battery1Power', + 'InverterRecord.Battery2Power', + 'InverterRecord.ConsumptionPower' ]; // Helper function to safely get a value from a nested path diff --git a/typescript/frontend-marios2/src/content/dashboards/Topology/TopologySodistoreHome.tsx b/typescript/frontend-marios2/src/content/dashboards/Topology/TopologySodistoreHome.tsx index 6ed3d19df..d4eb9c27a 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Topology/TopologySodistoreHome.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Topology/TopologySodistoreHome.tsx @@ -113,10 +113,10 @@ function TopologySodistoreHome(props: TopologySodistoreHomeProps) {