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

Adding state_class to average values #1

Merged
merged 1 commit into from Aug 20, 2023
Merged

Conversation

mhlas7
Copy link

@mhlas7 mhlas7 commented Jun 14, 2023

This allows for use of the Statistic and Statistics Graph cards in HA. You can then create cards that show for example, the highest PM2.5 value in the last month, the lowest temperature in the past week, etc...

state_class is defined for each sensor component that you would like to HA record statistics data for (ESPHome Docs)

This allows for use of the Statistic card in HA
@ex-nerd ex-nerd merged commit d7ffb73 into ex-nerd:main Aug 20, 2023
@ex-nerd
Copy link
Owner

ex-nerd commented Aug 20, 2023

Thanks for this. Sorry it took so long, I apparently missed the notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants