Get Charge and Dischange Energy

Hi!

I have a Solarbank 2 AC. I get the SOC and Energy-Values via the unofficial API (HACS). So far so good, but I do need dayly values for “how much energy I charged” and “how much did i discharge”. This value might be higher than the capacity, due to multiple charges.

The sensor sensor.solarbank_2_e1600_ac_akkuenergie gives the current energy:

How do I get 2 sensors for “how much energy I charged” and “how much did i discharge”?

Best

Pascal