Skip to content

jacek2511/ha_rce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Latest Release License GitHub All Releases GH-last-commit HACS

homeassistant-rce

Rynkowa cena energii elektrycznej (RCE)

This is an integration between Home Assistant and PSE RCE

The RCE sensor provides the current price with today's and tomorrow's prices as attributes. Prices for the next day become available around 3:00 p.m.

ApexCharts card is recommended for visualization of the data in Home Assistant.

Example configuration for the cards

type: custom:apexcharts-card
graph_span: 24h
span:
  start: day
header:
  show: true
  title: Rynkowa Cena Energii Elektrycznej [zł/MWh]
  colorize_states: true
now:
  show: true
  label: Teraz
  color: var(--secondary-color)
yaxis:
  - decimals: 0
    apex_config:
      tickAmount: 5
series:
  - entity: sensor.rynkowa_cena_energii_elektrycznej
    type: column
    name: Cena Rynkowa Energii Elektrycznej
    float_precision: 2
    data_generator: |
      return entity.attributes.today.map((start, index) => {
        return [new Date(start["start"]).getTime(), entity.attributes.today[index]['tariff']];
      });

Install

Using HACS (recommended)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

You can install the plugin via HACS using the following steps

  1. Open HACS
  2. Click Integrations
  3. Clik the three dots on the top right
  4. Click "Custom repositories"
  5. Add https://github.com/jacek2511/ha_rce/ and a category of your choice

Configuration

All integration settings are available in the options in the integration configuration panel. image

Available components

Sensor

  • rynkowa_cena_energii_elektrycznej - current energy price
  attributes: 
    next_price - energy price in the next hour
    average - average daily energy price
    off_peak_1 - average energy price from 00:00 to 08:00
    off_peak_2 - average energy price from 20:00 to 00:00
    peak - average energy price from 08:00 to 20:00
    min_average - minimum average energy price in the range of x consecutive hours; where x is configurable in options
    custom_peak - average energy price over the range of hours defined by custom_peak_range
    min - minimum daily energy price
    max - maximum daily energy price
    mean - median daily energy price
    custom_peak_range - configurable range of hours for which the custom_peak attribute is calculated
    low_price_cutoff - percentage of average price to set the low price attribute (low_price = hour_price < average * low_price_cutoff)
    today - today's hourly prices in the format
      - start: 2024-06-28 00:00
        tariff: 604.2
        low_price: false
      - start: 2024-06-28 01:00
        tariff: 488.93
        low_price: false
    tomorrow - tomorrow's hourly prices