-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cost reading record large increase each time Home assistant is restarted #69
Comments
Hello, @alfwro13, so far, I only have suppositions on the cause of your issue. My best idea is that your source energy sensor is not providing accurately the availability status which cause issues upon restart. Can you:
The change you've noticed is probably due to home-assistant/core@46d6262. Prior to this, the energy cost sensor started monitoring with both energy and price sensor were ready. Now it starts only when energy sensor is ready. I suppose the following sequence happens for you on startup :
If such, you might also find out a pike to 0 in the graph of the energy sensor |
hello @alfwro13, is your issue solved? |
No, unfortunately the problem is still there. However I have a working workaround - I created input number helpers and when home assistant is restarted automation first writes the existing value to the input entity and when HA is back and running another automation copies that value back to the entity. |
Could you also share the graph on restart of:
Could you also share the attributes of:
|
Version of the custom_component
v.1.1.0
Configuration
Describe the bug
Every time Home assistant is restarted cost energy meter entities record large increase (by around £2.4) . For example today my "Agile Daily Electricity Energy Cost is £0.42. I have restarted HA and it jumped to £2.83. I use the Utility meter calibrate service to manually change it to the correct value. Here is a screenshot:

This started happening at around the beginning of December 2023 prior to that this was working fine.
As for my setup I run Home Assistant OS. HAOS, Supervisor and HA are always updated to the latest version usually within days of it being released. Currently running version HA Core v2024.1.6
This is only affecting the cost entities, energy consumption entities are fine.
Debug log
The text was updated successfully, but these errors were encountered: