AQM (Echo device) sensor entities are not properly identified to allow for statistics #2237
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the bug
The Echo device "Air Quality Monitor" (AQM) accurately captures the following sensors (bravo/brava!), but does not properly identify them as statistics, resulting in an inability to graph them under a standard Home Assistant statistics graph card:
To Reproduce
Expected behavior
A graph of Min, Mean, and Max values for every hour of recent sensor (e.g. Particulate Matter) measurements should appear.
Screenshots
System details
const.py
or HA startup): v4.9.2pip show alexapy
or HA startup):Logs
Please provide logs.
I don't believe these are relevant. Happy to provide if necessary/requested.
Additional context
Please see: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
The issue may lie in state classes:
"Home Assistant has support for storing sensors as long-term statistics if the entity has the right properties. To opt-in for statistics, the sensor must have state_class set to one of the valid state classes: measurement, total or total_increasing. For certain device classes, the unit of the statistics is normalized to for example make it possible to plot several sensors in a single graph."
The text was updated successfully, but these errors were encountered: