Skip to content
forked from grinco/ote_rate

Home Assistant Sensor Component that tracks electricity cost based on the OTE wholesale price

Notifications You must be signed in to change notification settings

pavelb84/ote_rate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTE Energy Cost Sensor for Home Assistant

This is an integration providing current price per megawatt of energy based on the quote from ote-cr.cz

Installation

Copy this folder to <config_dir>/custom_components/ote_rate/.

If you're using HACS - feel free to add https://github.com/grinco/ote_rate as custom repository.

Once you've installed the custom integration, add the following to your configuration.yaml file:

sensor:
  platform: ote_rate

Calculating price in the local currency

If you have an exchange rate sensor - you can calculate the value in local currency using template sensor:

  platform: template
    sensors:
      czk_price_per_kwh:
        friendly_name: "Current Electricity Price"
        value_template: >-
          {% set CURRENT_PRICE = states("sensor.current_ote_energy_cost") | float(0) %}
          {% set EUR_CZK = states("sensor.exchange_rate") | float(0) %}
          {{- (CURRENT_PRICE * EUR_CZK / 1000) | round(3) -}}
        unit_of_measurement: "CZK/kWh"

About

Home Assistant Sensor Component that tracks electricity cost based on the OTE wholesale price

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%