Utility meter : not same value as Energy Dashboard

I’m just wondering why the utility meter provide slight different value from the Energy Dashboard

VS

Screenshot 2022-10-24 at 15.27.23

  - sensor:
    - name: 'Office Daily Energy Total'
      device_class: energy
      unit_of_measurement: kWh
      state: >
        {% if is_number(states('sensor.office_daily_energy_offpeak')) and is_number(states('sensor.office_daily_energy_peak')) %}
          {{ states('sensor.office_daily_energy_offpeak') | float + states('sensor.office_daily_energy_peak') | float }}
        {% else %}
          None
        {% endif %}
        
utility_meter:
  office_daily_energy:
    source: sensor.shelly_office_plug_energy
    name: Office Daily Energy
    cycle: daily
    tariffs:
      - peak
      - offpeak

and the peak offpeak is set with NR
Screenshot 2022-10-24 at 15.26.29

Is that just because of small latancy between NR add-on (running on the same host) and HA?

Same question… But I see a bigger difference.

Ie, utility meter shows 31.50 kWh for yesterday while the energy dashboard shows 36.63 kWh, both using the same sensor as source.

And I’m not using any tariffs, so no NR or anything.

I suspect that it could have something to do with the fact that the energy dashboard is using LTS data but not sure…

Solved: Problem was that my energy meter went unavailable every 5th minute due to a poor connection. Fixing the connection problem also fixed the utility meter.