CEZ Distribution HDO detector
App to monitor CEZ Distribuce HDO times and handle e-plugs via its API. HDO Distribution times for triggering e-plugs are based on this website https://www.cezdistribuce.cz/pro-zakazniky/potrebuji-vyresit/stavajici-pripojeni/casy-spinani-nizkeho-tarifu and its GraphQL API.
- Provider support: CEZ Distribuce
- ePlug support: Shelly Plug generation 2 and 3
Instalation
pip install hdo-cez-dist
Usage
hdo-cez-dist --help
usage: App to monitor CEZ Distribuce HDO and turn on/off e-plugs. [-h] [--plug-type PLUG_TYPE] [--plug-host PLUG_HOST] [--range-crop RANGE_CROP] device_code device_area
positional arguments:
device_code HDO Device code consists from 7 letters and numbers.
device_area HDO Device area. For example: morava
optional arguments:
-h, --help show this help message and exit
--plug-type PLUG_TYPE
E-plug type. Example: shelly_plug
--plug-host PLUG_HOST
E-plug host. If you need to control more plugs at once, specify their hosts separated by commas.
--range-crop RANGE_CROP
Crop HDO timing from left and right side (in minites). Default is 0, which means no cropping.
CRON example
*/5 * * * * root hdo-cez-dist ab12345 morava --plug-type shelly_plug --plug-host 192.168.1.10,192.168.1.11 >> /var/log/hdo-cez-dist.log
Logrotate example
echo "/var/log/hdo-cez-dist.log {
daily
rotate 7
nocompress
missingok
notifempty
copytruncate
}" > /etc/logrotate.d/hdo-cez-dist
Metadata
Release files for hdo-cez-dist 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hdo_cez_dist-0.1.8.tar.gz | 27.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hdo_cez_dist-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.7 kB
Release files / hdo_cez_dist-0.1.8.tar.gz
| Download URL | hdo_cez_dist-0.1.8.tar.gz |
|---|---|
| Size | 27.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
238bfe62d468181501f1bf774d1a679ca9cdb4910597a2b8961cfbee25c4cac6
|
|
BLAKE2b-256 checksum How to use checksums |
63fb6ba2c6a6d0c0115ff33ab57e5dfe76430a15195784f857ec9571157ce11c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / hdo_cez_dist-0.1.8-py3-none-any.whl
| Download URL | hdo_cez_dist-0.1.8-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a52fd8e276f0edeef733bc059d4d4a5a945d07f9f8fc2f35e5c44335088a3edd
|
|
BLAKE2b-256 checksum How to use checksums |
7aef27a41d47ff365c0126f393db99ff6a648bdcbacb67d1e99b4f45b2b4efe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|