Skip to main content

A client library for accessing Dali IoT

Project description

Lunatone Dali-2 IOT

A client library for accessing Lunatone Dali IoT gateway.

Read Documentation 📘

Installation

pip install lunatone-dali2-iot

Usage

Synchronous:

from dali2iot import Client, ControlData, RGB

with Client(base_url="http://192.168.1.41") as client:
    for device in client.list_devices():
        print(f"#{device.id} {device.name}")

    client.update_device(1, name="WC RGBW Led")
    client.control_device(1, ControlData(dimmable_rgb=RGB(r=0, g=0, b=1, dimmable=100)))

Asynchronous:

from dali2iot import AsyncClient

async with AsyncClient(base_url="http://192.168.1.41") as client:
    devices = await client.list_devices()
    for device in devices:
        print(device.name)

Reference

The HTTP surface mirrors openapi.json (kept at the repo root). Add new methods to dali2iot/client.py as you need them — one per OpenAPI operation. Models live in dali2iot/models.py.

Project details


Download files

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

Source Distribution

lunatone_dali2_iot-2.0.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

lunatone_dali2_iot-2.0.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file lunatone_dali2_iot-2.0.0.tar.gz.

File metadata

  • Download URL: lunatone_dali2_iot-2.0.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lunatone_dali2_iot-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a97e99559ec10ee7acab7802c922bc4efe30f204551d4e916716f6d111dfe79c
MD5 8df3a3d5f8e6540ffd38bc0331d8b8cd
BLAKE2b-256 c1bb8d78cf8719d013a88af5e31083d3715f3ce96d580d893cb5a922878c7bb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunatone_dali2_iot-2.0.0.tar.gz:

Publisher: publish-package.yml on KiraLT/lunatone-dali2-iot

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

File details

Details for the file lunatone_dali2_iot-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lunatone_dali2_iot-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be17329ed1c02069432593c5a7f2d9ec3143070c2c440e9d5ca41105c9d505ce
MD5 7a378749a88b168070c61bd7612ab6ae
BLAKE2b-256 52953e327e0f2e5edd6e65c546b0e92ffe2cca8ccaf18de2e5fa2c31cb533a28

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunatone_dali2_iot-2.0.0-py3-none-any.whl:

Publisher: publish-package.yml on KiraLT/lunatone-dali2-iot

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page