Code Monkey home page Code Monkey logo

homeassistant_cz_energy_spot_prices's Introduction

Home Assistant Czech Energy Spot Prices

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).

Installation

  1. Copy custom_components/cz_energy_spot_prices directory into your custom_components in your configuration directory.
  2. Restart Home Assistant
  3. Open Settings -> Devices & Services -> Integration
  4. Search for "Czech Energy Spot Prices" and click the search result
  5. Configure Currency and Unit of energy
  6. Submit

Sensors

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

Common attributes

At

timestamp when the cheapest hour starts

Hour

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)

Start

timestamp when consecutive block of cheapest hours starts, only available when the block is in the future

Start hour

hour when consecutive block of cheapest hours starts, only available when the block is in the future

End

timestamp when consecutive block of cheapest hours ends, only available when the block is in the future

End hour

hour when consecutive block of cheapest hours ends, only available when the block is in the future

Min

minimal price in the block, only available when the block is in the future

Max

maximal price in the block, only available when the block is in the future

Mean

average (mean) price in the block, only available when the block is in the future

Displaying a chart

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];
      });

homeassistant_cz_energy_spot_prices's People

Contributors

mashbrno avatar rnovacek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.