remove soh for sodistore home

This commit is contained in:
Yinyin Liu 2026-03-28 10:10:21 +01:00
parent c4b293fb74
commit e989db54c2
2 changed files with 4 additions and 62 deletions

View File

@ -56,7 +56,6 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
Current: device?.[`Battery${batteryIndex}PackTotalCurrent`] ?? 0, Current: device?.[`Battery${batteryIndex}PackTotalCurrent`] ?? 0,
Power: device?.[`Battery${batteryIndex}Power`] ?? 0, Power: device?.[`Battery${batteryIndex}Power`] ?? 0,
Soc: device?.[`Battery${batteryIndex}Soc`] ?? device?.[`Battery${batteryIndex}SocSecondvalue`] ?? 0, Soc: device?.[`Battery${batteryIndex}Soc`] ?? device?.[`Battery${batteryIndex}SocSecondvalue`] ?? 0,
Soh: device?.[`Battery${batteryIndex}Soh`] ?? 0,
} }
}; };
} else { } else {
@ -69,7 +68,6 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
Current: inverter[`Battery${index}Current`] ?? 0, Current: inverter[`Battery${index}Current`] ?? 0,
Power: inverter[`Battery${index}Power`] ?? 0, Power: inverter[`Battery${index}Power`] ?? 0,
Soc: inverter[`Battery${index}Soc`] ?? 0, Soc: inverter[`Battery${index}Soc`] ?? 0,
Soh: inverter[`Battery${index}Soh`] ?? 0,
} }
}; };
} }
@ -221,7 +219,7 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
<TableCell align="center"><FormattedMessage id="batteryVoltage" defaultMessage="Battery Voltage" /></TableCell> <TableCell align="center"><FormattedMessage id="batteryVoltage" defaultMessage="Battery Voltage" /></TableCell>
<TableCell align="center"><FormattedMessage id="current" defaultMessage="Current" /></TableCell> <TableCell align="center"><FormattedMessage id="current" defaultMessage="Current" /></TableCell>
<TableCell align="center"><FormattedMessage id="soc" defaultMessage="SoC" /></TableCell> <TableCell align="center"><FormattedMessage id="soc" defaultMessage="SoC" /></TableCell>
<TableCell align="center"><FormattedMessage id="soh" defaultMessage="SoH" /></TableCell> {/*<TableCell align="center"><FormattedMessage id="soh" defaultMessage="SoH" /></TableCell>*/}
{/*<TableCell align="center">Daily Charge Energy</TableCell>*/} {/*<TableCell align="center">Daily Charge Energy</TableCell>*/}
{/*<TableCell align="center">Daily Discharge Energy</TableCell>*/} {/*<TableCell align="center">Daily Discharge Energy</TableCell>*/}
</TableRow> </TableRow>
@ -294,7 +292,7 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
> >
{battery.Soc + ' %'} {battery.Soc + ' %'}
</TableCell> </TableCell>
<TableCell {/*<TableCell
sx={{ sx={{
width: '8%', width: '8%',
textAlign: 'center', textAlign: 'center',
@ -308,7 +306,7 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
}} }}
> >
{battery.Soh + ' %'} {battery.Soh + ' %'}
</TableCell> </TableCell>*/}
{/*<TableCell*/} {/*<TableCell*/}
{/* sx={{*/} {/* sx={{*/}
{/* width: '15%',*/} {/* width: '15%',*/}

View File

@ -754,63 +754,7 @@ function MainStatsSodioHome(props: MainStatsSodioHomeProps) {
</Card> </Card>
</Grid> </Grid>
{/* Battery SoH Chart */} {/* Battery SoH Chart — removed for SodiostoreHome */}
<Grid item md={12} xs={12}>
<Card
sx={{
overflow: 'visible',
marginTop: '10px',
marginBottom: '30px'
}}
>
<Box sx={{ marginLeft: '20px' }}>
<Box display="flex" alignItems="center">
<Box>
<Typography variant="subtitle1" noWrap>
<FormattedMessage
id="battery_soh"
defaultMessage="Battery SOH (State Of Health)"
/>
</Typography>
</Box>
</Box>
<Box
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-start',
pt: 3
}}
></Box>
</Box>
<ReactApexChart
options={{
...getChartOptions(
batteryViewDataArray[chartState].chartOverview.Soh,
'daily',
[],
true
),
chart: {
events: {
beforeZoom: (chartContext, options) => {
startZoom();
handleBeforeZoom(chartContext, options);
}
}
}
}}
series={generateSeries(
batteryViewDataArray[chartState].chartData,
'Soh',
'green'
)}
type="line"
height={420}
/>
</Card>
</Grid>
</Grid> </Grid>
</> </>
)} )}