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

Update StateClass of Liters and Seconds sensor #12

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Hypfer
Copy link

@Hypfer Hypfer commented Feb 22, 2025

While I haven't received mine yet and therefore can't for sure say that this is in fact an issue (hence Draft PR), while researching the topic, I did find this forum post:

https://community.home-assistant.io/t/automation-only-run-if-available-more-than-30-seconds/707187/13

I can confirm the Hansa Activejet Bluetooth (aka Hasactivejet) is compatible and recognized, as a working well using an ESP bluetooth proxy.

I did notice the water usage and time are registered as state class total by the integration, while they reset to 0 for each new cycle. So they should be state class total_increasing and I used customize.yaml to change it. That will allow to put a utility meter on it to sum total usage.

Looking at the protocol documentation here, I can see that the pulses are 3 bytes and time is 2 bytes.
This would mean max values of ~18 hours and about ~6500 liters, which does sound like it's a lot less than the expected lifetime of a shower head.

Therefore, I am relatively confident that the user is right and TOTAL_INCREASING is the correct state class
Confident enough to open a draft PR at least 🙂

Ref: https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes

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.

1 participant