pyDuotecno-ng
pyDuotecno-ng is the standalone Python library for communicating with Duotecno controllers.
It contains the protocol and transport layer used by the Home Assistant Duotecno integration, including:
- TCP connection management
- controller login
- packet encoding and decoding
- node and unit discovery
- state updates and command dispatch
- JSON-based startup loading with bus-scan fallback
Scope
This repository is the backend library only. It is intentionally separate from the Home Assistant integration so the protocol code can be versioned, tested, and released independently.
If you are looking for the Home Assistant integration wrapper, use the companion integration repository that depends on this package.
Repository Layout
controller.py: main connection and scan orchestrationnode.py: node model and unit loadingunit.py: unit classes and device behaviorprotocol.py: packet/message definitions and parsing helpersexceptions.py: backend-specific exceptions
Intended Usage
The main consumer of this library is the Duotecno Home Assistant integration. The typical flow is:
- create a controller
- connect to the Duotecno gateway
- load nodes and units
- subscribe to live state updates
- send commands to supported unit types
Status
This library is being maintained as a standalone public backend so it can be consumed cleanly by the Home Assistant integration and other future tooling if needed.
Releases
This repository is intended to publish tagged releases that match the PyPI package version exactly.
The PyPI distribution name is pyDuotecno-ng. The Python import package remains duotecno.
Release flow:
- update
pyproject.tomlto the new version - commit the version change to
main - create and push a matching tag in the form
vYYYY.M.N - GitHub Actions builds the wheel and source distribution
- the workflow publishes the package to PyPI
- the same release artifacts are attached to the GitHub release
This matches Home Assistant expectations that:
- the dependency source is public
- published package versions correspond to tagged source releases
- PyPI artifacts are built from the same tagged revision
License
This project is licensed under the Apache License 2.0. See LICENSE.
Metadata
Release files for pyDuotecno-ng 2026.9.0
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 |
|---|---|---|---|---|
| pyduotecno_ng-2026.9.0.tar.gz | 24.2 kB | With provenance | Details for pyduotecno_ng-2026.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyduotecno_ng-2026.9.0-py3-none-any.whl | Python 3 | none | any | Details for pyduotecno_ng-2026.9.0-py3-none-any.whl |
Total release size: 47.9 kB
Release files / pyduotecno_ng-2026.9.0.tar.gz
| Download URL | pyduotecno_ng-2026.9.0.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e68d755e5932d7af460d19b29422ce7e6bff1c3af6e4255d3572ade08bbf66a
|
|
BLAKE2b-256 checksum How to use checksums |
f1200a182773a23b2c4b2c0c8dac61c74adef93c6fd3ba49e1ef01a8a43611af
|
| 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 16, 2026.
Transparency logRelease files / pyduotecno_ng-2026.9.0-py3-none-any.whl
| Download URL | pyduotecno_ng-2026.9.0-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2fa5145e8b18a6151bddf783a78f0e445cf18c474e2a735c5c4647155efeb9d
|
|
BLAKE2b-256 checksum How to use checksums |
90702f66cd50daf7c2009eacf208ca41b22fa192348c2c943fdecc5ba6bdc78c
|
| 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 16, 2026.
Transparency logSecurity for pyDuotecno-ng 2026.9.0
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 pyduotecno_ng-2026.9.0.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 16, 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.