Manual reset - utility meter

Hello,

how can one reset the values manually with the ‘utility_meter’?

The SERVICE UTILITY_METER.RESET is not available?

After some testing, I would like to reset the values to zero.

I do not use any tariffs or other additional functions.

greetings
Gerald

You need to have at least one tariff defined for the reset service to be available.

1 Like

Just figured you can use utility_meter.calibrate to reset them if you’re not using tariffs.

service: utility_meter.calibrate
data:
  value: '0'
target:
  entity_id: sensor.water_heater_meter_daily

:slight_smile:

15 Likes

thanks for your input


# Loads default set of integrations. Do not remove.
default_config:

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

utility_meter:
  gasverbrauch_daily:
    source: sensor.gasverbrauch
    cycle: daily
  gasverbrauch_weekly:  
    source: sensor.gasverbrauch
    cycle: weekly
  gasverbrauch_monthly:
    source: sensor.gasverbrauch
    cycle: monthly
  gasverbrauch_yearly:
    source: sensor.gasverbrauch
    cycle: yearly 
    
service: utility_meter.calibrate
data:
  value: '0'
target:
  entity_id: sensor.gasverbrauch

Hello!

Where do i have to put the calibrate code?

I installed a gasmeter sensor on my esp82666 ans now it runs and i want to reset it the uliity meter to 0 after manual testing! In configuration.yaml i get errors.

You can do it in the UI: Developer Tools > Tab "Services"

I had very strange behavior from the utility_meter sensor, for two days I had 100x values. Then everything worked as before.

How do I delete or reset the two days?

I tried with .reset and since I have no tariff it does not work.

service: utility_meter.reset
target:
  entity_id: sensor.energy_consumption_solar_daily

With .calibrate I can only for the current day new value set also zero.

service: utility_meter.calibrate
data:
  value: "0"
target:
  entity_id: sensor.energy_consumption_solar_daily

“sensor.energy_consumption_solar_monthly” deleted, HA restarted and the same sensor created again. The old values were saved anyway.

nice, was looking for something like this !!!

I’ve been having the same problem with the utility meter for a few days now, it’s showing values like 1000x bigger than it should.

All sensors were created using helper.

Anyone has a solution for this?

Same problem here.

If i manually change values using developer tools then it jumps up again later…

??

Sorted out…

With calibrate service it fixes the problem…

1 Like