diff --git a/src/widgets/evcc/component.jsx b/src/widgets/evcc/component.jsx index 4f08d7329..132851d07 100644 --- a/src/widgets/evcc/component.jsx +++ b/src/widgets/evcc/component.jsx @@ -35,15 +35,17 @@ export default function Component({ service }) { // broken by evcc v0.133.0 https://github.com/evcc-io/evcc/commit/9dcb1fa0a7c08dd926b79309aa1f676a5fc6c8aa const gridPower = data.gridPower ?? data.grid?.power ?? 0; + // Sum chargePower of all loadpoints + const totalChargePower = Array.isArray(data.loadpoints) + ? data.loadpoints.reduce((sum, lp) => sum + (lp.chargePower ?? 0), 0) + : 0; + return ( - + ); }