Metadata-Version: 2.5
Name: aioloxone
Version: 0.1.0
Summary: Async, typed client library for the Loxone Miniserver (pre-alpha: 0.0.1 is a placeholder that reserves the name)
Project-URL: Homepage, https://github.com/smarthomelabs/aioloxone
Project-URL: Repository, https://github.com/smarthomelabs/aioloxone
Project-URL: Changelog, https://github.com/smarthomelabs/aioloxone/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/smarthomelabs/aioloxone/issues
Author: The aioloxone authors
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: asyncio,home-automation,loxone,miniserver
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Home Automation
Classifier: Typing :: Typed
Requires-Python: >=3.13
Requires-Dist: aiohttp>=3.11
Requires-Dist: cryptography>=44
Description-Content-Type: text/markdown

# aioloxone

Async, typed Python client library for the Loxone Miniserver (Gen 1, Gen 2,
Go, Compact): framing, authentication, a push API over the websocket, a typed
structure model, and the client session your application owns.

## Status: pre-alpha

Version 0.0.1 on PyPI is a placeholder that reserves the name — **there is no
functionality yet**. The library is being rebuilt work package by work
package (see `docs/rework/prompts/`):

| Work package | What lands |
|---|---|
| A.2 | Session contract (`docs/contract.md`) and the public API |
| A.3 / A.4 | Sans-I/O framing, event tables, crypto and the auth/token state machine |
| A.5 | Fake Miniserver test kit (`aioloxone.testing`) |
| A.6 / A.7 | Transport over your `aiohttp.ClientSession`, supervisor, close-code policy |
| A.8–A.12 | Typed structure model and controls |
| A.15 / A.16 | Read-only CLI, recorder, conformance suite |

Requirements: Python ≥ 3.13. Runtime dependencies: `aiohttp` and
`cryptography`, nothing else (see `docs/decisions/A.1-dependency-set.md`).

The first consumer is the Home Assistant integration *Loxone Miniserver*
(`loxone_miniserver`), which will contain no protocol code of its own.

## Command line

`aioloxone` ships a read-only command line (`python -m aioloxone`, and the
`aioloxone` console script): `raw`, `pretty`, `web`, `info`, `discover` and
`record`. No subcommand sends a control command; the password comes from
`LOXONE_PASSWORD` or a prompt, never from the command line. `record` writes
an anonymised, always-redacted corpus entry. See [`docs/cli.md`](docs/cli.md).

```bash
export LOXONE_PASSWORD=…
python -m aioloxone pretty --host miniserver.local --username reader
```

## Trademark

Loxone and Miniserver are trademarks of Loxone Electronics GmbH. This project
is not affiliated with, endorsed by or supported by Loxone.

## Credits

This library is the successor of
[PyLoxone](https://github.com/JoDehli/PyLoxone) by Joachim Dehli and
contributors, licensed under Apache-2.0. Its protocol code is imported with
full git history under `legacy/` as the porting reference, and large parts of
`src/aioloxone/` are derived from it. See `NOTICE`.

## Licence

Apache License 2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE).
