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
Sensor | value | attributes |
---|---|---|
Current Spot Electricity Price | electricity price for current hour | dictionary with timestamps as keys and spot price for given hour as values |
Spot Cheapest Electricity Today | price of the cheapest electricity today | At Hour |
Spot Most Expensive Electricity Today | price of the most expensive electricity today | At Hour |
Spot Cheapest Electricity Tomorrow | price of the cheapest electricity today | At Hour |
Spot Most Expensive Electricity Tomorrow | price of the most expensive electricity tomorrow | At Hour |
Current Spot Electricity Hour Order | order of current hour when we sort hours by it's price (1=cheapest, 24=most expensive) | dictionary with timestamps as keys and order, price as values |
Tomorrow Spot Electricity Hour Order | no value | dictionary with timestamps as keys and order, price as values |
Spot Electricity Has Tomorrow Data | On when data for tomorrow are loaded, Off otherwise |
|
Spot Electricity Is Cheapest | On when current hour has the cheapest price, Off otherwise |
Start Start hour End End hour Min Max Mean |
Spot Electricity Is Cheapest X Hours Block |
On when current hour is in a block of cheapest consecutive hours, Off otherwise |
Start Start hour End End hour Min Max Mean |
Cheapest hour within a X hour period |
On when current hour is the cheapest from larger period, Off otherwise |
timestamp when the cheapest hour starts
hour with the cheapest electricity (2
means that cheapest electricity is from 2:00
till 3:00
in timezone you've configured in Home Assistant)
timestamp when consecutive block of cheapest hours starts, only available when the block is in the future
hour when consecutive block of cheapest hours starts, only available when the block is in the future
timestamp when consecutive block of cheapest hours ends, only available when the block is in the future
hour when consecutive block of cheapest hours ends, only available when the block is in the future
minimal price in the block, only available when the block is in the future
maximal price in the block, only available when the block is in the future
average (mean) price in the block, only available when the block is in the future
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];
});