Energy with reset offset (iAmmeter)

Hi,

I have an iAmmeter 3 phase meter and have configured it up and this is working fine. One of the pain points with this product is that they will not allow resetting the meter data should I move it to monitor another circuit (which I need to do). So, all historical data remains in the meter.

Via the c-bus automation, I’m taking this into account by resetting the data which simply copies the current value of kwh for example into a variable which is then used as an offset. I’d like to do the same thing in HA, but haven’t been able to figure it out as yet.

Cheers,
Paul