Skip to main content

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

  1. Copy the custom_components/loxone folder into your Home Assistant custom_components directory.
  2. 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-ssl to skip TLS certificate verification during testing.
  • Use --verbose to enable debug logging to see the full authentication flow.

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

loxone_api-0.1.23.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

loxone_api-0.1.23-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file loxone_api-0.1.23.tar.gz.

File metadata

  • Download URL: loxone_api-0.1.23.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for loxone_api-0.1.23.tar.gz
Algorithm Hash digest
SHA256 832028d55a48dfd7f5fa4c01e1e2730cc3851cf7e55dd7eb8c90f5812f950ca7
MD5 bd6e0573717d5e7e09c2c6f8655da26c
BLAKE2b-256 31b346a11d10167bcbfd60739f943b1578818d61f25aa4e02b764b6c81350cce

See more details on using hashes here.

Provenance

The following attestation bundles were made for loxone_api-0.1.23.tar.gz:

Publisher: publish-loxone-api.yml on grimbouk/loxws2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file loxone_api-0.1.23-py3-none-any.whl.

File metadata

  • Download URL: loxone_api-0.1.23-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for loxone_api-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 16cf4bfd42451625c17ed4447c4e1bc83a6d1efcb120f7a1cff7a34fd4b8f568
MD5 5db0beb4ff6be137763ae50e9b069ede
BLAKE2b-256 18ffff5a2e4c8a47b812598bbace6ee1da8c15b79e84b574511ac58f11bb48cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for loxone_api-0.1.23-py3-none-any.whl:

Publisher: publish-loxone-api.yml on grimbouk/loxws2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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