Emporiavue Home Assistant Integration - Negative values

Hi,

I’m using Emporia Vue Home Assistant Integration and it works well, but I am struggling to get rid of the negative values at the end of the cycle.

I using the Monthly entity and it seems to work well for individual sensors.

The issue is with grouped sensors. Here is what I tried

I’ve created a Helper that Sum the individual monthly readings and put the helper in the energy dashboard. These results in high negative readings at the beginning of the month.

As suggested in the forums I did a Riemann sum of the helper to solve the negative reading problems. The new entity/sensor never became available to add to the Energy dashboard.

Can someone point me in the right direction.

Thanks for the help