Energy Dashboard Shows Wrong Numbers: Sensor Classes

Home Assistant energy dashboard sensor settings

If your Home Assistant Energy dashboard shows wrong numbers, the most common cause is a source sensor with the wrong device class, state class, or unit. A power reading in watts, for example, cannot be treated as energy in kWh; the dashboard needs a valid energy total that increases over time.

Why this happens

The Energy dashboard validates sensor metadata and expects compatible measurements. Integrations can expose the same physical quantity with different names, and a device may publish instantaneous power, cumulative energy, or both.

  • Wrong measurement type: Power uses device class power and unit W or kW; energy uses device class energy and unit Wh or kWh.
  • Wrong state behavior: A cumulative energy sensor generally needs state class total_increasing; a changing power measurement is typically measurement.
  • Bad source data: A reset, unit conversion, duplicate entity, or stale integration value can make totals jump, stall, or count twice.

Use this quick comparison to narrow down the source:

CauseSymptomQuick test
Power selected as energyEntity is missing or totals look implausibleCheck the entity unit and device class in Developer Tools
Counter resets or decreasesUnexpected dips or spikes in daily totalsInspect longer history for a drop to zero
Duplicate feedsUsage is roughly doubledReview each configured energy source for overlap

1. Check the entity's class and unit

Open Developer Tools → States and select the entity used by the dashboard. Inspect its state and attributes, especially device_class, state_class, and unit_of_measurement. For a cumulative energy source, expect an energy device class, a Wh or kWh unit, and a monotonically increasing total; for a live power source, expect power and W or kW.

If the attributes are absent or conflict with the physical quantity, correct the integration or entity configuration that creates the sensor. The confirming result is that the entity has matching metadata and appears as an eligible source under Settings → Dashboards → Energy.

2. Make sure you selected energy, not power

Go to Settings → Dashboards → Energy and review the configured electricity grid, solar, battery, and individual device sources. Add the cumulative energy entity where the dashboard asks for energy. A power sensor reports the rate of use at that moment; it is not itself a daily or lifetime energy total.

If the device only reports power, use a supported integration or a configured integration sensor to derive energy from power, following Home Assistant's current documentation for your installation. The fix is confirmed when the energy source is a compatible energy total and the chart accumulates over time.

3. Verify Zigbee2MQTT's exposed entities

In Zigbee2MQTT, open the device page and check its exposed values and reporting configuration. Some plugs publish power in W and a separate energy total in kWh; some devices do not expose a cumulative total at all. In Home Assistant, check the corresponding entity's unit, class, and whether its state updates.

Use the energy entity if it is a valid increasing total. If it is absent, check your model's menu and Zigbee2MQTT device support before changing reporting or calibration options. A stable increasing value in Home Assistant confirms the source is usable.

4. Check ESPHome sensor definitions

For an ESPHome device, inspect the YAML or package that defines the sensor. The power sensor should declare the appropriate power device class, measurement state class, and W unit; the energy sensor should use the energy device class, total-increasing state class, and Wh or kWh unit. Names alone do not determine how Home Assistant interprets a sensor.

After updating the configuration, install it through the ESPHome device controls and reload the entity if needed. Confirm in Developer Tools → States that the entity reports the expected class and unit and that its energy total advances without unexplained resets.

5. Inspect resets, rollovers, and stale readings

Open History for the source entity and compare its values across the time the dashboard went wrong. A cumulative counter that resets or rolls over may produce incorrect totals unless the integration handles that behavior properly. A flat line can mean the device stopped reporting, the entity is unavailable, or the selected sensor is not the one that changes.

Check the device or integration for reset and reporting options; these vary by model. The fix is confirmed when history shows fresh readings and a valid cumulative total with no unexplained decrease.

6. Rule out duplicate or overlapping sources

In the Energy dashboard settings, review every configured grid, solar, battery, and individual device source. Do not count the same physical flow twice—for example, by adding both a whole-home total and device totals that are already included in that total. Also check whether an integration provides separate import and export totals before assigning them.

Remove only the overlapping source and compare the next readings with the device's own display or utility meter. A plausible total that tracks the reference without doubling confirms the correction.

