Hi there. Firstly, thanks to @funny0frankfor this excellent API. A real boon to the home automation community, kudos! I've recently switched providers from Tibber to Lyse (long story) and therefore no longer have access to the Tibber API. So, was looking for something precisely like this to be able to pull electricity rates for here in Stavanger into Home Assistant. Previously with the Tibber HA integration I had a card on my dashboard that would display whether the electricity rate at any particular time was some variation of "Very Cheap" to "Very Expensive" and that allowed us to know whether it was worth running the dishwasher/washing machine or not.
I'd like to recreate this (or some close-enough approximation) if possible, however, my code-fu is pretty abysmal - i can manage a bit of yaml but mostly i just crib from other people's work and tweak what I can figure out haha.
I've been trying to game it out in my head how to run it. I'm thinking I would need to:
poll the API, once a day at midnight, to get the electricity rates for the coming day
store that data somewhere
create a sensor in Home Assistant that then looks at that data every hour to display the relevant price for that hour
create a template sensor that changes the price into categories of "Very Cheap", "Cheap", "Normal", "Expensive", "Very Expensive" based on defined ranges
(The last part, while not necessary, would really give it that extra WAF that makes home automation popular in our household!)
Does that sound about right? I'd be interested to know if anyone here has managed to use @funny0frank's API in home assistant to create something similar?
Thanks, and apologies for the English - my Norwegian-fu is also not nearly solid enough to bust out in public...