8000 GitHub - robertugo2/ha_rce: Rynkowa cena energii elektrycznej (RCE)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

robertugo2/ha_rce

 
 

Repository files navigation

Fork of https://github.com/jacek2511/ha_rce. Thanks @jacek2511 for your work!

Improved:

homeassistant-rce

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
now:
  show: true
  label: Teraz
  color: var(--secondary-color)
yaxis:
  - decimals: 3
    id: Ceny
    apex_config:
      tickAmount: 5
  - decimals: 1
    id: Prognoza
    opposite: true
    apex_config:
      tickAmount: 5
series:
  - entity: sensor.rynkowa_cena_energii_elektrycznej_rynkowa_cena_energi_elektrycznej
    yaxis_id: Ceny
    type: column
    name: Cena
    float_precision: 0
    data_generator: |
      return entity.attributes.raw_today.map((start, index) => {
        return [new Date(start["hour"]).getTime(), entity.attributes.raw_today[index]['price']];
      });
  - entity: sensor.solcast_pv_forecast_prognoza_na_dzisiaj
    yaxis_id: Prognoza
    type: line
    name: Prognoza
    float_precision: 1
    data_generator: |
      var today = entity.attributes.detailedForecast.map((start, index) => {
        return [new Date(start["period_start"]).getTime(), entity.attributes.detailedForecast[index]["pv_estimate"]];
      });
      var data = today
      return data;

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/robertugo2/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
    unit - energy unit, default: kWh
    currency - default: PLN
    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)
    use_cent - in case of PLN, true means that prices are in gr and if false in zloty
    tomorrow_valid - indicates, if tomorrow's prices were fetched sucessfu
5C55
lly
    unit_of_measurement - currency / unit
    raw_today - today's hourly prices in the format
      - hour: 2024-06-28 00:00
        price: 604.2
        low_price: false
      - hour: 2024-06-28 01:00
        price: 488.93
        low_price: false
    raw_tomorrow - tomorrow's hourly prices

About

Rynkowa cena energii elektrycznej (RCE)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.8%
  • Shell 4.2%
0