State class for energy consumption

I want to track down the energy consumption of my heater. Here is the values that I can use:

hourly_kwh_count: 918.847
daily_kwh_count: 918.189
monthly_kwh_count: 917.65
hourly_kwh: 0
daily_kwh: 0.658
monthly_kwh: 1.197

If I use the hourly_kwh then I end up with a negative value at the end of the day in Energy dashboard.
And if I use the hourly_kwh_count , this shows me the total consumption (in this case 918.847) in the dashboard, which is not true because this is not the consumption for the day.

Here is the template I am using :

template:
   - sensor:
     - name: Consommation chauffage véranda
       unit_of_measurement: kWh
       device_class: energy
       state_class: total_increasing
       state: >
         {{ state_attr("climate.neviweb130_climate_thermostat","hourly_kwh_count") }}

What am I doing wrong ? or that I did not understand.