Skip to content

HA custom component for HACS to fetch Belgian SDAC prices from Elia

License

Notifications You must be signed in to change notification settings

milanhin/sdac_elia

Repository files navigation

SDAC Elia

Custom component for Home Assistant HACS to fetch Belgian SDAC prices. The prices are stored in sensors that can be used for automation purposes. This component is built for quarterly hour prices. No API key is needed to fetch the data.

Pricing context

All prices are expressed in €/MWh. VAT or distribution network costs can be added through the configuration.

Sensors

This component adds the following sensors to Home Assistant:

  • Elia SDAC current price: shows the current sdac price and stores the sdac prices of today and tomorrow in its atributes
  • Custom electricity price (Optional): custom formula applied to sdac price, needs to be configured
  • Custom injection tariff (Optional): custom formula for injection tariff applied to sdac price, needs to be configured

Installation

Installing the custom component can be done with HACS by searching for "SDAC Elia".

OR

It can be installed manually by downloading the latest release and copying the sdac_elia folder into to your Home Assistant config/custom_components folder.

Configuration

Configuration is done through the UI by going to settings -> integrations -> add the SDAC Elia integration. Tick the boxes of the sensors you'd like to configure. For each sensor, two parameters are required. These two typically make up a price formula. The config parameters for each sensor are called:

  • custom_price
    • price_factor
    • fixed_price
  • custom_injection_tariff
    • injection_tariff_factor
    • fixed_injection_price

of which the factor is the multiplicator for the sdac (EPEX) price and the fixed price is the commission added to the formula, typically described as: $\mathbf{A \cdot \mathrm{EPEX} \pm B}$ where A is the factor and B is the fixed cost. An example:

In the case of Ecopower's formulae (as of dec-2025):

  • electricity price: 0.00102 * EPEX_DA + 0.004 [€/kWh]
  • injection tariff: 0.00098 * EPEX_DA - 0.015 [€/kWh]

These formulae do not include network costs (NL: nettarieven) or VAT (NL: BTW). It is possible to include those costs by adding them to the fixed cost or factor parameter, respectively. Note: the formula is expressed in €/kWh and should be configured this way as well, while the EPEX price is expressed in €/MWh.

Graph with pricing forecast

A graph can be shown with the ApexChart Graph Card. The lovelace code (based on hass-entso-e) for this graph is:

type: custom:apexcharts-card
graph_span: 24h
span:
  start: day
now:
  show: true
  label: Now
header:
  show: true
  title: Elia SDAC prices of today (€/Mwh)
yaxis:
  - decimals: 2
series:
  - entity: sensor.elia_sdac_current_price
    stroke_width: 2
    float_precision: 3
    type: column
    opacity: 1
    color: ""
    data_generator: |
      return entity.attributes.prices.map((entry) => { 
      return [new Date(entry.time), entry.price];
      });

And would result in:
SDAC prices forecast plot

About

HA custom component for HACS to fetch Belgian SDAC prices from Elia

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages