Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AQM (Echo device) sensor entities are not properly identified to allow for statistics #2237

Open
drew-hill opened this issue Apr 26, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@drew-hill
Copy link

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:

  • Air Quality
  • Particulate Matter
  • Volatile Organic Compounds
  • Carbon Monoxide
  • Temperature
  • Humidity

To Reproduce

  1. Go to a dashboard
  2. Click on 'Add Card'
  3. Under the "By Card" tab, scroll down to and click on "Statistics graph"
  4. Search for the sensor entity of any of the listed AQM sensors (e.g. "Particulate Matter")
  5. Observe that the graph preview states "No statistics found."

Expected behavior

A graph of Min, Mean, and Max values for every hour of recent sensor (e.g. Particulate Matter) measurements should appear.

Screenshots

image

System details

  • Home-assistant (version): 2024.4.4
  • alexa_media (version from const.py or HA startup): v4.9.2
  • alexapy (version from pip show alexapy or HA startup):
  • Amazon 2FA is enabled (y/n). <!---We will not debug login issues if unanswered--->: y

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."

@alandtse alandtse added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants