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.7
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.7.tar.gz | 27.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hdo_cez_dist-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.0 kB
Release files / hdo_cez_dist-0.1.7.tar.gz
| Download URL | hdo_cez_dist-0.1.7.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a174e7c0d7e35c0cac083bdc79eaa260773b8e3fb8364f2f50ba200f4dd94ed5
|
|
BLAKE2b-256 checksum How to use checksums |
e64998ffd4f9571ef0c329a11e29104b8b9615d42ae400e9198342b499d8f558
|
| 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.7-py3-none-any.whl
| Download URL | hdo_cez_dist-0.1.7-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e4ce963f653ce1d28c34681409bfa57e202a3ecc63ae0f279ae7ccdde62a720
|
|
BLAKE2b-256 checksum How to use checksums |
78c25dfc80d4834e7a619111a7d43f5577b78f59031de5c2f4b24e9b058ddb6b
|
| 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}
|