GithubHelp home page GithubHelp logo

cooper-dale / hdo-detector Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 524 KB

parsing published schedulle for the electricity distributor off peak times

License: GNU General Public License v3.0

Shell 100.00%

hdo-detector's Introduction

HDO-detector

ČEZ Distribuce, a. s. id annoncing their electrical network peak ond off-peak hours (HDO) for their regions (e.g. Sever) and your home appliance code (e.g. A1B6DP1). One can configure its details at https://www.cezdistribuce.cz/cs/pro-zakazniky/spinani-hdo.html, you have to know:

  • your region in the Czech republic
  • your code (A1B6DP1) or command (P64) or command code (181)
  • ! in ones house, there can be used more than code (i.e. A1B6DP1 and A1B6DP2) with different time schedulle

Data are published in json format for the winter and summer period and my script is looking for:

  • working day (Po - Pá) or weekend (So - Ne)
  • cuernt time
  • off peak is it active (casZap1) or inactive (casVyp1) Data are published via nginx www sever for Home Assistant to be consumed as state 0 or 1. For the user there is another published file to see whed there will be a state change.

HELP WANTED

Next goal is to convert this script to Home Assistant component.

  • config: region and code (or command or command code) - I am using just the code
  • name: binary_sensor.cez_distribuce_hdo-custom_name
  • binary state atributes:
  • next change time
  • last change time
  • command - should be considered as private
  • region
  • last json download date / time - json is valid for 6 months, but daily check is recomended

hdo-detector's People

Contributors

cooper-dale avatar

Watchers

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