Home Assistant integration that provides current Czech electricity spot prices based on OTE.
You can select an energy unit between kWh and MWh when configuring the integration. OTE prices are in EUR, but you can also select to use CZK (Czech Koruna) as a currency for displayed prices (based on ČNB rate for given day).
- Copy
custom_components/cz_energy_spot_prices
directory into yourcustom_components
in your configuration directory. - Restart Home Assistant
- Open Settings -> Devices & Services -> Integration
- Search for "Czech Energy Spot Prices" and click the search result
- Configure Currency and Unit of energy
- Submit
You can use created sensor (usually called sensor.current_spot_electricity_price
) to get current hourly price in selected unit and currency.
The sensor also has currently valid (current day, and if it's after noon (12pm) then also next day) spot prices as attributes on the sensor.
If you want you display a chart with current day (or two days if it's after noon), you can install apexcharts-card card for Home Assistant and then use following config for it:
type: custom:apexcharts-card
header:
show: true
show_states: true
colorize_states: true
graph_span: 2d
span:
start: day
now:
show: true
label: Now
series:
- entity: sensor.current_spot_electricity_price
type: column # or "line" if you prefer
show:
in_header: raw
data_generator: |
return Object.entries(entity.attributes).map(([date, value], index) => {
return [new Date(date).getTime(), value];
});