-
Notifications
You must be signed in to change notification settings - Fork 14
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
Question: Incorrect statistics when MQTT was down over new year #535
Comments
Edit: I resolved the problem and removed all the incorrect negative statistics for all |
Hmmm, it shouldn't happen just because the sensor goes unavailable I think. Those are strictly increasing sensors if I don't misremember and those are reset if the values decrease. Could be that you were bitten by the problem some others have had that the EnergyHub decreased some sensor values in some update. |
Hard to tell since state (kept for two weeks) has been cleared from state tables and moved to statistics by now. When I removed the statistics outliers the statistic recovered fine though. I highly suspect this is related to MQTT bridge coming back online. I will try checking what the EH is reporting. |
The energy dashboard uses the long term statistics (which of course is based on the sensor values). It stores differences over a given time period for the sensor values. Some of the sensors are of the "strictly increasing" type and when a value is received from the EH that is lower than the previous value the sensor is reset which will cause a spike. The value should be strictly increasing from EH as well but I know that there was a problem for some users in a firmware update version some time back. |
@brandgul01 adjust all weird looking statistic entries to |
@bj00rn I used the button "find extreme values". Very useful. Will go through all again. Also strange that I get no values on the home-icon. But I guess it's caused by the same fault. |
Update: Found an extra extreme value, changed it to "0" and now everything works. |
Had my MQTT bridge down over Christmas and when I started it again (on 9th of January) wrong values seem to have been recorded in statistics.
I got negative statistic for export/import corresponding to the total production/consumption.
I guess the fix is to correct the statistic manually. It would be interesting to know why this happened in the first place.
Is this expected statistics behaviour when a sensor has been unavailable?
The text was updated successfully, but these errors were encountered: