Skip to content

zigul/HomeAssistant-CEZdistribuce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CEZ Distribuce - Home Assistant Sensor

hacs_badge

This sensor is downloading data from https://www.cezdistribuce.cz/cs/pro-zakazniky/spinani-hdo.html. The integration needs the region and the code. One can get this information from the contract with CEZ CZ or https://www.cezdistribuce.cz/cs/pro-zakazniky/spinani-hdo.html. Now the integration supports the continuous measurement code defined by the document https://www.cezdistribuce.cz/file/edee/distribuce/cezdistribuce_pasmaplatnostintavt_prubehove_mereni.pdf (valid on 2024-03-19).

The region and the 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
binary_sensor:
  - platform: cezdistribuce
    name: stred_a1b5dp6
    region: stred
    code: A1B5DP6

set your region and code

supported regions:

  • zapad
  • sever
  • stred
  • vychod
  • morava

Step 3: Restart HA

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

References

Troubleshooting

If you have any problems with the integration, turn on debug logging in your configuration file. After restarting, look in the current log file(home-assistant.log) file for all lines containing "cezdistribuce".

# Example configuration.yaml entry for showing debug logging for this module
logger:
  default: info
  logs:
    custom_components.cezdistribuce: debug

Don't forget to return the logging level back to the basic value "info" after exiting. Otherwise, there will be an unnecessary load on the system.