Sonoff POW R2: energy vs total_daily_energy

Hello

I’m using several Sonoff POW R2 to monitor the electricity consumption of various devices in my house.

however, I’m having different power calculations and I would like to know what is the correct one. they give different results

sensor:
  - platform: wifi_signal
    name: "Fridge POW WiFi Signal"
    update_interval: 60s
  - platform: uptime
    name: "Fridge POW Uptime"
  - platform: cse7766
    update_interval: 2s
    current:
      name: "Fridge POW Current"
    voltage:
      name: "Fridge POW Voltage"
    energy:
      name: "Fridge POW Energy"  
    power:
      name: "Fridge POW Power"
      id: fridge_power_w
      on_value_range:
        - above: 4.0
          then:
            - light.turn_on: led
        - below: 3.0
          then:
            - light.turn_off: led
  - platform: total_daily_energy
    name: "Fridge power_kwh"
    power_id: "fridge_power_w"
    filters:
        # Multiplication factor from W to kW is 0.001
        - multiply: 0.001
    unit_of_measurement: kWh
    device_class: energy

in the energy module, I can see a difference between the two sensors

you can see that the power_kwh gives around 1.27kWh and the energy gives 1.02 kWh

which one is correct ? and why is there a difference

thank you