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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a97e99559ec10ee7acab7802c922bc4efe30f204551d4e916716f6d111dfe79c
|
|
| MD5 |
8df3a3d5f8e6540ffd38bc0331d8b8cd
|
|
| BLAKE2b-256 |
c1bb8d78cf8719d013a88af5e31083d3715f3ce96d580d893cb5a922878c7bb8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lunatone_dali2_iot-2.0.0.tar.gz -
Subject digest:
a97e99559ec10ee7acab7802c922bc4efe30f204551d4e916716f6d111dfe79c - Sigstore transparency entry: 1440449881
- Sigstore integration time:
-
Permalink:
KiraLT/lunatone-dali2-iot@7aff3b1a4b14ad13713b353176700a6e71bc1bff -
Branch / Tag:
refs/heads/main - Owner: https://github.com/KiraLT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@7aff3b1a4b14ad13713b353176700a6e71bc1bff -
Trigger Event:
push
-
Statement type:
File details
Details for the file lunatone_dali2_iot-2.0.0-py3-none-any.whl.
File metadata
- Download URL: lunatone_dali2_iot-2.0.0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be17329ed1c02069432593c5a7f2d9ec3143070c2c440e9d5ca41105c9d505ce
|
|
| MD5 |
7a378749a88b168070c61bd7612ab6ae
|
|
| BLAKE2b-256 |
52953e327e0f2e5edd6e65c546b0e92ffe2cca8ccaf18de2e5fa2c31cb533a28
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lunatone_dali2_iot-2.0.0-py3-none-any.whl -
Subject digest:
be17329ed1c02069432593c5a7f2d9ec3143070c2c440e9d5ca41105c9d505ce - Sigstore transparency entry: 1440450074
- Sigstore integration time:
-
Permalink:
KiraLT/lunatone-dali2-iot@7aff3b1a4b14ad13713b353176700a6e71bc1bff -
Branch / Tag:
refs/heads/main - Owner: https://github.com/KiraLT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@7aff3b1a4b14ad13713b353176700a6e71bc1bff -
Trigger Event:
push
-
Statement type: