Clean up statistics automatically

Hi!

I have an Integration of the nenw Anker Solix Solarbank 2. This inntegration has three entities which I need in my energy dashboard for generated solar power, power to and from the battery. These sensors are daily based, so they should be reset in midnight.

Unfortunately these sensors are nit resettet at midnight, instead they are resettet somewhere between 0 and 0:15 which leads to inconsistent values in the energy dashboard. To fix this, I need to clean up these values manually in the statistics, wtach out for outliers and set them to zero.

is there any chance to automate that? Didn’t found anything about that.

Probably the easiest way to do this is with the Utility Meter Helper:

If you feed these helpers with your sensors and select daily cycles for them they will reset at midnight.

Or if you do not specify a cycle they will never reset and just keep counting up.

The energy dashboard can use either form of the helper.

However there is potential for much bigger outliers if something goes wrong with the source sensor if you do not supply a cycle. This is still easily fixed in Developer Tools → Statistics though.

1 Like

Thank you! Looks like it solved my problem!

1 Like