I waited 2 days now and tried everything that I could find but nothing works.
It just shows 0 kWh but that isn’t true.
With the Integration Riemann sum integral it kinda worked but it output absolutely wrong values. When the actual value was 0 Wh it showed around 0.4 kWh and when it was 9000Wh it showed 0 kWh.