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 state_class=STATE_CLASS_TOTAL to bl0906 energy sensors #41

Conversation

jamiepenney
Copy link
Contributor

Resolves #33

Allows Energy sensors to be used in the Energy dashboard in Home Assistant. They require the state_class to be set to either TOTAL or TOTAL_INCREASING

I'm taking a guess at this - from what I can tell, it should work. I have no idea how to test it against my local 6CH Energy Monitor though. If anyone has a link to the docs or any other guide to running custom configs, I'd be willing to give it a go.

Resolves athom-tech#33

Allows Energy sensors to be used in the Energy dashboard in Home Assistant. They require the state_class to be set to either TOTAL or TOTAL_INCREASING
@tarontop tarontop merged commit 2655ad5 into athom-tech:main Jan 13, 2025
4 checks passed
@tarontop
Copy link
Collaborator

tarontop commented Jan 13, 2025

You should submit a PR to ESPhome. Our configuration has been merged with the official one.

https://github.com/esphome/esphome/tree/dev/esphome/components/bl0906

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.

athom-em-6 no state_class total_increasing on individual clamp meters
2 participants