Utility meter setup from yaml doesn't work when the source is an integration of power

I am using an integration helper, which uses a power sensor (provided by my car’s API) to calculate energy delivered to my EV. However, when I use the energy as source for a utility meter, the meter never records anything and it always displays 0.

utility_meter:
  ev_charger_daily_consumption:
    source: sensor.id_4_energy2
    cycle: daily
    offset:
      days: 0
      hours: 5
      minutes: 30
    tariffs:
      - day
      - night

If I create the utility meter from the UI, it works, but I need the ability to offset it by 5:30 hours, which is not possible from the UI.
Replacing the source (sensor.id_4_energy2) with another sensor that is already provided as energy (without having to be integrated) works ok.

If you want to report a bug, it’s better to do it on github so the integration owners can review it.