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
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.
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.
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
- zapad
- sever
- stred
- vychod
- morava
For the newly added integration to be loaded, HA needs to be restarted.
- PRE Distribuce - Home Assistant Sensor (https://github.com/slesinger/HomeAssistant-PREdistribuce)
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.