Every circuit into Home Assistant — two ways in
Run the hub beside Home Assistant and it publishes every measurement point over MQTT discovery. Run it inside Home Assistant as an ESPHome device and the points are simply there. Either way the energy entities go straight onto the Energy dashboard — no template, no utility_meter — and nothing leaves your own network.

One device, two ways to run it
Both run the same metering core on your own ESP32 and measure the same way. What differs is where you set it up and what you look at.
The hub's own app
the hub serves a web app at its own address; tariffs, points, history and prices are set there. Home Assistant connects over MQTT if you want it. Choose it if you don't run Home Assistant, or want the hub to stand on its own.
Inside Home Assistant
the hub is an ESPHome device, and the RBgrid panel in Home Assistant is where you set it up. No web app, no broker to run. Choose it if Home Assistant is already your interface.
Market prices work on both. The hub fetches the day-ahead price for your zone itself, applies your contract, and prices each 15-minute period with the price of that period — whichever way you run it. How dynamic prices work
Home Assistant
The hub publishes every point to HA over MQTT discovery; a table tells you what to add to the Energy dashboard.
Per hub
Net Power, Frequency, Cost (Total/Day), Export value (Total/Day) — shown as "Revenue (Total/Day)" in v1.1.0 — Bus Voltage
Per point
Current, Power, Reactive Power, Power Factor, Energy In/Out (lifetime, total_increasing) + Day
Set it up, step by step
Three guides in order: every circuit into Home Assistant, your supplier's tariff on the hub, then a heat pump that follows it.
- A power meter for Home Assistant, from flashing to the Energy dashboardFlash RBgrid on an ESP32, clamp one circuit, and get power and energy into the Home Assistant Energy dashboard over MQTT discovery, with no templates.
- Your supplier's day and night prices, applied to every circuitEnter your time-of-use zones, per-kWh charges and VAT in RBgrid, and see what each circuit costs at the price of the zone its energy was used in.
- Your heat pump on its own line: what it costs, then automate in HAMeasure a heat pump on its own circuit, see what it costs at your day and night prices, then drive its setpoint from the hub's tariff zone in HA.
Energy dashboard picks
| For the Energy dashboard | Pick the RBgrid entity |
|---|---|
| Grid consumption | the supply point's Energy In |
| Return to grid | the supply point's Energy Out |
| Solar panels | the generation point's Energy Out |
| Individual devices | each circuit point's Energy In |
All are total_increasing energy sensors (Wh), so the Energy dashboard accepts them directly — no utility_meter, no template.
Already have a P1 / DSMR reader? It reads the whole-house total at the meter; RBgrid measures each circuit behind it — the two complement each other. RBgrid does not read the P1 port itself.
MQTT, WebSocket and REST
mqttFixed topics
rbgrid/<mac12>/telemetry|status|cmd|cmd/resp; the prefix is not configurable. HA discovery underhomeassistant/sensor/…. Only the broker is configurable.- 3-second telemetry
- retained Home Assistant discovery
- a command channel for writes
- you set your own broker (none by default)
- fixed topic prefix
rbgrid/<mac>/….
rest · wsREST for integrators:
/api/v1/summary,/history,/export.csv,/economics. WebSocket telemetry frame v2. Recipes: Node-RED, Grafana.Node-RED and Grafana: read the REST/WebSocket feed or subscribe to MQTT — no plugin needed.
Market prices on the device, not just schedules. The hub fetches the day-ahead price for your zone itself and applies your contract on top: markup, energy tax, grid fee and VAT. It keeps the price it used beside the kilowatt-hours it used it on, so every cost figure can be traced back to the price that produced it. Zone schedules still work, and stand in when a provider can't be reached. And if the price already lives in Home Assistant, Home Assistant can pass it to the hub.