Issue with Utility Meter after rebooting

Did this help solve your problem? I’m solving about the same problem, my code is:

sensor:
  - platform: template
    sensors:
      energy_consumption_total:
        friendly_name: Energy Consumption Total
        icon_template: mdi:flash
        unit_of_measurement: kWh
        value_template: "{{ states('sensor.shelly_shem_3_40f52001972c_1_total_consumption')|float + states('sensor.shelly_shem_3_40f52001972c_2_total_consumption')|float + states('sensor.shelly_shem_3_40f52001972c_3_total_consumption')|float}}"
      # výpočet spotřeby v čase a Kč
      energy_cost_total_daily:
        friendly_name: Energy Cost Total Daily
        icon_template: mdi:cash
        unit_of_measurement: Kč
        value_template: "{{ (states('sensor.energy_consumption_total_daily')| float * 6) | round(2) }}"
      energy_cost_total_monthly:
        friendly_name: Energy Cost Total Monthly
        icon_template: mdi:cash
        unit_of_measurement: Kč
        value_template: "{{ (states('sensor.energy_consumption_total_monthly')| float * 6) | round(2) }}"
      energy_cost_total_yearly:
        friendly_name: Energy Cost Total Yearly
        icon_template: mdi:cash
        unit_of_measurement: Kč
        value_template: "{{ (states('sensor.energy_consumption_total_yearly')| float * 6) | round(2) }}"

utility_meter:
  energy_consumption_total_daily:
    source: sensor.energy_consumption_total
    cycle: daily
  energy_consumption_total_monthly:
    source: sensor.energy_consumption_total
    cycle: monthly
  energy_consumption_total_yearly:
    source: sensor.energy_consumption_total
    cycle: yearly