diff --git a/src/widgets/evcc/component.jsx b/src/widgets/evcc/component.jsx index d0debdc3d..4f08d7329 100644 --- a/src/widgets/evcc/component.jsx +++ b/src/widgets/evcc/component.jsx @@ -29,17 +29,20 @@ export default function Component({ service }) { ); } + // evcc v0.207 changed the API structure so its no longer under 'result' + const data = stateData.result ?? stateData; + // broken by evcc v0.133.0 https://github.com/evcc-io/evcc/commit/9dcb1fa0a7c08dd926b79309aa1f676a5fc6c8aa - const gridPower = stateData.result.gridPower ?? stateData.result.grid?.power ?? 0; + const gridPower = data.gridPower ?? data.grid?.power ?? 0; return ( - + - + );