TPlink H110 Daily reading doesnt start at 0

Anyone know how to fix this issues with the tplink hs110 daily consumption graph not starting at 0?
It seems to reset at 10am then at 12am it stays flat until it’s reset and then it starts at 1.8 to 2kw.

the template value is

tpswitch_today_kwh:
        friendly_name_template: "{{ states.switch.tpswitch.name}} Today's Consumption"
        value_template: '{{ states.switch.tpswitch.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'

Thanks.