Closed DavidBeavan closed 1 month ago
Thanks for raising this and sorry you've encountered the issue. The API looks like it's changed the order and it was just working with direct debit numbers before by coincidence. I'll see if I can get a fix in for the next release, which should be within the next week.
This should now be fixed in v12.0.0
Describe the bug
Thanks for all your hard work on this integration, it's bloomin excellent.
I was happily using a tariff comparison, comparing to
E-2R-VAR-22-11-01-A
flexible octopus e7. After a Home Assistant restart today I noticed yesterday's rates for comparison were revised up. Odd, I thought. I had just upgraded from 11.2.1 to v11.2.2. I think the upgrade and reboot may be red herrings, and its the API that's got wrong info. All prior comparisons agreed with other tools, and my own maths. This just appeared today.Reproduction steps
Tarff reported by API: https://api.octopus.energy/v1/products/VAR-22-11-01/
Those day and night rates reported are the
NON_DIRECT_DEBIT
ones, see if you follow the links above to day and nighte.g. day
It looks like the
NON_DIRECT_DEBIT
rates come first in the file, followed byDIRECT_DEBIT
but previous entries it's the other way around.Comparison daily total is subsequently based upon the
NON_DIRECT_DEBIT
rates and compared to previous behaviour its not doing the same comparison.Expected behaviour
I'm given the choice to select direct debit or non direct debit and the correct rates are used. Or it defaults to previous behaviour and chooses direct debit (or whatever the majority of users are on)
Tariff Code
E-2R-VAR-22-11-01-A
Integration Version
11.2.2
Home Assistant Version
2024.7.3
Fresh Install?
After upgrading
Home Assistant Logs
N/A
Confirmation