How can I create an entity that will provide the new energy feature with my current electricity tariff.
I am using Octopus Go that has a peak rate of 13p/kwh & an off peak rate of 5p/kwh. The rate changes at 00:30 & 04:30 every day.
I have used pretty much this code to give me a entity with pricing for my tariff (Night and Day) and it works great, however I need to update / change or add some functionality, and this is where I am not succeeding (despite trying for some time)… I would also say I am a beginner here
So basically during DST our cheap energy is 23:00 - 06:00 and outside of DST (so winter) it’s 00:00 - 07:00, I’ve set up another binary sensor which updates daily with DST = On / Off (True / False) and I was hoping to do some clever nested IF statement, but I can’t get the syntax right, and I am at the end of my expertise, anyone have any ideas? Or even if there is a simple way to already do it
I hope I can join this conversation.
I have a dashboard page showing current W being used and total kwh used.
I am just using simple entity cards.
What I want to do now is add an entity card showing the total cost of the kWh.
I presume I would have to create a couple of calculations in yaml to make this entity and I’m not sure how to do this.
Here is a picture of the dashboard. The 3rd column on the grid card would be the total kwh cost.
I have only 1 set tariff from my energy provider.
Thanks in advance
Many thanks for this input. I adapted it to our tarif schedule (a city in Switzerland) and extended it for the return tarif for our PV energy.
How could this be adapted with the annual tarif changes? I.e. we had a significant increase of the tarif starting form January 1 2023?
Best would be to have a kind ao matrix to reflect the (annual) tarif changes.