New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Energy dashboard displays incorrects statistics in 2023.10.1 (after daily restart at 4am) #101613
Comments
You mention you restart every day. Are you restarting at 4am every day? |
yes |
That seems like we have a bug in the catch up code. Please turn on debug logging for
Check the log tomorrow to see if |
will do |
Assuming its a problem with catching up stats, #101616 might fix it. But I still haven't been able to actually replicate the issue so its just a guess. |
I'm starting to think this is an existing issue that is now more likely to happen based on previous reports. Unfortunately we didn't find the source of the old reports and those issues went stale. It seems like its easier to replicate now but we still don't have replication steps that can be done programmatically to be able to solve the issue. I also can't replicate the issue on > 10 production instances so its a lot of guess work about whats actually going wrong. We don't have good test coverage for |
is there something you would like me to do based on this comment? |
Nope. Just adding notes here so I don't forget when I have more time to dig into this |
That was quite the rabbit hole. After ~18 hours of digging though the code I'm pretty sure I've found the issue I think #101616 should fix it. |
Awesome! Will you need logs from me still? |
I'm seeing the same issue. It started in 2023.09.x (not sure which one but not 0). I use the IotAWatt integration and also restart at 4am everyday for backup. Happy to help test, etc |
Yes please. I want to confirm we are fixing the right problem |
@drobtravels It looks like this have been a problem for months, maybe years? It seems its more likely to happen with 2023.10.x due to some performance improvements that change the timings |
Interesting that the issues only started for me with 2023.10.0 and 2023.10.1. I'll grab some logs |
These seem to be the most relevant logs after startup. Is there something I should be looking for specifically?
|
I don't see a stats catch up task in your logs. Did the problem happen after that restart ? |
Yep, problem is still there. Should I search the log for a specific term? "Catchup"? |
You should see something like |
|
Thanks. Pretty sure we should be good to go with this one once 2023.10.2 is out |
Awesome! Thanks for all the focus on this one! Any ideas as to why this issue only shows up in the 2023.10.x release? |
The query is a bit different in 2023.10.x so it just happens to be more likely to hit the bug |
The problem
having an issue on 2023.10.0 and 2023.10.1
I restart HA each day and the issue seems to be in the first hour since restart. Also, the $ calculations seem fine even though the stats are crazy
My energy dashboard is fed by these:
What version of Home Assistant Core has the issue?
2023.10.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
No response
Link to integration documentation on our website
No response
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
The text was updated successfully, but these errors were encountered: