core icon indicating copy to clipboard operation
core copied to clipboard

Wrong electricity cost

Open rotilho opened this issue 2 years ago • 5 comments

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)

image image

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

rotilho avatar Aug 29 '22 17:08 rotilho

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.

image

image

image

capi92 avatar Oct 09 '22 21:10 capi92

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. ha_energy_daily ha_energy_monthly

PeterHeppner avatar Oct 10 '22 11:10 PeterHeppner

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: image

The monthly: image

There seem to be several duplicate bugs about this, at least #75280, #66737, #70270, #80766.

alexiri avatar Oct 22 '22 08:10 alexiri

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

capi92 avatar Oct 25 '22 07:10 capi92

I'm not using an external db. My guess is that there's some overflow going on

rotilho avatar Oct 25 '22 07:10 rotilho

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.

alexiri avatar Jan 23 '23 09:01 alexiri

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: image

correct weekly energy view: image

wrong montly energy view: image

mspcoding avatar Jan 27 '23 10:01 mspcoding

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.