Skip to main content

delonghi-comfort

Async Python client for De'Longhi "My Comfort Hub" (Daedalus platform) connected heaters — e.g. the Dragon 5 Connect (TRD51024WIFI.G).

It authenticates with Gigya, discovers your appliances, reads live state from the AWS IoT device shadow, and sends control commands over MQTT. It is transport-friendly for Home Assistant: bring your own aiohttp session and the library stays framework-agnostic.

⚠️ Unofficial. Built by reverse-engineering the public app for interoperability with hardware you own. Not affiliated with or endorsed by De'Longhi. API keys shipped here are app-global public client identifiers (like OAuth client IDs), not user secrets.

Installation

pip install delonghi-comfort

Usage

import asyncio
import aiohttp
from delonghi_comfort import DelonghiComfort


async def main() -> None:
    async with aiohttp.ClientSession() as session:
        client = DelonghiComfort(session=session)
        await client.async_login("you@example.com", "password")

        devices = await client.async_get_devices()
        heater = devices[0]
        print(heater.thing_name, heater.model, heater.online)

        await client.async_connect(heater)

        status = await client.async_get_status()
        print("on:", status.is_on, "room:", status.current_temperature,
              "target:", status.target_temperature)

        # live push updates
        client.add_status_listener(lambda s: print("update:", s.raw))

        # control
        await client.async_set_power(True)
        await client.async_set_temperature(21)
        await client.async_set_eco(True)

        await client.async_close()


asyncio.run(main())

Persisting credentials

async_login stores a long-lived Gigya session in client.credentials. Persist it and reconstruct the client without a password later:

client = DelonghiComfort(session=session, credentials=saved_credentials)
await client.async_refresh_jwt()      # mint a fresh JWT from the stored session

Command reference

Method Message Reported field
async_set_power(bool) SetDeviceStatusRequest DeviceStatus
async_set_temperature(int) SetRoomTempRequest_degC TempSetPoint
async_set_eco(bool) SetEcoModeRequest PowerLimit
async_set_child_lock(bool) SetLockModeRequest KeyLock
async_set_night_mode(bool) SetNightModeRequest NightModeEnable
async_set_silent(bool) SetSoundRequest SilentEnable
async_set_brightness(0-3) SetBrightnessLevelRequest BrightnessLevel
async_set_schedule_enabled(bool) SetScheduleEnRequest ScheduleEnable
async_set_temp_unit(TemperatureUnit) SetTempUnitRequest TempUnit

Read-only status telemetry (no control command exists): on_off_timer_minutes, timer_remaining, timer_active, ota_progress, running_partition. (The shadow's PowerLevel field is deliberately not surfaced — on real hardware it stays at 255 whether idle, in Eco, or at full power, so it carries no usable information.)

How it works

  • Auth: Gigya accounts.loginaccounts.getJWT (OAuth1-signed), auto-probing pools.
  • Devices: GET devices on the AWS API Gateway, authorized by the JWT as a Bearer token.
  • Read: subscribe + get the MachineStatus / MachineCapabilities named shadows over MQTT 5 (TLS:443, ALPN mqtt, JWT custom authorizer). A unique client-id is used so the physical heater is never evicted.
  • Control: publish {"Message": "...", "AppId": "Comfort", "Value": N, "RequestId": "..."} to <thing>/commands/request and await the ack on <thing>/commands/response.

Development

uv sync
uv run pytest
uv run ruff check
uv run mypy delonghi_comfort

License

GPL-3.0-or-later.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delonghi_comfort-0.2.3.tar.gz (102.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delonghi_comfort-0.2.3-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file delonghi_comfort-0.2.3.tar.gz.

File metadata

  • Download URL: delonghi_comfort-0.2.3.tar.gz
  • Upload date:
  • Size: 102.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for delonghi_comfort-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d4a76ce226c9b354086798a6d5ae7e6bddae01eacb7fe86d925f6f872f689ac3
MD5 27a0e130ce9fb575a416fd30db656d6b
BLAKE2b-256 afd72235943dfef3b85a7a24045dc74d124ddda20521c679b8f5be47e64c5247

See more details on using hashes here.

Provenance

The following attestation bundles were made for delonghi_comfort-0.2.3.tar.gz:

Publisher: publish.yml on comfort-hub/delonghi-comfort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file delonghi_comfort-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for delonghi_comfort-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f699572eff573300b60062a3940e8a9f0448c896344c08ed3c2f04d25c49170
MD5 4d828a8bf4b74ba0ff3f3f9b150fb3ca
BLAKE2b-256 cd92d911894863debb7904fa0d66eef2d00d1344ef3acf37725fd43094376321

See more details on using hashes here.

Provenance

The following attestation bundles were made for delonghi_comfort-0.2.3-py3-none-any.whl:

Publisher: publish.yml on comfort-hub/delonghi-comfort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

This release

0.2.3 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

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