Asynchronous local client for LinknLink eMotion Ultra2 devices
Project description
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.
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.
Project details
Release history Release notifications | RSS feed
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 aiolinknlink-0.3.1.tar.gz.
File metadata
- Download URL: aiolinknlink-0.3.1.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af6f1e2d28a6b506800197dba8131c9701a4d4944aa4cf65753104766fcb8451
|
|
| MD5 |
d12d13ffe28db06a22d115d689d1f651
|
|
| BLAKE2b-256 |
d1dca7fd8a3b33cc9b9232f677d70fcaecbcce002ecde9ace9bf5099481b14f8
|
Provenance
The following attestation bundles were made for aiolinknlink-0.3.1.tar.gz:
Publisher:
publish.yml on linknlink/aiolinknlink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiolinknlink-0.3.1.tar.gz -
Subject digest:
af6f1e2d28a6b506800197dba8131c9701a4d4944aa4cf65753104766fcb8451 - Sigstore transparency entry: 2171369017
- Sigstore integration time:
-
Permalink:
linknlink/aiolinknlink@88446907a644cb6d4e60f3eca4c58681dfd701cb -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/linknlink
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@88446907a644cb6d4e60f3eca4c58681dfd701cb -
Trigger Event:
push
-
Statement type:
File details
Details for the file aiolinknlink-0.3.1-py3-none-any.whl.
File metadata
- Download URL: aiolinknlink-0.3.1-py3-none-any.whl
- Upload date:
- Size: 30.1 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 |
101676ab28136bd437fc254fc0cca414ed2c232aa7261f7f2429c43e2f75c066
|
|
| MD5 |
aa2262ade1cfd33ba86a0f7fb475e187
|
|
| BLAKE2b-256 |
ffcfeccbcd663d5edca642a536ca4f7e534fe446dbaf00b7bfe4e8528b7aa045
|
Provenance
The following attestation bundles were made for aiolinknlink-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on linknlink/aiolinknlink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiolinknlink-0.3.1-py3-none-any.whl -
Subject digest:
101676ab28136bd437fc254fc0cca414ed2c232aa7261f7f2429c43e2f75c066 - Sigstore transparency entry: 2171369063
- Sigstore integration time:
-
Permalink:
linknlink/aiolinknlink@88446907a644cb6d4e60f3eca4c58681dfd701cb -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/linknlink
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@88446907a644cb6d4e60f3eca4c58681dfd701cb -
Trigger Event:
push
-
Statement type: