energieleser.py
Async Python client for energieleser smart meter devices.
Talks to the device's local HTTP API and returns typed dataclasses for stromleser.one, gasleser, gasleser.pulse, wasserleser and wärmeleser. Powers the Home Assistant integration.
Installing / Getting started
pip install energieleser
import asyncio
from energieleser import EnergieleserClient
async def main() -> None:
async with EnergieleserClient("192.168.1.100") as client:
device = await client.get_device()
print(device.device_id, device.device_type)
asyncio.run(main())
More examples in docs/usage.md.
Features
- Async HTTP client built on
aiohttp. - Typed, frozen, slotted dataclasses per device family.
- Automatic device-type detection from
device_idprefix. - Optional
Measurement(value, unit)fields — missing readings stayNoneinstead of raising. - Bring-your-own
aiohttp.ClientSession, or let the client manage one. - Structured exception hierarchy for clean error handling.
Configuration
EnergieleserClient(host, port=80, *, session=None, request_timeout=10.0)
| Argument | Type | Default | Description |
|---|---|---|---|
host |
str |
— | Device IP address or hostname. |
port |
int |
80 |
Device HTTP port. |
session |
aiohttp.ClientSession|None |
None |
Reuse an existing session. If None, the client creates and owns its own. |
request_timeout |
float |
10.0 |
Per-request timeout in seconds. |
Documentation
- Usage — examples, shared sessions
- Supported devices — device families, fields
- Exceptions — exception hierarchy
- Development — local setup, lint, tests
- Publishing — release workflow
- Contributing — how to contribute
Links
- PyPI: https://pypi.org/project/energieleser/
- Repository: https://github.com/nineti-GmbH/energieleser.py
- Issue tracker: https://github.com/nineti-GmbH/energieleser.py/issues
- Homepage: https://energieleser.de
Licensing
The code in this project is licensed under the MIT license — see LICENSE.
Release files for energieleser 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| energieleser-0.1.7.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| energieleser-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.8 kB
Release files / energieleser-0.1.7.tar.gz
| Download URL | energieleser-0.1.7.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
600493a4c2a6c3ff06f86e56154e6d7f7dccda44faec5c305697d0fe814909c1
|
|
BLAKE2b-256 checksum How to use checksums |
bbdec8ba6db59662f2d0f7e57f28802bf14aa2791aaacc39087c423a2b0633b6
|
| 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 Sep 25, 2026.
Transparency logRelease files / energieleser-0.1.7-py3-none-any.whl
| Download URL | energieleser-0.1.7-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc98b6bce948db4d18be94f10637e1471d48b778f3d896b38d512ce18d13da18
|
|
BLAKE2b-256 checksum How to use checksums |
eabb7e23dd66d4d87fed30c8d1934b54cbbf4ad5d09976d59469359a0bdba128
|
| 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 Sep 25, 2026.
Transparency log