-
Notifications
You must be signed in to change notification settings - Fork 676
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 the Homeasistant Discovery topics #3332
Conversation
… 2024.10 - "raw" should have a "State Class" unlike "". -> Set it to "measurement" since it could be decreasing as well as increasing. Further changes: - "value" should only have "State Class"="total_increasing" if "Allow Negative Rates" is NOT set. Else it should use "measurement" as it could go down again.
I have an older meter and PV panels, so the meter runs backwards when the sun shines. Only Home assistant needs the State Class to total_increasing even when Allow Negative Rates is set. Can you make a fix or solution for this? Hanks
|
Please create a separate discussion for this. |
This PR tries to fix #3331 and #3333
Changes:
-
raw
has now set theState Class
tomeasurement
. Before it was always set to""
.-
value
has now only set theState Class
tototal_increasing
if the parameterAllow Negative Rates
is not set. Else it usesmeasurement
since the rate could also be negative. Before it was always set tototal_increasing
.- The
rate_per_time_unit
topic of an Energy meter needs aDevice Class
=power
. Forgas
andwater
it should bevolume_flow_rate
. Before it was always set to""
.See also https://developers.home-assistant.io/blog/2021/08/16/state_class_total/