Utility Meter ADD value from input_number

I get values from my wallbox, but only when a charging session is done.
I managed to get the kWh value from the last charging session and store it in input_number.carchargingkwhhelper (only when the last charging session, stop_at value has changed - so I know its a new charging session.)

Now I want to ADD the value from input_number.carchargingkwhhelper to an Utility Meter which resets daily. One charge in the morning may be 5 kWh, one in the afternoon 3 kWh and one in the evening 13kWh, so at the end of the day the utility sensor should show 21kWh.

The UI does not allow input_sensor as source (expected sensor), and I doubt it would ADD values.

how can I do this?

Skip the input number and make a template sensor.

And then I can supply the template sensor as source for the utility sensor, and the utility sensor will ADD values when the template sensor changes?

Yes

so i made a template sensor, but I cant set its value, when the last charging session stopped and I finally received the kWh used.
NO automation allows me to set the value of a template sensor.

You don’t set the value from an automation, the value is set from within the template. Can you post the automation? I can show you how to turn it into a template for your template entity.