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

Add support for HASS long term statistics #1835

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

kdknigga
Copy link
Contributor

This adds "state_class" metadata so that HASS can track long-term statistics.

I kind of guessed for the state class of rain_mm, rain_in, and strike_count as total_increasing, as I don't have any devices that report those things so I'm not 100% sure how they work.

@zuckschwerdt
Copy link
Collaborator

Thanks! strike_count will reset for each new event, AFAIK.

@kdknigga
Copy link
Contributor Author

If, after some period of no lightning, strike_count resets to 0, then we're good.

@zuckschwerdt zuckschwerdt merged commit 19b7b9e into merbanan:master Oct 15, 2021
@kdknigga kdknigga deleted the hass_state_class branch October 15, 2021 20:15
obones pushed a commit to obones/rtl_433 that referenced this pull request Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants