Wrong value displayed

Hello, as you can see I created with utility meter a daily energy meter. As you can see the utility meter is showing 0.04kwh but on the UI is showing roughly 2wkh. Why? Anyone knows?

Energy is a total value over period (hour), 0.04 is ‘now’

The utility meter show the overall day consumption… so is not correct to show 2kwh at 00 of today when in reality it is 0.04.

OK, cannot guess this immediately and cannot see both views.

Are you looking for the last completed period? Is 2kWh yesterday’s energy? Check the utility meter’s attributes.

Where is the 2kWh you’re referring to?

still have the problem.
here the issues… seems i spent 12kWh but in reality we are at 3.46kWh:

the sensor depende by a formula:

      - name: "giorno consumo clima mitsubishi updated"
        unique_id: giorno_consumo_clima_mitsubishi_updated
        state: >
          {{ (states('sensor.climatizzatori_consumo_giorno') | float - (
              states('sensor.clima_big_energy_consumption') | float + 
              states('sensor.clima_small_energy_consumption') | float )
              ) | round(2) }}
        availability: >
          {{ has_value('sensor.climatizzatori_consumo_giorno') and
              has_value('sensor.clima_big_energy_consumption') and
              has_value('sensor.clima_small_energy_consumption') }}
        device_class: energy
        state_class: total_increasing
        unit_of_measurement: kWh

where here the value sensor…

{{states('sensor.climatizzatori_consumo_giorno')}} --> 4.86 kWh
{{states('sensor.clima_big_energy_consumption')}} --> 0.5 kWh
{{states('sensor.clima_small_energy_consumption')}} --> 0.9 kWh

really not clear why it is shown so big number (~12kWh)