HABPanel EnergyFlow widget

Hi all,

I’ve been working on a HABPanel widget for my PV system with battery storage and finally got it to a point where I’m happy to share it. It’s built for phones in portrait mode – I use it on a Pixel 9.

What it shows:

  • Animated energy flows between PV, house, battery and grid (arrow speed follows the power)
  • Tiles that fill up from the bottom like on a Victron display – PV by power, battery by SoC, grid by import
  • 24 h history for PV and grid, pulled straight from the openHAB chart servlet (rrd4j)
  • Battery SoC ring, remaining kWh, and +/- buttons to change the minimum SoC right from the panel
  • Month and year totals incl. PV share of consumption

All items are set through the widget settings, so you don’t have to touch the code. Just import the JSON and pick your items. Labels can be switched between English and German.

I’m still on openHAB 2.4, so that’s the only version I could test. If someone gets it running on OH 3, 4 or 5, I’d be really interested to hear how it goes – especially whether the charts still line up.

Everything (widget files, docs, animated preview) is on GitHub:

energy-flow-widgetenergy-flow-widget2

BR Peter

energiefluss-widget_de.json (73.1 KB)

energy-flow-widget_en.json (72.3 KB)

Really nice work, Peter — the tiles filling from the bottom and the arrow speed following the power make flows much easier to read at a glance than a static dashboard. Good news for the newer-version question: since the widget is pure HABPanel config and pulls history through the rrd4j chart servlet, there’s nothing version-specific in the concept that should block OH3/OH4 users from trying it. One small tip on the min SoC buttons: if they only set an item value, pair that item with a small rule that actually pushes the limit to the inverter, so the setting can’t be missed when the panel isn’t open.

## v3.5

- New setting parseUnits: unit handling only when needed.
With it off, far fewer evaluations per update (smoother on phones)

energiefluss-widget_de.json (73.1 KB)

energy-flow-widget_en.json (72.3 KB)