Giter Site home page Giter Site logo

homeassistant-egddistribuce's Introduction

EGD Distribuce - Home Assistant Sensor

hacs_badge

This sensor is downloading json data from EGD webpage. The integration needs the postal code and the HDO code (A,B,DP). These information can be checked on EGD web site https://www.egd.cz/casy-platnosti-nizkeho-tarifu. The postal code and the HDO code have to be defined in configuration.yaml

This sensor shows

  • current state of HDO

Installation

Step 1: Download files

Option 1: Via HACS

Make sure you have HACS installed. If you don't, run curl -sfSL https://hacs.xyz/install | bash - in HA. Then choose Components under HACS. Choose the menu in the upper right, and select Custom repositories. Then add this repo's URL. You should be able to choose to Install now.

Option 2: Manual

Clone this repository or download the source code as a zip file and add/merge the custom_components/ folder with its contents in your configuration directory.

Step 2: Configure

Add the following to your configuration.yaml file:

# Example configuration.yaml entry for showing current HDO state
# HDO example (A1B8P05) will be splitted into  A1 -> 1, B8 -> 8, P05 -> 05  
binary_sensor:
  - platform: egddistribuce
    name: HDO
    psc: 
    code_a: "1"
    code_b: "8"
    code_dp: "05"

# HDO example for D57d tarfis you can create multiple binary sensors (A3B7P1,2,6)
binary_sensor:
  - platform: egddistribuce
    name: egdTAR
    psc: 
    code_a: "3"
    code_b: "7"
    code_dp: "01"

  - platform: egddistribuce
    name: egdPV
    psc: 
    code_a: "3"
    code_b: "7"
    code_dp: "02"

  - platform: egddistribuce
    name: egdTUV
    psc: 
    code_a: "3"
    code_b: "7"
    code_dp: "06"

Step 3: Restart HA

For the newly added integration to be loaded, HA needs to be restarted.

References

homeassistant-egddistribuce's People

Contributors

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