This was exactly the issue I had as well. The Octopus Account dashboard didn’t marry up with the Tarrif on my bill, which doesn’t match the list of active products. That’s a me problem to sort out though.
I’ve got the graphs working again now, so that’s resolved it for me.
I am going to have to have a close look at this, I have just signed up for EDF’s Freephase Dynamic profile (sort of a pseudo Agile tariff) and they also use the Kraken API so very similar - this looks like it will be an excellent starting point for producing something similar for EDF.
Since they use same Kraken API, the basics are indeed almost exactly the same, just a new URL access point.
I have hard coded the octopus API (and octopus agile naming throughout) but for the most part it does not take much to hack the code to fit the EDF products. At the moment there is only the one, and clearly no export product. Also this is a stepwise pricing, so no real point in any of the other code other than just getting the price array.
Seems to work. I could uplift the code to GitHub if you are interested, otherwise yes do have a go at this yourself.
Yes, you have nailed it incredibly quickly! No export and obviously just the 3 rates each day, but it will be nice to have an at a glance view of those on a home assistant dashboard and to alert when everything is particularly cheap.
If you could upload your EDF version to Github that would be great, and I am sure I am not the only person who will benefit from it.
As the basic framework is the same it was not difficult to switch the API calls to EDF.
The pricing for Freephase dynamic is in three bands - red, amber and green. As per all UK energy pricing, each day runs from midnight but on European Central Time, hence currently 23:00 GMT. I think it would be useful to locate the three prices for each day rather than use fixed timeslots, and then present them for today and tomorrow (when the prices are available) as band - price - start - end.
This is a bit tricky to keep the 23:00-00:00 price in tomorrow, particularly when DST kicks in and we move to BST, but I will look at adding the extra code so the HA sensor includes:
current 30min price
next 30min price
current band (RAG),
current band start (hh:mm local time)
current band end
next band (RAG)
today
R
price
start
end
A
price
start
end
G
price
start
end
tomorrow
R
price
start
end
A
price
start
end
G
price
start
end
Needs writing and testing, and then I have to get it into GitHub,.so I will see what can be done when I have a moment to look at this properly.