Energy Dashboard - wrong grid consumption cause it resets daily

I have a Sensor for my grid consumption, which resets on a daily basis. Now my grid consumption is displayed wrong. Currently it shows for example 14,58 kWh but it is only about 8kWh.

Is there an easy way to teach the Energy Dashboard, that the Sensor resets on its own?

Yes. Give the sensor a state_class of total_increasing.

        unit_of_measurement: kWh
        friendly_name: Gesamtverbrauch
        device_class: energy
        state_class: total_increasing

  - platform: template
            friendly_name: Gesamtverbrauch
            unit_of_measurement: 'kWh'
            device_class: energy
            value_template: "{{ states('sensor.alb00xxxsensornamexxx_total_load') }}"
            icon_template: mdi:flash

I waited a day but the new sensor keeps resetting:

did I miss something?

Having the state class total_increasing is not going to stop the sensor resetting. It will however allow the energy dashboard to use it correctly as is (with the resets).