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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zhong_hong_hvac-1.0.15.tar.gz.
File metadata
- Download URL: zhong_hong_hvac-1.0.15.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4fd42f4303affd061b0ac4ea90b26634c02db982a7e7cd2d716a432314e7117
|
|
| MD5 |
1a0a298361c32590381a81dc817075a1
|
|
| BLAKE2b-256 |
02f38e05726325d4259ba58225ef394d1b001fa2d6e16cb59a6b15098826214e
|
Provenance
The following attestation bundles were made for zhong_hong_hvac-1.0.15.tar.gz:
Publisher:
publish.yml on crhan/ZhongHongHVAC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zhong_hong_hvac-1.0.15.tar.gz -
Subject digest:
f4fd42f4303affd061b0ac4ea90b26634c02db982a7e7cd2d716a432314e7117 - Sigstore transparency entry: 2311657579
- Sigstore integration time:
-
Permalink:
crhan/ZhongHongHVAC@3ea9862d727d3a6d36fdfc224ca38b58aa12ed0f -
Branch / Tag:
refs/tags/v1.0.15 - Owner: https://github.com/crhan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3ea9862d727d3a6d36fdfc224ca38b58aa12ed0f -
Trigger Event:
push
-
Statement type:
File details
Details for the file zhong_hong_hvac-1.0.15-py3-none-any.whl.
File metadata
- Download URL: zhong_hong_hvac-1.0.15-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee3b0d14d241fafa685fb99247bdb7a3826a3544d40dcfedb1ca40e143fd670d
|
|
| MD5 |
608a3ff95ffbbcbda6669e8836ae70a4
|
|
| BLAKE2b-256 |
00aa5cc104020e492cfff7b041af59af26cd4573e378fe878ec0e4966536a852
|
Provenance
The following attestation bundles were made for zhong_hong_hvac-1.0.15-py3-none-any.whl:
Publisher:
publish.yml on crhan/ZhongHongHVAC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zhong_hong_hvac-1.0.15-py3-none-any.whl -
Subject digest:
ee3b0d14d241fafa685fb99247bdb7a3826a3544d40dcfedb1ca40e143fd670d - Sigstore transparency entry: 2311657612
- Sigstore integration time:
-
Permalink:
crhan/ZhongHongHVAC@3ea9862d727d3a6d36fdfc224ca38b58aa12ed0f -
Branch / Tag:
refs/tags/v1.0.15 - Owner: https://github.com/crhan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3ea9862d727d3a6d36fdfc224ca38b58aa12ed0f -
Trigger Event:
push
-
Statement type: