-
Notifications
You must be signed in to change notification settings - Fork 76
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
lifetime_net_energy_consumption: state class total_increasing, but its state is not strictly increasing #167
Comments
Thanks for sharing @2112b, unless you observe more occurrences of this warning this is probably caused by getting this data from a different source in v0.0.19. Looks like there's a small difference in the values between old and new source. |
I have these warnings in logs too:
|
Almost looks like small rounding issues. According to HA dev pages these kind of entities are best set to total-increasing. From the reading and looking in my HA statistics table I see that it builds the sum value from the change in values during the day for today_s_energy_production which is marked as TOTAL_INCREASING and does not substract from the running sum if value goes down. Looking at last 7 days which is a TOTAL entity, it will substract if new value is lower as previous value. With that the question is what best strategy for the data is. I think when TOTAL-INCREASING it will ignore the negative step and then continue counting up in the statistics with the new increased values. When TOTAL it would reduce the running sum and then start adding changes again. Either can be ok, if we understand what the Envoy is actually meaning with the values being lower. |
Hi, I just did the update from v0.0.18 to v0.0.19
HA and HACS are up to date
My metered Envoy Gateway is on v7.6.175
Now, after reboot, there is this entry in the logfile and its states that I should report it, so here it is... :-)
Thanks,
azu
Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:405
Integration: Sensor (documentation, issues)
First occurred: 15:51:26 (1 occurrences)
Last logged: 15:51:26
Entity sensor.enphase_envoy_lifetime_net_energy_consumption from integration enphase_envoy has state class total_increasing, but its state is not strictly increasing. Triggered by state 1934304 (1934308.0) with last_updated set to 2023-10-03T13:45:21.254365+00:00.
Please report it to the custom integration author.
The text was updated successfully, but these errors were encountered: