Async client for the Loxone Miniserver
Project description
Loxone Miniserver Home Assistant Integration
This repository provides:
loxone_api: an asynchronous Python client library for communicating with a Loxone Miniserver, handling authentication via getkey2/getjwt flow, loading the LoxAPP3.json structure file, and providing methods to fetch/send control states.custom_components/loxone: a Home Assistant custom component that uses the shared client library to expose Miniserver controls as Home Assistant entities (lights, sensors, binary sensors, covers, climate controllers, scenes).loxone-api-cli: a lightweight command-line utility for testing the client library outside Home Assistant.
Installation and setup
As a Home Assistant integration
- Copy the
custom_components/loxonefolder into your Home Assistantcustom_componentsdirectory. - Restart Home Assistant and configure the integration via the UI, providing the host, credentials, and TLS options.
The integration creates entities for lights, sensors, binary sensors, covers, climate controllers, and scenes based on control types from the structure file. Additional platforms can be added by extending the platform files.
As a standalone library
Install the loxone_api package:
pip install .
Then use it in your Python code:
from loxone_api import LoxoneClient
async with LoxoneClient(host="192.168.1.110", user="admin", password="pass") as client:
# Authenticate
token = await client.authenticate()
# Load structure
structure = await client.load_structure()
controls = structure["controls"]
# Fetch/send control state
state = await client.jdev_get("sps/io/<uuid>")
Command-line testing
After installing locally, you can test the client with:
python3 -m loxone_api.cli <host> <username> [password] --no-verify-ssl --verbose
- If the password is omitted you will be prompted securely.
- Use
--no-verify-sslto skip TLS certificate verification during testing. - Use
--verboseto enable debug logging to see the full authentication flow.
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 loxone_api-0.1.25.tar.gz.
File metadata
- Download URL: loxone_api-0.1.25.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaabdb5a4cb3e234e6efcf9d16ef22b4c5ba506f423fa74b50a823ae216e5b67
|
|
| MD5 |
a3f10e7b6e4ea6075e478a0517a0509f
|
|
| BLAKE2b-256 |
43118f424a5414a0d7996f341511e5926ea36a5a0272ec2c6b6805c2593dc692
|
Provenance
The following attestation bundles were made for loxone_api-0.1.25.tar.gz:
Publisher:
publish-loxone-api.yml on grimbouk/loxws2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loxone_api-0.1.25.tar.gz -
Subject digest:
aaabdb5a4cb3e234e6efcf9d16ef22b4c5ba506f423fa74b50a823ae216e5b67 - Sigstore transparency entry: 774532071
- Sigstore integration time:
-
Permalink:
grimbouk/loxws2@5a8817a3506a809f036a48ef97165eb6bacc50bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/grimbouk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-loxone-api.yml@5a8817a3506a809f036a48ef97165eb6bacc50bf -
Trigger Event:
push
-
Statement type:
File details
Details for the file loxone_api-0.1.25-py3-none-any.whl.
File metadata
- Download URL: loxone_api-0.1.25-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e1e6de5026a7a81e9e8f3be6c0c00af3face375a76821c8084f769af9e8b33f
|
|
| MD5 |
42e2c50342980f629d3f191f8b2cf500
|
|
| BLAKE2b-256 |
f38c12c13c27cefd3b1ba5e7f06a4f9553ade9b24ca268f880086732bf5adab6
|
Provenance
The following attestation bundles were made for loxone_api-0.1.25-py3-none-any.whl:
Publisher:
publish-loxone-api.yml on grimbouk/loxws2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loxone_api-0.1.25-py3-none-any.whl -
Subject digest:
5e1e6de5026a7a81e9e8f3be6c0c00af3face375a76821c8084f769af9e8b33f - Sigstore transparency entry: 774532072
- Sigstore integration time:
-
Permalink:
grimbouk/loxws2@5a8817a3506a809f036a48ef97165eb6bacc50bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/grimbouk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-loxone-api.yml@5a8817a3506a809f036a48ef97165eb6bacc50bf -
Trigger Event:
push
-
Statement type: