Choose the Energy field before judging the sensor
Accumulated energy fields describe a quantity collected over time. The optional power field describes the current rate instead. That distinction changes the accepted device class, state class, and unit family.
Start with the exact field where the entity is missing. Changing that choice changes only the Energy comparison. It does not rewrite the separate long-term-statistics conclusion.
Each Energy field accepts a specific attribute combination
| Energy field | Device class | State class | Unit family |
|---|---|---|---|
| Grid import, grid export, solar production, battery charge, battery discharge, individual device | energy | total or total_increasing | Energy |
| Optional power | power | measurement | Power |
| Gas | gas or energy | total or total_increasing | Gas volume with gas; energy with energy |
| Water | water | total or total_increasing | Water volume |
Energy and statistics answer different questions
Energy applies the matrix for the field you selected. Long-term statistics checks the current numeric sensor against its own supported state-class boundary. It still cannot see recorder inclusion, stored metadata, or historical unit changes.
For example, power, measurement, and Wcan match the statistics attribute contract while failing grid import's accumulated-energy rules. Counter suitability also stays separate: an unknown or decreasing counter never becomes an automatic recommendation for total_increasing.
A matching result still needs Home Assistant
A local match means the current attributes cleared the pinned comparison. It cannot guarantee that the entity appears. The Home Assistant Energy FAQcovers missing entities, and the Home Assistant sensor documentationexplains state classes and counters. Entered attributes stay in this browser; the version127 privacy policy covers ordinary page requests and site analytics separately.
- Check Developer Tools > Statistics for issues and the stored unit.
- Confirm recorder inclusion for the entity and its integration.
- Return to Energy settings and validate the intended field in the live instance.