https://github.com/kiralt/lunatone-dali2-iot
Lunatone DALI-2 IoT Gateway python client
https://github.com/kiralt/lunatone-dali2-iot
dali dall-e lunatone
Last synced: 5 months ago
JSON representation
Lunatone DALI-2 IoT Gateway python client
- Host: GitHub
- URL: https://github.com/kiralt/lunatone-dali2-iot
- Owner: KiraLT
- License: mit
- Created: 2025-02-11T18:07:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-15T14:21:41.000Z (over 1 year ago)
- Last Synced: 2025-10-22T03:42:00.511Z (9 months ago)
- Topics: dali, dall-e, lunatone
- Language: Python
- Homepage: https://kiralt.github.io/lunatone-dali2-iot/
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Lunatone Dali-2 IOT
A client library for accessing Lunatone Dali IoT gateway
Read [Documentation 📘](https://kiralt.github.io/lunatone-dali2-iot/)
> The library was generated by [openapi-python-client](https://github.com/openapi-generators/openapi-python-client)
## Installation
```bash
pip install lunatone-dali2-iot
```
## Usage
First, create a client:
```python
from dali2iot import Client
dali_client = Client(base_url="http://192.168.1.41")
```
Now call your endpoint and use your models:
```python
from dali2iot.api.devices import get_devices_devices_get
with dali_client as client:
devices = get_devices_devices_get.sync(client=client)
for device in devices.devices:
print(device.name)
```
Or do the same thing with an async version:
```python
from dali2iot.api.devices import get_devices_devices_get
async with dali_client as client:
devices = await get_devices_devices_get.asyncio(client=client)
for device in devices.devices:
print(device.name)
```