Smart home

Home Assistant Energy Dashboard Setup Guide 2026

On this page
    TL;DR: Get a power monitoring source (a whole-home clamp meter, smart plugs that report kWh, or your utility meter), add it under Settings > Devices & services, then configure the Energy dashboard under Settings > Dashboards > Energy. Add a price (fixed, or a price entity for peak and off-peak), wait an hour for statistics, and use the per-device view to find what actually drives your bill.

    Updated November 2026 for Home Assistant 2026.10. The Energy dashboard now has separate Electricity, Gas, Water and Now views, accepts live power sensors (W) next to energy sensors (kWh), and lets you pick which cards to show.

    Your electricity bill tells you one number per month. The Home Assistant Energy dashboard tells you which hour, which appliance and which tariff made that number. This guide is about getting from “I have a dashboard” to “I know what to change”, including the part most guides skip: making the cost figures match your real bill.

    What you need

    One measurement source is enough to start. The most useful single buy is a whole-home clamp meter (a small meter whose sensors clip around the main cables in your electrical panel) like the Shelly Pro 3EM (or the single phase Shelly EM), installed in your panel by someone qualified. For individual appliances, add a few smart plugs with energy monitoring. Prefer devices with a local integration (Shelly, ESPHome, Zigbee) over cloud ones, because cloud polling leaves gaps in your history.

    What you needShelly 1PM Gen3 relayGoes behind your existing wall switch, keeps it working, local API and power metering.Check price on AliExpressAthom smart plug (ESPHome or Tasmota preflashed)Wi-Fi plug with power metering and no cloud. Flashed and ready for Home Assistant.Check price on AliExpressESP32 development boardThe default board for ESPHome sensors and Bluetooth proxies.Check price on AliExpress

    Pick your data source

    Whole-home monitors

    • Shelly EM / Pro 3EM: clamps on the mains, local API, native Shelly integration.
    • Emporia Vue: per-circuit monitoring. Works best flashed with ESPHome for local control.
    • IoTaWatt: up to 14 channels, fully local, native integration.
    • DIY: an ESP32 running ESPHome with current clamps, if you are comfortable working near mains wiring.

    Your utility meter

    If your meter has a P1 port (Netherlands, Belgium, parts of Scandinavia), the DSMR Smart Meter integration reads exactly what you are billed on. UK SMETS2 meters can be read through the Glow (Hildebrand) integration, and many German meters through an IR reading head. This is the most accurate grid number you can get.

    Per-device plugs

    Smart plugs show you individual appliances: the fridge, the washing machine, the gaming PC, the 3D printer. They will not tell you about the oven or the water heater, which is why one whole-home source plus a few plugs is the best combination.

    Check your sensors before you start

    Open Developer tools > States and look at the sensor you want to use. The Energy dashboard needs a few attributes, which are labels that tell Home Assistant what kind of number a sensor reports. Energy (kWh, the unit on your bill) is a running total. Power (W, watts) is how much something draws right now.

    AliExpress deals
    • Energy sources (grid, solar, battery, devices): device_class: energy, a unit like kWh or Wh, and state_class: total or total_increasing.
    • Power sources (the live Now view): state_class: measurement with a unit like W or kW.

    If a device only reports power in watts, turn it into energy with the Integral helper: Settings > Devices & services > Helpers > Create helper > Integral sensor, choose the power sensor, set the metric prefix to k and the time unit to hours. For the integration method, pick Left for devices that switch on and off, like a heater.

    If a sensor reports energy in the wrong unit or without a state class, wrap it in a template sensor (a sensor you define yourself, based on another one):

    template:
      - sensor:
          - name: Heater energy
            unique_id: heater_energy_kwh
            unit_of_measurement: kWh
            device_class: energy
            state_class: total_increasing
            state: "{{ states('sensor.heater_energy_wh') | float(0) / 1000 }}"
            availability: "{{ has_value('sensor.heater_energy_wh') }}"

    The availability line matters. Without it, a sensor that drops out reports 0 for a moment, and the dashboard can count the jump back up as a huge spike.

    Configure the Energy dashboard

    1. Go to Settings > Dashboards > Energy.
    2. Under Electricity grid, add your grid consumption sensor. If you export solar, add the return sensor too.
    3. Set the cost for grid consumption: a static price, an entity with the current price, or an entity tracking the total costs if your integration already calculates cost.
    4. Add Solar panels and Home battery sources if you have them.
    5. Add Gas and Water if you have meters for them (m3, L or gal, or kWh for gas).
    6. Under Individual devices, add each smart plug’s energy sensor.
    7. Add power sensors where offered if you want live readings in the Now view.

    Long-term statistics are compiled every hour, so the history graphs stay empty at first. Give it an hour before you start debugging. To choose which cards show, open the Energy dashboard, use Edit dashboard and Customize cards.

    Make the cost match your real bill

    A static price is fine if you pay one flat rate. Most people do not. If you have peak and off-peak hours, create a price sensor and point the grid cost setting at it with Use an entity with current price:

    template:
      - sensor:
          - name: Electricity price
            unique_id: electricity_price
            unit_of_measurement: "USD/kWh"
            state: >
              {% if now().weekday() < 5 and 7 <= now().hour < 23 %}
                0.32
              {% else %}
                0.14
              {% endif %}

    Adjust the hours, weekdays and prices to your own tariff, and change the currency unit to match Settings > System > General. If your utility publishes dynamic prices (Nord Pool, Tibber, Octopus and similar), use the price entity from that integration instead.

    Two more things that make the number honest:

    • Fixed charges. Your bill includes a daily connection fee the dashboard does not know about. Keep it in mind when you compare, or track it separately with a Utility meter helper.
    • Taxes. Enter prices including VAT or sales tax, otherwise every figure is low by that percentage.

    Find what is actually costing you money

    Once a week of data is in, the useful questions are:

    • What is my baseload? Look at the grid usage between 2 and 5 AM. That is everything that never turns off: routers, an always-on computer, fridges, standby devices. Multiply the overnight watts by 730 hours and your price to see what always-on gear really costs per month.
    • Which device is the biggest share? The Individual devices card ranks your plugs. Anything big that is not on a plug shows up as the gap between total consumption and the sum of devices.
    • When do I use the most? If your peak is in the expensive tariff window, the washing machine, dishwasher and EV charger are the easy ones to shift with an automation.

    If you have solar panels or a home battery, the same data can drive when you charge and discharge. We cover that in solar and battery management with Home Assistant.

    Custom cards for more detail

    The built-in cards cover most needs. If you want an animated flow diagram, Power Flow Card Plus is the popular community card, installed from HACS or the new built-in Marketplace:

    type: custom:power-flow-card-plus
    entities:
      grid:
        entity: sensor.grid_power
      solar:
        entity: sensor.solar_power
      battery:
        entity: sensor.battery_power
        state_of_charge: sensor.battery_soc
      home:
        entity: sensor.home_power

    Use your own power sensor entity IDs. For long ranges and custom comparisons, ApexCharts Card can read the same long-term statistics.

    Common problems

    • The sensor is missing from the picker. Wrong state_class, device_class or unit. Fix it with a template or Integral helper as shown above.
    • Huge spikes. The sensor dropped to 0 or unavailable and came back. Add an availability template, then fix the bad hour under Developer tools > Statistics with the adjust sum option.
    • Solar export shows as consumption. The grid and return sensors are swapped, or your inverter reports one signed value that needs splitting into two template sensors.
    • Wrong currency. Set it under Settings > System > General.
    • The database is growing fast. Energy statistics are small and kept forever, but the raw power readings behind them are not. Exclude chatty power sensors from the recorder, as explained in our database retention guide.

    Frequently Asked Questions

    Where do I set up the Home Assistant Energy dashboard?

    Go to Settings > Dashboards > Energy. Add your grid consumption sensor under Electricity grid, then solar, battery, gas, water and individual devices if you have them. The official reference is home-assistant.io/docs/energy.

    Why does my energy sensor not show up in the Energy dashboard?

    It needs device_class energy, a unit like kWh or Wh, and state_class total or total_increasing. Power sensors in W only show up in the live power fields. Convert a power sensor to energy with the Integral helper.

    Can the Energy dashboard handle peak and off-peak prices?

    Yes. Create a template sensor that returns the current price per kWh and choose Use an entity with current price in the grid settings. Integrations for dynamic tariffs provide such a price entity already.

    Why are the energy graphs empty after setup?

    Long-term statistics are compiled once per hour, so new sources show nothing for up to an hour. Live power values in the Now view appear right away.

    What is the cheapest way to start monitoring energy in Home Assistant?

    A couple of Zigbee or Wi-Fi smart plugs with energy monitoring on your biggest plug-in appliances. For the whole house, a clamp meter like the Shelly EM gives you total consumption, which is what the bill is based on.

    Related guides

    Leave a comment

    Your email address will not be published. Required fields are marked *

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    Coming soon
    The ready-made Home Assistant dashboard
    One email when it's ready, with an early-bird price. No spam. Privacy