Fork of https://github.com/jacek2511/ha_rce. Thanks @jacek2511 for your work!
Improved:
- Simplify the config flow
- Add new parameter: price multiplier - thanks to that it is possible to include 23% VAT for an exported energy (the multiplier is set by default to 1.23)
- Attributes are compatible with https://github.com/MTrab/energidataservice so it is possible to use this integration in https://github.com/springfall2008/batpred
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;
Using HACS (recommended)
You can install the plugin via HACS using the following steps
- Open HACS
- Click Integrations
- Clik the three dots on the top right
- Click "Custom repositories"
- Add https://github.com/robertugo2/ha_rce/ and a category of your choice
All integration settings are available in the options in the integration configuration panel.
- 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