Currently the only option to integrate a value is by using the Integral integration, which is great for conversion to kWh from Watts, but this method is lacking consideration of scenarios where you only want/need the data from n seconds/minutes/hours… back
Most people combine the integral with a utility meter for daily/hourly, … usage. From your request is not clear if that is suited for your usecase, because you co not give any scenarios where this would be useful. Describing scenarios where this would be useful will improve your chances on getting support.
With the update interval of most sensors, second resolution is likely not feasible, and or would equate to multiplying the value you have with a constant (assuming it is constant the entire second).
Sounds like the statistics integration is what you want.