Git Product home page Git Product logo

ote_rate's Introduction

Push actions Build actions

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 this integration through the integration setup UI.

Calculating price in a local currency

You can calculate price in a local currency, either using custom value or exchange rate sensor (follow setup flow).

Adding costs to price

For example if you sell energy and your provider has some fee, you can set costs which will be deducted from OTE price.

ote_rate's People

Contributors

grinco avatar martin-klima avatar yardee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ote_rate's Issues

hourly price shift

Ahoj, dobrá práce s pluginem, díky!
Mám dotaz na hodinové sazby. Pokud jsou na OTE vylistované v tabulce sloupce 1-24, platí ty ceny pro 00:00-00:59 pro první soupec atd až 23:00-23:59 pro 24. sloupec?
Hassio mi ukazuje cenu např teď pro předchozí hodinu.
Jak je to správně?
Díky!

image

vs

image

Extend functionality for whole day data

Hi, at first thanks a lot for this development.
Q: Is it possible to extend functionality to read and expose all day data means for each hour (and in best scenario also for next day)?
Thanks once again.

Can we get gas price too?

I have options for both gas and electric heating, and due to gas prices these days would like to automatically switch between them. It looks like OTE has gas prices as well, any chance to add them?

thank you

Hallo guys, thank you, that you made and share such great feature like this OTE sensor. I realy appreciate that.
Thank you R

The readout is not working

The problem is probably the conversion to CZK currency. Any ideas how to fix it ? The value in euros is displayed correctly.

ScreenHunter_09 Jan  08 11 52
ScreenHunter_10 Jan  08 11 53

Outdated installation information

Outdated information about instalation at this pages...

Definitely is not possible to add sensor configuration to configuration.yaml

obrazek

Home Assistant 2022.11.4
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221108.0 - latest

Unable to add repository

I am unable to add repostory for OTE Rate

obrazek

Home Assistant 2022.11.4
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221108.0 - latest

Where is the problem?

different calculation / odlišný výpočet

Zdravim a jen chci demonstrovat rozdil vypoctene ceny mnou a Vami (home-assistantem) a to na celkem male castce,
ceny ote-cr nam sedi, spotrba temer taky a distribuci tam pocitam zvlast. Ja na to pouzivam hjodnoty watthodin dodavane stridacem, myslim ze vy uz tam mate ze senzoru zaokrouhlene kWh, zaokrouhleni delam az na konci - asi bude rozdil tady co ?

Zatim nemam, ale az bude vyuctovani dodavatele, prilozim to sem

pekny den p.v.

Obrázek WhatsApp, 2023-05-12 v 06 23 30

Obrázek WhatsApp, 2023-05-12 v 06 23 31

Error occured while retrieving data from ote-cr.cz.

Hello,

I have started using this integration and thank its awesome. Unfortunately, twice it returned zero values which lead to triggers in automations based on electricity price which shouldnt happen. I am still a beginner but this is what I have found in log - the timestamp corresponds to the sensor returning zero price. It would be nice is developer could check this out:

Logger: custom_components.ote_rate.sensor
Source: custom_components/ote_rate/sensor.py:79
Integration: ote_rate (documentation)
First occurred: 01:40:17 (1 occurrences)
Last logged: 01:40:17

Error occured while retrieving data from ote-cr.cz.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.10/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 372, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 402, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/config/custom_components/ote_rate/sensor.py", line 79, in _get_current_value
json = response.json()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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.