I’m looking for a way to reset my monthly utility-meter on a specific day instead of the 1st day of the month, since my electricity provider doesn’t bill me on the 1st of each month. I’ve been searching for a way to reset the values and then create an automation for it but unfortunately there doesn’t seem to be a concrete solution for this.
Or if the day changes month to month (due to weekends or whatever) use this service:
utility_meter.reset
You can call it from a button in the frontend.
I have a similar script that I manually call quarterly when I notice the meter reader captured on my front camera. I use a script because I have to clear two meters and their sum which is stored in an input_number.
I’ve add the utility meter for more than a month now. I’ve done a lot for restarts meanwhile, however I just did another one just to make sure…aaaand nothing…calibrate is still the only option available.
I have a similar issue to the OP. My electric meter isn’t read on the same day every month. Same thing for the water meter, come to think of it. I can’t imagine I’m the only one.
My first thought was to set the cycle to yearly and do this:
This should work for every cycle except January. If I understand it correctly, the utility_meter will reset at midnight on new year’s eve. So when the meter is read later that month, it won’t show the full total since the last time I manually reset it (using the service.)
Is there be a cycle “never” or “manual” option? Am I missing something obvious?
No you are not. January would indeed be a problem.
I just went an checked how I got around this.
I use a daily Utility Meter cycle and an automation triggered just before midnight that adds the total for the day to an input number. My reset script sets this input number to zero.
I already use history_stats to sum up my daily usage. I was thinking of using that as the source in a utility_meter, but it looks like the better solution would be to copy the history_stats value to an input number daily, and skip the utility meter altogether.