Open alfwro13 opened 8 months ago
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:
availability
attribute is correctly defined?The change you've noticed is probably due to https://github.com/home-assistant/core/commit/46d626280e884632b63fdce1b8601be91eb31842. 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
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