aiolinknlink
aiolinknlink is an asynchronous Python client for direct local communication with LinknLink eMotion Ultra2 devices.
The library implements LinknLink DNA discovery, authentication, encrypted UDP transport, local multi-target radar position subscriptions, environmental and occupancy state reads, and device-verified radar configuration. It communicates directly with devices on the local network and does not require a cloud service or MQTT broker.
An Ultra2 stores one local UDP position destination. Running another position subscriber for the same device redirects updates away from the current subscriber.
Supported radar configuration includes sensitivity, trigger speed, installation mode, installation height, installation direction, Z-axis detection limits, the default absence delay, and Zone 1-4 absence delays. Every write API performs a separate device status read and raises an error when the read-back does not match.
Temperature and humidity require the optional sensor power cable. Environment reads refresh the device's ESPHome entity list so connecting or disconnecting the cable is detected after the device restarts.
Requirements
- Python 3.11 or newer
- An eMotion Ultra2 already connected to Wi-Fi
- The client and device on the same local network
Example
import asyncio
from aiolinknlink import UltraClient, UltraPositionSubscription
async def main() -> None:
client = UltraClient()
device = await client.discover_host("192.168.1.8")
session = await client.connect(device)
subscription = UltraPositionSubscription(
client,
session,
callback=lambda update: print(update.targets),
)
await subscription.start()
try:
await subscription.wait_confirmed(60)
radar_status = await subscription.get_radar_status()
print(radar_status.sensitivity)
print(radar_status.z_range)
await asyncio.sleep(60)
finally:
await subscription.stop()
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.
Metadata
Release files for aiolinknlink 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiolinknlink-0.3.3.tar.gz | 41.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiolinknlink-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.2 kB
Release files / aiolinknlink-0.3.3.tar.gz
| Download URL | aiolinknlink-0.3.3.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f739dc9c791a16fbaaa8c0b1ae15393776155865d803ba911c8bc60612313dc
|
|
BLAKE2b-256 checksum How to use checksums |
2dbdd6f52c5110e62adcc4112dd30ed1a1aaea183dd961a5f19feca61a10564c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / aiolinknlink-0.3.3-py3-none-any.whl
| Download URL | aiolinknlink-0.3.3-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e54e98cae88955ead48ae5e4fd5a47ce26122681b2eb03f77a81a62483f29075
|
|
BLAKE2b-256 checksum How to use checksums |
f0d7eca02e73b4ecd28a08efae28edc7cd258576d28928c9c41094a3b1c4fe6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency log