Skip to main content

pydanfoss-cloud

Bibliothèque d'accès à l'API cloud non officielle Danfoss Ally (voie 1a, celle de l'application mobile — sans application développeur ni quota partagé), extraite de l'intégration Home Assistant danfoss_ally_cloud. Sans dépendance Home Assistant.

Elle fournit :

  • CloudClient — login email/mot de passe (+ secrets d'installation), liste des têtes, écritures gardées (tuya.m.custom.wkf.settings.change), re-authentification robuste.
  • decode / DanfossDevice — décodage des dps Tuya en un modèle normalisé (schéma produit 03wvrwpv), décodage des codes défaut E1–E15.
  • writes — validation des valeurs avant envoi et garde-fou par modèle.
  • keys — récupération des localKey + IP LAN des passerelles depuis le cloud.
  • local/ — tunnel Zigbee local (DP 198→199, tinytuya) : lecture/écriture d'attributs (pré-chauffage 0x0025), programme hebdomadaire.

Statut d'extraction (roadmap v0.6)

Source unique : ce dossier (custom_components/danfoss_ally_cloud/api/). Il est packagé sous le nom pydanfoss_cloud par le pyproject.toml du dépôt, sans déplacement de fichiers :

  • l'intégration Home Assistant continue de « vendre » ce code (import relatif from .api import …), ce qui garde l'installation HACS autonome ;
  • le connecteur MCP (danfoss-ally-mcp) pourra en dépendre via pip install pydanfoss-cloud une fois la bibliothèque publiée sur PyPI, puis l'intégration basculera vers une dépendance requirements du manifest.json.

Installation en développement :

pip install -e .            # expose le paquet pydanfoss_cloud
pip install -e '.[local]'   # + tinytuya pour le tunnel local

Dépendances

pycryptodome, requests (cœur) ; tinytuya (extra local, tunnel Zigbee). Python ≥ 3.12.

Avertissement

API non documentée, obtenue par observation du protocole de l'application : elle peut changer ou être coupée. Secrets (jeton de session, localKey, identifiants) : jamais journalisés ni commités.

Metadata

Release files for pydanfoss-cloud 0.1.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 pydanfoss-cloud 0.1.0
File Size Uploaded Provenance Actions
pydanfoss_cloud-0.1.0.tar.gz 70.2 kB Without provenance Details for pydanfoss_cloud-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydanfoss-cloud 0.1.0
File Interpreter ABI Platform Actions
pydanfoss_cloud-0.1.0-py3-none-any.whl Python 3 none any Details for pydanfoss_cloud-0.1.0-py3-none-any.whl

Total release size: 112.2 kB

Release files / pydanfoss_cloud-0.1.0.tar.gz

Download URL pydanfoss_cloud-0.1.0.tar.gz
Size 70.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5083f28ad9ec66c327db7bf9689bb7c132a8a482bcaaaca77ae791bc11731077
BLAKE2b-256 checksum
How to use checksums
a1cd4db940b6281bafd8e312e41149bad86fefe00ff8f4c7dbb4aaa174ee73b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / pydanfoss_cloud-0.1.0-py3-none-any.whl

Download URL pydanfoss_cloud-0.1.0-py3-none-any.whl
Size 42.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b85938a9cc95038bb66b9ec4a388212deef5037a211ad8cf4e7d0127f43476ee
BLAKE2b-256 checksum
How to use checksums
a43b8c227fe8f94358ba577f732f3997bc4f40fbabbdf7acbf459605f482cb50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for pydanfoss-cloud 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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