Skip to main content

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 orchestration
  • node.py: node model and unit loading
  • unit.py: unit classes and device behavior
  • protocol.py: packet/message definitions and parsing helpers
  • exceptions.py: backend-specific exceptions

Intended Usage

The main consumer of this library is the Duotecno Home Assistant integration. The typical flow is:

  1. create a controller
  2. connect to the Duotecno gateway
  3. load nodes and units
  4. subscribe to live state updates
  5. 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:

  1. update pyproject.toml to the new version
  2. commit the version change to main
  3. create and push a matching tag in the form vYYYY.M.N
  4. GitHub Actions builds the wheel and source distribution
  5. the workflow publishes the package to PyPI
  6. 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)

Source distribution for pyDuotecno-ng 2026.9.0
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)

Table of built distributions (wheels) for pyDuotecno-ng 2026.9.0
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

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