The desired instantaneous summation is implemented relatively easily.
Using the 50 permanent KVS (Key-Value Store) memories, it would also be possible to retrieve the last 30 days or the last 50 monthly values, etc.
The query with the virtual components would have to be multiplexed, since only 10 of the virtual components are available.
Who goes to the trouble of implementing this in the script is the real question.
I recommend setting up an external system (e.g., Home Assistant), then you can later correlate the meter values and present them more graphically.
See live online example:
My Home Assistant Test bench: -> username: testbench | password: testbench