Build a home electricity dashboard
ActivitiesProjects
Connect readings from a compatible meter and chart electricity use by hour or day.
Building a home electricity dashboard in Home Assistant turns raw meter and appliance readings into a single view of where your household power goes. You do not need to instrument every circuit at once. Connecting even one compatible source—an electricity meter, an energy monitor, a smart plug, or a solar inverter—is enough to populate the dashboard, because Home Assistant generates its energy cards automatically from whatever sources you configure. From there, you can add more inputs as you go, though hardware compatibility and the work involved depend heavily on your home's setup.
Choosing where the electricity data comes from
Grid electricity data usually arrives in one of three ways: a direct readout from a compatible utility meter, an integration with your energy provider, or a current-transformer (CT) clamp monitor that senses current passing through a wire. Meter access and compatibility vary by model and region; some provider integrations supply real-time data, while historical feeds may be delayed by a few days.
CT clamps give you local readings regardless of your utility, but installing them requires opening the electrical cabinet. That work calls for familiarity with electrical wiring and may require a licensed professional in some regions. If you want to track specific appliances without touching the panel, an energy-monitoring smart plug fits between the appliance and its wall outlet and measures the electricity flowing through it.
Power, energy, and avoiding double counting
Two measurements underpin every card on the dashboard: power is the instantaneous rate of energy transfer, measured in watts (W), while energy is the accumulated total over time, commonly measured in kilowatt-hours (kWh). Some smart plugs and monitors only report watts. When you add a power-only device, Home Assistant can create an Integration helper that estimates energy over time through numerical integration. A new helper only starts counting from the moment it is created rather than reconstructing past history, and sparse power samples make the estimate less exact when a load fluctuates between readings.
You can also connect a single whole-home energy meter to replace the dashboard's calculated home consumption total. Individual devices still appear as a breakdown, with whatever they do not measure shown as untracked usage, while grid, solar, and battery totals continue coming from their own sensors. When two measurements overlap—for example, a circuit monitor and a smart plug tracking one appliance plugged into that same circuit—add both as individual devices and assign the circuit monitor as the appliance's upstream device so the dashboard maps their relationship and helps prevent counting the same kilowatt-hours twice.
Connecting tariffs and reading the views
Setting up a grid connection requires an imported-energy statistic, with an exported-energy statistic added if your home sends power back to the grid and an optional power sensor if you want live and historical power views alongside energy totals. Some integrations supply statistics directly rather than as sensor entities, and with historical utility feeds you should pick the consumption statistic rather than a billing summary or forecast.
Homes on multi-tariff electricity plans need a separate grid connection and consumed-energy statistic for each tariff, plus a returned-energy statistic where applicable. A whole-meter power sensor can only be assigned to one grid connection, not reused across several; for third-party monitors that do not separate rates on their own, Home Assistant's `utility_meter` integration (which splits a single sensor's readings into separate rate-based trackers) can divide measurements into tariffs matching your contract. The energy sources table can display configured costs and export compensation, though those figures work best as estimates from your readings and tariff settings rather than an exact match for every charge on a utility bill.
Once data is flowing, the dashboard separates live power from historical energy. The power-flow Sankey—a flow chart whose proportional bands trace how electricity moves between sources and destinations—shows current watts and is not controlled by the date picker, whereas the energy Sankey, the usage-by-source graph (including energy returned to the grid), and device rankings or time-scaled device graphs all reflect the chosen historical period. You can also place those energy cards on custom dashboards through the visual card editor or YAML, depending on which sources are configured.
Fixing missing sensors and false spikes
If a sensor does not appear during setup, check that it is a sensor entity tracked by Home Assistant's Recorder (the component that logs sensor history), free of statistics errors, and carrying the expected attributes: energy sensors require an `energy` device class and a `total` or `total_increasing` state class, while power sensors require a `power` device class and a `measurement` state class.
Another common snag is summing multiple counters that reset on a schedule. If two counters reset even moments apart, the combined total can jump briefly and leave a false spike in long-term statistics. Adding each cumulative sensor separately avoids that artifact, and any recorded errors can be reviewed in the Statistics tool.
