ZhongHongHVAC
Python driver for ZhongHong HVAC Controller
Connection robustness
The gateway connection is self-healing:
- Unknown protocol values (for example fan speed
0x00reported by an indoor unit right after power-off) are tolerated instead of crashing the listener. A malformed frame is logged and skipped while the rest of the buffer is still processed. - The listener thread survives unexpected errors and keeps running.
- When no status data has been received for
probe_intervalseconds the hub sends a status query as a health probe. Aftermax_probe_failuresconsecutive failed probes the TCP connection is reopened. ZhongHongGateway.connectedreflects the health of the connection so integrations can mark entities unavailable instead of showing stale values.
Tunables (instance attributes, set before start_listen()):
| Attribute | Default | Meaning |
|---|---|---|
_recv_timeout |
30.0 | socket read timeout in seconds |
_probe_interval |
60.0 | seconds without data before probing |
_probe_response_timeout |
10.0 | seconds to wait for a probe response |
_max_probe_failures |
3 | consecutive probe failures before reopening the socket |
_stale_timeout |
300.0 | seconds without data before connected turns False |
Release
Pushing a vX.Y.Z tag publishes the package to PyPI automatically (workflow:
.github/workflows/publish.yml). It runs the test suite, builds the sdist and
wheel, verifies that the tag matches the package version, and uploads.
-
Bump the version in
zhong_hong_hvac/version.pyandpyproject.toml. -
Commit the change, then tag and push:
git tag vX.Y.Z git push origin vX.Y.Z
First-time setup, one of:
- Trusted publishing (recommended, no secrets needed): add a trusted publisher
on PyPI for this repository (
crhan/ZhongHongHVAC), workflowpublish.yml, environmentpypi, projectzhong-hong-hvac. - Or add a repository secret
PYPI_TOKENwith a PyPI API token scoped to thezhong-hong-hvacproject.
Metadata
Release files for zhong-hong-hvac 1.0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zhong_hong_hvac-1.0.21.tar.gz | 15.7 kB | With provenance | Details for zhong_hong_hvac-1.0.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zhong_hong_hvac-1.0.21-py3-none-any.whl | Python 3 | none | any | Details for zhong_hong_hvac-1.0.21-py3-none-any.whl |
Total release size: 32.9 kB
Release files / zhong_hong_hvac-1.0.21.tar.gz
| Download URL | zhong_hong_hvac-1.0.21.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a45f7ec82ae9779d94d7de57c7e220fc6a67b9f59acdf97366c659f5469affea
|
|
BLAKE2b-256 checksum How to use checksums |
dda4978e3b17f2e4eb1285fb49c811ed0c6e65e799f6d935b30e5c0b93d095b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency logRelease files / zhong_hong_hvac-1.0.21-py3-none-any.whl
| Download URL | zhong_hong_hvac-1.0.21-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2b7585655b7c69897fb079cf050626ec3118c1a502de131a3283dc4afa1c87b
|
|
BLAKE2b-256 checksum How to use checksums |
d357dbfe2003ab2b4b4187c11866fdf3b7190509c1d3d9848fcb3a334a5dc826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency logSecurity for zhong-hong-hvac 1.0.21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zhong_hong_hvac-1.0.21.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.