An open API service indexing awesome lists of open source software.

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

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)
```