core icon indicating copy to clipboard operation
core copied to clipboard

Utility meter not zeroing out corectly at midnight

Open BrackenAlistair opened this issue 1 year ago • 13 comments

The problem

I have multiple utility meters created, all set up to daily cycle. Today some of the meters (not all of them) restarted to zero at midnight as they were supposed to but 10 minutes later they all jumped back to last value from previous day and then proceded to measure from that value as if no restart happened. Snímek obrazovky pořízený 2024-04-09 11-09-30 Snímek obrazovky pořízený 2024-04-09 11-20-46 Snímek obrazovky pořízený 2024-04-09 11-21-50

What version of Home Assistant Core has the issue?

core-2024.4.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Utility Meter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/utility_meter

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

BrackenAlistair avatar Apr 09 '24 09:04 BrackenAlistair

Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (utility_meter) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of utility_meter can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign utility_meter Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


utility_meter documentation utility_meter source (message by IssueLinks)

home-assistant[bot] avatar Apr 09 '24 09:04 home-assistant[bot]

I would need some logs and the graphs from the source sensors

dgomes avatar Apr 09 '24 10:04 dgomes

Here are the graphs, they are in coresponding order to those in first post: Snímek obrazovky pořízený 2024-04-09 13-16-16 Snímek obrazovky pořízený 2024-04-09 13-16-41 Snímek obrazovky pořízený 2024-04-09 13-19-57

Here is history csv for those values: history (2).csv Here is which values are the utility meter tied to:

  • Výroba FVE dnes from Výkon FVE sum
  • Prodej SUM dnes from Prodej do sítě sum
  • Odběr SUM dnes from Pdběr ze sítě sum

All of the source sensors are Riemann sum integrals.

The logs will be more of a problem, they are already overwriten by newer ones. I will however be checking for problems this midnight and if the problem reapears I will post the logs.

BrackenAlistair avatar Apr 09 '24 11:04 BrackenAlistair

Sorry about the closing, misclicked.

BrackenAlistair avatar Apr 09 '24 11:04 BrackenAlistair

Same problem

andiukas avatar May 13 '24 05:05 andiukas

I'm waiting for https://github.com/home-assistant/core/pull/114967 to get more details from all your setups

dgomes avatar May 13 '24 12:05 dgomes

Similar issue here. It only happenes occasionally though, but lately it's more often. 3 times in the last 6 days. Essentially the reset is after midnight so the utility meter carries over the previous days total energy usage to 12am-1am graph for the next day.

Screenshot_20240527_081537_Chrome Screenshot_20240527_084927_Chrome

For clarity, the top graph is the total of several sensors in my system, the second is the graph of one sensor, but all sensors are affected the same way at the same time. Clock settings are correct. I'm fairly new at HA so I'm not sure what log files to attach. Any guidance to help solve the problem is appreciated.

bobstaff avatar May 27 '24 13:05 bobstaff

any solution ?

andiukas avatar Jul 08 '24 11:07 andiukas

Have you upgraded to 2024.7 ?

If yes, please download the diagnostic available in the device/integration webpage and share (you can send it to me in discord)

dgomes avatar Jul 08 '24 13:07 dgomes

I have found a workaround. In Developer Tools, select Statistics and from there I go to each sensor that measures power (kwh) over midnight, then click the icon on the far right. This opens a box. I set the time for 12:00 am on the date in question, usually the same morning. I can see the errant reading and other reading 5 minute before and after. I correct the wrong amount and close the box. It recalculated the sums and adjusts the graph. I have 17 sensors so it takes me about 10 minutes to do them all.

bobstaff avatar Jul 08 '24 14:07 bobstaff

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

I have this same issue. Everything on my system has the latest updates as of today. I'm using the helpers. Here are a few screenshots.

energy1 energy2 energy3

USER19464727 avatar Oct 11 '24 15:10 USER19464727

@USER19464727 not necessarily the same issue... please open a new issue and don't forget to include the diagnostics

dgomes avatar Oct 11 '24 18:10 dgomes

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.