Utility meter entity configuration.yaml CRON example

I was able to change the yearly reset date on a yearly entity but could not for the life of me figure out how to do the second and third entity in the configuration.yaml file correctly. I could only get it to work if I changed the headings for each entity to yearly_energy, yearly_energy2 etc. Maybe there is another way but I couldn’t find any examples. Anyway for those struggling the code below works perfect for me now. The cron statement changes the reset dates to July 1st on 2 of them and Dec 1 on the AC one as defined below:


utility_meter:
  yearly_energy:
    source: sensor.heater_daily
    name: Heater Yearly
    cron: "01 01 01 07 *"
  yearly_energy2:
    source: sensor.ac_on_today
    name: AC Yearly
    cron: "01 01 01 12 *"
  yearly_energy3:
    source: sensor.water_today
    name: Hot Water Yearly
    cron: "01 01 01 07 *"

Your cron use utility meter code has just helped me resolve how to add two utility meters to my HA config file that provide monthly kWh useage tied in to my billing period (18th of each month). The config accepts the code and I now have two new entities, time will tell if they work OK. Here is my config entry code:

# Utility Meter configuration.yaml entry with cron for billing cycle
utility_meter:
  monthly_energy_electricity:
    source: sensor.energy_in_kwh
    name: Monthly Electricity Consumption
    unique_id: sensor.octopus_energy_electricity_******_******_current_total_consumption
    cron: "0 0 18 * *"
  monthly_energy_gas:    
    source: sensor.energy_in_kwh
    name: Monthly Gas Consumption
    unique_id: sensor.octopus_energy_gas_******_******_current_total_consumption_kwh
    cron: "0 0 18 * *"