Skip to content

Commit e74090a

Browse files
committed
Add self-consumption display to SolisBox
1 parent dfe9abf commit e74090a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎frontend/src/components/SolisBox.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ const SolisBox: React.FC<SolisBoxProps> = ({ className }) => {
4848
fontSize: "14px",
4949
}}
5050
>
51+
{data.grid_power !== null && (
52+
<DrawerRow
53+
label="Käyttää"
54+
value={`${Math.max(0, data.power - data.grid_power).toFixed(1)} ${data.power_unit}`}
55+
/>
56+
)}
5157
<DrawerRow
5258
label="Tänään"
5359
value={`${data.today_energy} ${data.today_energy_unit}`}

0 commit comments

Comments
 (0)