Hard to tell if the data is wrong if the time axis is not the same. Seems to be only a very small portion. In that case the automatically chosen y axis range is different, causing small variations to appear much larger.
Same issue here. After upgrading to the latest HA version I’m getting strange results. Max value is totally wrong. I also believe it has to do with the DB changes.
How these graphs are supposed to be compared?
The stock history-graph shows (supposed to) real values.
The mini-graph-card shows approximated values - and this approximation depends on parameters like smoothing, points_per_hour, aggregate_func.
You even have not provided showing Y-labels on the 1st graph and same hours_to_show.
To perform an analysis, you should ensure same settings for both cards.
I’ve been running these graphs for months. I know what they are supposed to look like. The daily energy graph should look like a staircase going upwards and it resets to 0 everyday. I get that you can’t compare these exactly but the point was that something has changed and it’s obvious from the min and max values.
This is showing the same data in the stock graph and mini-graph-card. Obviously the mini-graph-card is wrong. Ther mini-graph-card shows a steep increase. I believe this happened when I upgraded to 2022.6.1
How to compare mini-graph-card & history-graph:
Some people are experiencing a bug now.
To compare graphs - use this card.
(it uses the same method as was used here)
Specify your own monitored sensor instead of “sensor.xiaomi_cg_1_pm25” and a required frequency: since my sensor is updated every 30 sec, I am using “points_per_hour: 120”.
Note that the mini-graph-card is updating and “scrolling” a graph to the left.
IMHO the history-graph should also automatically update and “scroll” to the left - but it does not seem to do it now (due to a recent bug I think).
After every update the alignment is lost, so you should re-align, make a screenshot and then analyse it in MS Paint (or whatever).
It’s not about comparing graphs. The data in the Mini graph card is simply wrong. Look at my graph above. 93.5 degrees celcius max!
This used to work correctly for a long time. Only after the HA upgrade it’s wrong.
The proposed solution is not intended for YOUR personal case only. It is for comparing cards in general; for analysing a difference between different “aggregate_func” values etc.
As for YOUR personal case - check the GitHub issue, some people sorted out a reason of their similar problems.
Here is
Points 1 and 3 implemented
I don’t know how to restart the DB, I use HaOS on Rpi built-in DB
The only thing that preceded it was the exclusion of some entities from the recorder that had nothing to do with temperature.