Energy in Home Assistant
Understand consumption, generation and storage.
Everything in one overview
The energy dashboard can combine data from your electricity grid, solar panels, home battery and individual appliances. Gas and water consumption can also be included when suitable readings are available.
Start with a measurement source
You do not need to set up every component at once. Start with a supported meter or another energy source and expand later. Available information depends on your hardware and integrations.
Power is not the same as energy
Watts and kilowatts indicate current power. Kilowatt-hours describe energy used over a period. Use sensors matching the requested measurement type. An integration helper can convert power readings into calculated energy.
A dashboard for your installation
Home Assistant builds the overview from your configured sources. Check units and sensor properties when data is missing. Also read about integrations for devices and services.
Why a sensor is missing
The dashboard expects a sensor with the correct unit, device class and statistical properties. Energy requires the energy device class with total or total_increasing as state class. Power sensors use power and measurement. A simple input field is not a suitable energy sensor. Check statistics issues under Settings > Tools > Statistics.
Avoid double counting
A total reading and the individual appliances within it represent different levels. Use appliance readings to understand the total, not to add the same consumption again as grid import. Combining periodically resetting meters can cause incorrect jumps. Add cumulative source readings separately where possible.
Tariffs and measurement accuracy
A utility meter helper can split consumption into tariff periods. If you only measure power, an integration helper can calculate energy; accuracy depends partly on measurement frequency. Check a new setup over a full day and compare it with your meter. Do not assess costs from a single snapshot.
Source: Home Assistant, Home Assistant: energy FAQ