Hi All,
I’ve found a few bits and pieces relating to this, but I’m looking for some advice on whether I’m on the right track, or if there are any better ways of achieving what I’m trying to do…
For a bit of background: I am in the UK and have the Octopus Go smart tariff. My rates are 0.0748p per kWh between 00:30 and 04:30 and 0.3061p per kWh outside of this. I’m hoping to set up a dashboard that tracks usage costs (I assume every 30 mins is about right) throughout the day, resetting at midnight and keeping a sum of usage costs per week, month and year.
I’ve been using the Bright Hildebrand Glow app and integrated that into HA. But, I have been having a battle with Octopus, as I cannot get the off peak rate to report between 00:30 until 04:30. I’m just seeing a flat rate of 0.3061p per kWh all day and night. The team at Bright have assured me that other customers with Octopus Go are succesfully seeing their rates switch to the off peak cost during off peak times and I have been going back and forth with Octopus support for months now and getting nowhere. So…
I’m wondering if I’d be able to use what I have so far to create something custom. So far, I have an accurate and up to date consumption report and the daily standing charge via the sensors that were added with the Hildebrand Glow DCC add-on. I have also added the following template sensor for the current Octopus Go rate, thanks to a forum post from community members:
sensor:
- platform: template
sensors:
octopus_go:
friendly_name: Octopus Go Current Rate
unit_of_measurement: GBP/kWh
value_template: >
{% set tariff = { "HT": 0.3061, "LT": 0.0748 } %}
{% if ((30 <= (now().hour * 100) + now().minute <= 430)) %}
{{ tariff.LT }}
{% else %}
{{ tariff.HT }}
{% endif %}
I guess what I’m trying to do now is tie this all together into some kind of dashboard that can multiply the current consumption by the currrent rate each time the consumption is updated (and then add the standing charge on top). I’d then hope for it to reset at midnight and be able to keep a weekly/monthly/annual track of it all.
Firstly, would that be possible to do? Second, is there a better way to achieve this same thing. Perhaps with the Octopus API?
Ideally, I’d end up with a better version of the IHD that Octopus supplied - one that works with smart tariffs.
Thanks in advance…