pydanfoss-cloud
Pure-Python library for Danfoss Ally (unofficial cloud path 1a, local Zigbee tunnel, Tuya cloud MQTT 2.3 frames, Zigbee2MQTT dialect contract, and standalone danfoss2mqtt bridge daemon).
Zero Home Assistant dependency. Powers:
aghulas/danfoss2mqtt— Home Assistant Add-on & standalone Docker bridgeaghulas/ha-danfoss-ally— Home Assistant integration & MQTT Companion v2aghulas/danfoss-ally-mcp— MCP server for Danfoss Ally
Installation
pip install pydanfoss-cloud # core (cloud HTTP client, decode, writes, z2m_contract)
pip install "pydanfoss-cloud[mqtt]" # + paho-mqtt (danfoss2mqtt daemon & Tuya cloud MQTT)
pip install "pydanfoss-cloud[local]" # + tinytuya (local Zigbee tunnel via Ally gateway)
CLI (danfoss2mqtt)
danfoss2mqtt --mqtt-host localhost --base-topic danfoss2mqtt --dry-run
Room coordinator (danfoss-room-coordinator)
A standalone, read-only aggregator for heads on a Zigbee2MQTT coordinator with no Danfoss gateway
and no cloud. It keeps its own room store, publishes bridge/rooms and bridge/heat_demand under
its own prefix, and answers bridge/request/room/* (docs/z2m-cloud-parity.md §6).
danfoss-room-coordinator --source-prefix zigbee2mqtt --base-topic danfoss-rooms --store-path rooms.json
Setpoint fan-out (closed by default)
A room setpoint change (bridge/request/room/set-setpoint) is a fan-out of one /set per head,
each confirmed on that head's own state topic (docs/z2m-cloud-parity.md §5.2). It is
closed by default: nothing is written unless the room is explicitly armed. An unarmed room
is refused and nothing is sent — the coordinator stays read-only.
Arm a room only for a supervised real-hardware trial, by its room_id:
danfoss-room-coordinator --armed-room room-abcd1234 # repeatable
# or options.json: {"armed_rooms": ["room-abcd1234"]}
# or env: DANFOSS_ARMED_ROOMS=room-abcd1234
A user change writes occupied_heating_setpoint; a coordinator-initiated change writes
occupied_heating_setpoint_scheduled. Each head is reported applied / mismatch / unreachable.
Security
No credentials, installation secrets (sign_key, ch_key), or device_id are ever committed to this repository. When omitted, danfoss2mqtt generates and persists its own dedicated 44-hex device_id locally (0600).
License
MIT — see LICENSE.
Metadata
Release files for pydanfoss-cloud 0.6.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 |
|---|---|---|---|---|
| pydanfoss_cloud-0.6.0.tar.gz | 119.8 kB | With provenance | Details for pydanfoss_cloud-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydanfoss_cloud-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pydanfoss_cloud-0.6.0-py3-none-any.whl |
Total release size: 231.5 kB
Release files / pydanfoss_cloud-0.6.0.tar.gz
| Download URL | pydanfoss_cloud-0.6.0.tar.gz |
|---|---|
| Size | 119.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e0d2442abf26960a9c0e25431fa40961abdfe98df87624da49ca1099e854949
|
|
BLAKE2b-256 checksum How to use checksums |
3b4467605393c4cea5ad635390a8bf0c50aefc376c9e8bdb3016ff9d14cb3966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / pydanfoss_cloud-0.6.0-py3-none-any.whl
| Download URL | pydanfoss_cloud-0.6.0-py3-none-any.whl |
|---|---|
| Size | 111.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5e59916e167d18f6f43291903290fc77e61cde0509208533f211435d40a5b1d
|
|
BLAKE2b-256 checksum How to use checksums |
f2e6103128c19a52cdd05b752b3e6c64e5cb9b44a2aa35acdf7b8115c8f9c693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for pydanfoss-cloud 0.6.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 pydanfoss_cloud-0.6.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 Nov 24, 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.