State class
How the value of a sensor behaves, like `measurement` or `total_increasing`, so Home Assistant can keep long-term statistics for it.
- In code
state_classSensorStateClass- Also
- state classes
Sensors without a state class get no long-term statistics. The energy dashboard only works with sensors that have one.