See what each circuit costs — inside Home Assistant

A small hub with current sensors that clip around the cables in your consumer unit, and a panel inside Home Assistant where you name each circuit and enter your tariff. The hub does the measuring and the pricing and keeps its own history, so Home Assistant simply shows the result.

what it takes and what it costs

Measuring with ESPHome today? See what changes

MIT-licensed component and integration · Home Assistant 2026.1 or later · your readings stay on your network

Screenshot. The RBgrid Hub panel inside Home Assistant: its own entry in the sidebar, four summary cards across the top, and a table of circuits — Main supply, Heat pump, Water heater, Car charger and Kitchen — each with its power, current, energy and what it has cost, with a Hub health card underneath.

The panel itself, with example figures.

The ESPHome configuration is already written

  • 1. Install the hub's software from a web page. Plug the hub into your computer, click Install.

  • 2. Add RBgrid to Home Assistant. It comes through HACS, and a panel appears in the sidebar.

  • 3. Name your circuits and enter your tariff. In the panel, with a mouse.

The sensors go around the cables once, in the consumer unit — that part is for an electrician.

And later releases install themselves: on the hub's page in Home Assistant a Firmware entity shows the version available and an Install button.

The whole way, step by step

What each circuit costs, at your own tariff

You enter your rates once. The hub works out the cost as the energy is used, and Home Assistant shows it per circuit.

  • Your plan: day, night and peak hours, with taxes, grid fees and VAT.
  • An hourly contract: day-ahead prices fetched by the hub, or taken from a price sensor you already have in Home Assistant.
  • A cost figure for every circuit — as a sensor for your dashboards, and by day, week or month in the panel.

Home Assistant off? The hub keeps counting

During an update, a restart or a week away with the server down, the hub goes on measuring and pricing, and stores every hour itself.

  • When Home Assistant is back, the integration fills in the missed hours — each in its place, with the cost the hub worked out at the time — for as long as the hub still holds the hours, which is 60 days.
  • Your totals stay whole: the hourly record comes from the hub, not from a dashboard that was switched off.

The Energy dashboard reads the live counters, so after a stop its daily and monthly totals are right and the hour-by-hour detail of those days is read from the hub's own series.

A new circuit is a setting

Plug in another module, press Scan, and its inputs are ready to become circuits.

  • Add a circuit: pick the input, name it, say what it is — the grid supply, an appliance, solar, a battery.
  • Change it later: rename it, move it to another input, set its phase or its breaker size.
  • A new circuit never needs a new build of the hub's software.
Screenshot. The Add point dialog over the panel's Points tab: a sensor channel picked — module 0 at address 0x50, input I1, an SCT-013-030 clamp — the name «Heat pump» typed in and the role «Device load» chosen, with the first point, Main supply, already in the list behind the dialog.

Works with the Energy dashboard you already have

Every circuit can go onto the Energy dashboard as an individual device.

  • A smart-meter or P1 reader as your grid? Keep it. RBgrid adds the circuits behind it, each counted once.
  • Starting empty? The integration's setup offers to fill the dashboard in for you.
  • Solar and battery circuits keep their own roles, and the setup places them by role: a Renewable source point goes on as generation, a Storage system point as a battery.

The hub tells, Home Assistant acts

Prices, cheap hours and faults arrive as sensors and events your automations can use.

  • Cheap windows as on/off sensors: the cheapest hours of the day, or the cheapest run that still finishes by a time you set.
  • Events when a module stops answering, or when power flows the way you did not expect.
  • Two blueprints are yours to import: a notification, and a switch that follows a cheap window.

RBgrid measures and accounts. What gets switched is your automation's business.

Measuring with your own ESPHome build today?

RBgrid for Home Assistant is an ESPHome device too. What changes is where the work and the history live.

Your own buildRBgrid
Adding a circuitedit the YAML, compile, update the device.Scan, Add, name it — in the panel.
Getting startedwrite a configuration, or adapt the board maker's example.a ready-made image, installed from the browser.
Where history livesin Home Assistant's recorder.on the hub, hour by hour, and everything it holds — 60 days of hours — imported into Home Assistant's statistics.
After Home Assistant was offtotals catch up if the sensor keeps a counter, and the hour-by-hour split of the stop is gone.the missed hours are filled in, each with its cost, for as long as the hub still holds them — 60 days of hours.
Costtemplates and utility_meter, or the grid total from the Energy dashboard.priced on the hub at your tariff or at day-ahead prices, with a cost sensor per circuit.
Settingsin YAML, plus whatever entities you exposed.in the panel — modules, circuits, clamp models, tariff, prices, time zone.

Prefer to keep YAML? The component drops into a configuration of your own, and the panel works with it.

It measures with rbAmp modules.

A meter with its own memory

How far back the hub keeps its own records:

  • 60 days hour by hour
  • 13 months day by day
  • 3 years by month
  • 10 years by year

For every circuit and every hour: energy in and out, cost, and voltage, current and power with their highs and lows — plus a flag when a record is incomplete.

Energy is priced in fifteen-minute steps and stored as hourly totals. Home Assistant's statistics receive everything the hub still holds — 60 days of hours.

Open, and yours

  • MIT-licensed. The ESPHome component and the Home Assistant integration are on GitHub, both MIT.
  • Your own build if you want one. Add the component to your ESPHome configuration and compile it yourself.
  • Local. The hub talks to Home Assistant directly and your readings stay on your network; day-ahead prices are the one thing it fetches from outside.

Good to know before you start

  • It measures with rbAmp modules. The clamps plug into the modules and the modules into the hub.
  • Home Assistant is the interface. On this path the hub has no web app of its own, and no MQTT, REST or WebSocket. If you want those, run the hub with its own app instead.
  • Cost per circuit is a sensor and a panel figure. The Energy dashboard itself works out money for the grid connection as a whole.
  • Reactive power and power factor do not reach Home Assistant. The hub measures and stores both and returns them to a hub command.
  • The integration is a HACS custom repository — you paste its address once.
  • It measures and accounts. What it changes are settings; your circuits stay with your own switchgear.
  • Three-phase supplies are covered: a three-phase module is one circuit with a reading for each phase. Split-phase supplies are not.
  • What it costs, and who fits it

Already running RBgrid with its own app?

From firmware 1.3.1 the hub moves into Home Assistant over the air, keeping your circuits, your tariff and its records. A hub that came with an earlier firmware takes one cable install first.

What changes when you switch

Put your circuits into Home Assistant

Not on Home Assistant? The hub has an app of its own