@nikito7 thanks.
I updated my system, based on the suggestions from this forum and others, most of the changes can be seen here.
After running the new system (a clean installation of home assistant) for a couple of days, there is strange behaviour:
Let us focus on the missing energy column from 10 to 11, as seen in images 2 and 3 there are values on the recorder to make the energy estimation. I computed the difference and from 10h to 11h the energy consumption is 0.55 and from 11h to 12h the energy consumption is 0.52. adding both values together we get 1.07 which is the value of the column in 11h to 12h.
Bellow there is an image of the consumption measured from 10h to 12h.
The problem is not missing data, but just missing columns, from some reason the energy display merges some columns.
What are the requirements for these columns?
- There is a minimal number of points per hour? Given the low consumption that I am reading maybe there are not enough points (distinct points, EasyHan sensor sends data every 10 seconds).
- Requires data on the hour (meaning a data point at 10,11,12)?
- Any other requirements?
Can I create a virtual sensor that uses linear interpolation to fix the gaps and allows the energy display to properly draw all columns?