Can't get SERVICE UTILITY_METER.RESET working

the documentation seems pretty straightforward, but somehow I can’t get the service to work, meter stays the same.

this is the yaml fragment:

action:
  - service: persistent_notification.create
    data:
      message: energy reset triggered
  - service: utility_meter.reset
    entity_id: sensor.sl2energy_today

or this:

- service: utility_meter.reset
    data:
      entity_id: sensor.utilitymetertest

anyone a winning tip? thank you

That service is only available if your meter uses tariffs.

Use the utility meter calibrate service instead:

action:
  - service: persistent_notification.create
    data:
      message: energy reset triggered
  - service: utility_meter.calibrate
    target:
      entity_id: sensor.sl2energy_today
    data:
      value: 0

ah ok, now it works. I didn’t really look at the details of the calibration service description, since I assumed ‘calibration’ is for applying a multiplier to the source sensor value. But the calibration is in fact the ‘reset’ to ‘value’ of the energy counter. good to know :slight_smile:

thank you for the support!

1 Like