Skip to content

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform

Notifications You must be signed in to change notification settings

istaveren/hass-entso-e

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 

Repository files navigation

Home Assistant ENTSO-e Transparency Platform Energy Prices Donate

Custom component for Home Assistant to fetch energy prices of all European countries from the ENTSO-e Transparency Platform (https://transparency.entsoe.eu/). Day ahead energy prices are added as a sensor and can be used in automations to switch equipment. A 24 Hour forecast of the energy prices is in the sensors attributes.

API Access

You need an ENTSO-e Restful API key for this integration. To request this API key, register on the Transparency Platform and send an email to [email protected] with “Restful API access” in the subject line.

Sensors

The integration adds the following sensors:

  • Average Day-Ahead Electricity Price Today
  • Highest Day-Ahead Electricity Price Today
  • Lowest Day-Ahead Electricity Price Today
  • Current Day-Ahead Electricity Price
  • Current Percentage Relative To Highest Electricity Price Of The Day
  • Next Hour Day-Ahead Electricity Price
  • Time Of Highest Energy Price Today
  • Time Of Lowest Energy Price Today

Installation

Manual

Download this repository and place the contents of custom_components in your own custom_components map of your Home Assistant installation. Restart Home Assistant and add the integration through your settings.

HACS

Add https://github.com/JaccoR/hass-entso-e to your HACS custom repositories and install through HACS. Restart Home Assistant and add the integration through your settings.


Configuration

The sensors can be added using the web UI. In the web UI you can add your API-key and country and the sensors will automatically be added to your system. There is an optional field for an additional cost template.

Additional Cost Template

In the optional field Additional Cost Template a template for additional costs, like hourly fixed costs, can be added. When left empty, no additional costs are added. In this template now() always refers start of the hour of that price. this way we can calculate the correct costs and add that to the day ahead prices.

An example template is given below:

{% set s = {
    "hourly_fixed_cost": 0.5352,
    "winter_night": 0.265,
    "winter_day": 0.465,
    "summer_day": 0.284,
    "summer_night": 0.246,
    "cert": 0.01
}
%}
{% if now().month >= 5 and now().month <11 %}
    {% if now().hour >=6 and now().hour <23 %}
        {{s.summer_day+s.hourly_fixed_cost+s.cert|float}}
    {% else %}
        {{s.summer_night+s.hourly_fixed_cost+s.cert|float}}
    {% endif %}
{% else %}
    {% if now().hour >=6 and now().hour <23 %}
        {{s.winter_day+s.hourly_fixed_cost+s.cert|float}}
    {%else%}
        {{s.winter_night+s.hourly_fixed_cost+s.cert|float}}
    {% endif %}
{% endif %}

Updates

The integration is in an early state and receives a lot of updates. If you already setup this integration and encounter an error after updating, please try redoing the above installation steps.

About

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%