core
core copied to clipboard
Wrong electricity cost
The problem
The electricity calculation cost sometimes is wrong. It's the second time I face this issue however I don't see a pattern.
(I have a fixed cost in both tariffs of 0.365662 per kwh)
What version of Home Assistant Core has the issue?
2022.8.7
What was the last working version of Home Assistant Core?
?
What type of installation are you running?
Home Assistant Container
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
energy documentation energy source (message by IssueLinks)
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (energy
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
I have similar issue.
Home Assistant 2022.10.1 Supervisor 2022.09.1 Frontend 20221006.0 - latest
Reduce price to 2 digits (euro cents) instead of 3 digits we do have in France but problem remains.
well, i have the same problem.
My observation is, that the calculation always show the daily costs instead of the selected intervall ->here daily <-> monthly.
My cost also makes no sense at all. I have a fixed energy cost of 0.2693 CHF/kWh, but as best as I can tell it's using 0.00081 CHF/kWh.
My daily cost now:
The monthly:
There seem to be several duplicate bugs about this, at least #75280, #66737, #70270, #80766.
My issue was coming from schema of Maria DB : wrong data type was set in schema leading to wrong calculation. If like me you used a migration script to mariadb, this could solve your issue. It solved mine.
https://github.com/home-assistant/core/issues/76973#issuecomment-1268400138
I'm not using an external db. My guess is that there's some overflow going on
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.
This is still an issue for me on 2023.1.6.
Still a problem for monthly view on version 2023.1.7:
Costs on daily and weekly energy view are fine. On monthly and yearly energy view the costs are wrong.
correct daily energy view:
correct weekly energy view:
wrong montly energy view:
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.