Skip to main content

Asynchronous local client for LinknLink eMotion Ultra devices

Project description

aiolinknlink

aiolinknlink is an asynchronous Python client for direct local communication with LinknLink eMotion Ultra and Ultra2 devices.

The library implements LinknLink DNA discovery, authentication, encrypted UDP transport, and the eMotion gateway/subdevice protocol. It communicates directly with devices on the local network and does not require linknlink-device-bridge, DeviceHub, MQTT, or a cloud service.

Requirements

  • Python 3.11 or newer
  • An eMotion Ultra/Ultra2 already connected to Wi-Fi
  • The client and device on the same local network

Example

import asyncio

from aiolinknlink import UltraClient


async def main() -> None:
    client = UltraClient()
    devices = await client.discover()
    if not devices:
        return

    session = await client.connect(devices[0])
    state = await client.refresh(session)
    print(state.values)


asyncio.run(main())

Development

python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
.venv/bin/ruff check .
.venv/bin/mypy src

License

Apache License 2.0.

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

aiolinknlink-0.1.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

aiolinknlink-0.1.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

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