fix Mode reading on OverView Page from Inverter reading

This commit is contained in:
Yinyin Liu 2026-02-12 11:39:39 +01:00
parent ed1efbddeb
commit 02d2ef054b
2 changed files with 7 additions and 1 deletions

View File

@ -452,6 +452,8 @@ export interface JSONRecordData {
Battery2Soh:number;
PvPower:number;
ConsumptionPower:number;
WorkingMode?:string;
OperatingMode?:string;
};
AcDcGrowatt: {

View File

@ -339,7 +339,11 @@ function SodioHomeInstallation(props: singleInstallationProps) {
fontSize: '14px'
}}
>
{values.Config.OperatingPriority}
{props.current_installation.device === 4
? values.InverterRecord?.WorkingMode
: props.current_installation.device === 3
? values.InverterRecord?.OperatingMode
: values.Config.OperatingPriority}
</Typography>
</div>
)}