7. Configure a utility meter only when needed

If you have a valid lifetime energy total and want daily or monthly breakdowns, create a utility meter from Settings → Devices & services → Helpers → Create helper → Utility Meter on current versions. Select the cumulative energy source and choose the cycle that matches your reporting need. A utility meter segments a total; it does not convert a power sensor into energy.

Check the helper's history after it has received readings. It should reset at the selected cycle boundary while the original source continues increasing, confirming the two entities serve different purposes.

FAQ

Why is my Home Assistant Energy dashboard missing a sensor?

The entity may lack a compatible energy device class, state class, or Wh/kWh unit. Check its attributes in Developer Tools → States, then fix the integration or sensor definition that supplies it.

Can I use a watt sensor in the Energy dashboard?

A watt sensor measures instantaneous power, not accumulated energy. Use a cumulative Wh or kWh entity, or derive energy from power with a suitable integration sensor configured for your sampling data.

Why does my energy total go down or jump?

Look for a source counter reset, rollover, unit mismatch, stale update, or duplicate source. The entity's History view usually shows when the change began and helps distinguish a device issue from dashboard configuration.

Once the source reports the right quantity, unit, and state behavior, the Energy dashboard can calculate totals consistently; allow new readings to arrive after correcting it. If the numbers are still wrong, compare the entity history with the device's own reading and check the integration's documentation or logs for that specific model.

Photo: iSys.PL / Attribution (Wikimedia Commons)

Leave a Comment

Needle Keeps Breaking on Your Brother: 7 Real Causes

Needle Keeps Breaking on Your Brother: 7 Real Causes

Fix a brother embroidery machine needle keeps breaking with seven practical checks for hooping, needle choice, threading, tension, fabric and machine clearance.

Underlay Stitches Explained: When Each Type Matters

Underlay Stitches Explained: When Each Type Matters

Learn how embroidery digitizing underlay stitches stabilize fabric, improve coverage, and prevent puckering, gaps, and rough edges with practical checks.

Cricut Maker Not Cutting Cardstock: Blade and Passes

Cricut Maker Not Cutting Cardstock: Blade and Passes

Fix cricut maker not cutting through cardstock by checking the blade, mat, material setting, pressure, and repeat cuts in Cricut Design Space.

Bobbin Thread Showing on Top: Tension and Bobbin Case

Bobbin Thread Showing on Top: Tension and Bobbin Case

Fix brother embroidery bobbin thread showing on top by checking threading, bobbin seating, lint, needle condition, and upper tension before adjusting settings.

Vinyl Stuck to Transfer Tape: Release and Temperature

Vinyl Stuck to Transfer Tape: Release and Temperature

Vinyl stuck to transfer tape? Check the liner, adhesive, pressure, and temperature to find the cause and release your design without stretching it.

Serger Thread Keeps Slipping Out of the Needle: Fixes

Serger Thread Keeps Slipping Out of the Needle: Fixes

Serger thread keeps coming out of needles? Check threading, tension, needle position, and stitch settings to find the cause and get sewing again today.

Cricut Design Space Broken After Update: Rollback

Cricut Design Space Broken After Update: Rollback

Fix cricut design space not working after update with cache cleanup, a clean reinstall, connection checks, and practical steps to restore projects and cutting.

Brother PE800 Auto Threader Not Working: Adjustment

Brother PE800 Auto Threader Not Working: Adjustment

Fix brother pe800 auto threader not working by checking needle position, needle type, threading technique, and hook alignment before arranging service.

Cameo 4 Registration Keeps Failing: Sensor Cleaning

Cameo 4 Registration Keeps Failing: Sensor Cleaning

Fix silhouette cameo 4 registration keeps failing with careful sensor cleaning, print checks, mat setup, and tests to identify when service is needed.

Silhouette Cameo 4 Check Cross Cutter: Fix Guide

Silhouette Cameo 4 Check Cross Cutter: Fix Guide

Silhouette Cameo 4 check cross cutter error? Find the common cause, clear the cutter path, check settings, and test a safe manual cut before resuming.