Skip to main content

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)

Source distribution for hdo-cez-dist 0.1.8
File Size Uploaded
hdo_cez_dist-0.1.8.tar.gz 27.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hdo-cez-dist 0.1.8
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page