Hello. Can you tell me how to reset the monthly counter on specific date and time?
Maybe. If you give us an example.
I use the utility meter. I need the values for the month to be reset on the 23rd at 6:00 PM (every month). I added in configuration.yaml:
utility_meter:
monthly_energy:
unique_id: energy_month
name: Energy month
source: sensor.vvod_energy
cron: "0 18 23 * *"
Will it work? I just don’t understand how to use " ACTION UTILITY_METER.RESET" in automations.
Yes that will do what you want:
You could also have done:
utility_meter:
monthly_energy:
unique_id: energy_month
name: Energy month
source: sensor.vvod_energy
cycle: monthly
offset:
days: 23
hours: 18
minutes: 0
Only utility meters with tariffs can use the reset service. You could use the calibrate service to set the value to 0. However you are better off setting it in the utility meter config rather than using an automation.
1 Like
Thank you very much!