Measure Total power generated by Solar panel connected to Bluetti

Hi,

My home assistant server is configured to monitor Bluetti AC200MAX status using bluetti_mqtt.

I recently connected the Solar panel to AC200MAX and want to measure ‘Total power generated’, but unfortunately, AC200MAX does not aggregate this data. As a result, ‘Total power generated’ always shows 0.

I have a measurement of generated power at the moment. I can’t figure out how to create the ‘total_increasing’ parameter.

Please help. Example will be helpful.

As a solution, I have added Integral helper. Not sure if this is correct solution