Any good ideas are welcome. Nordpool Energy Price per hour

If there are Estonian users, I share the tariffs and total electricity price including VAT.

Tariffs:

  - platform: template
    sensors:
      el_tariff:
        friendly_name: "Electricity Tariffs"
        unit_of_measurement: '€/kWh'
        value_template: >-
          {% macro calc(v) -%}
            {%set d = {"operator_margin": 0.001,
                      "electricity_excise": 0.001,
                      "renewable_tariff": 0.0113,
                      "nw_fee_night": 0.0162,
                      "nw_fee_day": 0.0283

           } %}
          {%set day_price = v + ((d.operator_margin + d.renewable_tariff + d.electricity_excise + d.nw_fee_day) * 1.2 | float ) | round(4)%}
          {%set night_price = v + ((d.operator_margin + d.renewable_tariff + d.electricity_excise + d.nw_fee_night) * 1.2 | float ) | round(4)%}
          {% if now().weekday() in (5,6) %}
           {{night_price}}
          {% else %}
            {% if now().hour >= 7 and now().hour < 22%}
              {{day_price}}
            {% else %}
              {{night_price}}
            {% endif %}
          {% endif %}
          {%- endmacro %}

          {{calc(0)}}

Total electorcity price

  - platform: template
    sensors:
      total_el_price:
        friendly_name: "Total Electicity Price"
        unit_of_measurement: '€/kWh'
        value_template: "{{ (states('sensor.nordpool_kwh_ee_eur_3_05_02')  | float
                            + states('sensor.el_tariff') | float) | round (2) }}"

Nordpool integration conf as well

  - platform: nordpool
    VAT: True
    currency: "EUR"
    low_price_cutoff: 0.5
    region: "EE"
    precision: 3
    price_type: kWh
6 Likes