Grid energy consumed randomly reseting

my grid energy consumed cost is randomly reseting giving me wanky daily costs.

but the daily energy sensor looks just fine.

Any ideas how to correct the grid_energy_comsumed_cost sensor ?


sensor EMU2:
  - platform: rainforest
    port: '/dev/ttyACM0'
    name: emu2
  - platform: template
    sensors: 
      energy_meter:
        unique_id: cumulative_kWh
        friendly_name: "Cumulative kWh"
        unit_of_measurement: 'kWh'
        value_template: "{{ state_attr('sensor.emu2','Delivered kWh') }}"
        device_class: energy

utility_meter:
  total_hourly_energy: 
    source: sensor.energy_meter 
    cycle: hourly 
  total_daily_energy: 
    source: sensor.energy_meter 
    cycle: daily 
  total_monthly_energy: 
    source: sensor.energy_meter 
    cycle: monthly
  grid_energy_consumed: 
    source: sensor.energy_meter
    name: 'Grid Energy Consumed'

No, because you did not share the configuration for this sensor.

sadly, i cant even find its definition or configuration. I’m not sure even where i found it’s reference.

How do I find the intructions for it?