Hi
I am trying to configure the energy dashboard to correctly show my electricity charges. I have an economy 7 style tariff. I have tried to setup a template I copied from another post but I am getting errors.
template:
# Home Energy sensors for HAEnergy
- name: Octopus GO
unit_of_measurement: GBP
state: >
{% set e7_normal = 0.3443 %}
{% set e7_cheap = 0.0750 %}
{% if states('sensor.time_utc') >= ('04:30' | timestamp_custom('%H:%M', False)) %}
{{( e7_normal ) | float}} {% else %}
{% if states('sensor.time_utc') >= ('00:30' | timestamp_custom('%H:%M', False)) %}
{{( e7_cheap ) | float}} {% else %}
{{( e7_normal ) | float}} {% endif %} {% endif %}
I want to then add on the standing daily charge but not sure how to do this.
Any help would be greatly appreciated