Async Python client for energieleser devices (stromleser, gasleser, wasserleser, wärmeleser).
Project description
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, wasserleser and wärmeleser. Powers the upcoming 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.
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 energieleser-0.1.2.tar.gz.
File metadata
- Download URL: energieleser-0.1.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
004d5ea0c354da2e1b5fe8be705a9c6676338db43f46fee16d60fcd60fe60e01
|
|
| MD5 |
7e8b53b13759852761dfae58cbd7520b
|
|
| BLAKE2b-256 |
473b58bbc8c1db2c0000a8cc92f43161633a78b553bec72dcb644da2febc3434
|
Provenance
The following attestation bundles were made for energieleser-0.1.2.tar.gz:
Publisher:
release.yml on nineti-GmbH/energieleser.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
energieleser-0.1.2.tar.gz -
Subject digest:
004d5ea0c354da2e1b5fe8be705a9c6676338db43f46fee16d60fcd60fe60e01 - Sigstore transparency entry: 1643347070
- Sigstore integration time:
-
Permalink:
nineti-GmbH/energieleser.py@7f92f5a9ee276db952354e79a8729e53a76b6156 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nineti-GmbH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7f92f5a9ee276db952354e79a8729e53a76b6156 -
Trigger Event:
push
-
Statement type:
File details
Details for the file energieleser-0.1.2-py3-none-any.whl.
File metadata
- Download URL: energieleser-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.0 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 |
46da6597110c9ab0edd9873b30044d7a13293a99f0ffca502daf85357f41a6c4
|
|
| MD5 |
c6916a14efae9d97458ee169bc7aaec3
|
|
| BLAKE2b-256 |
1e3db4e8008ef15e520656aaeeac2500580e79596e6d3e15da7ac555f5476ecd
|
Provenance
The following attestation bundles were made for energieleser-0.1.2-py3-none-any.whl:
Publisher:
release.yml on nineti-GmbH/energieleser.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
energieleser-0.1.2-py3-none-any.whl -
Subject digest:
46da6597110c9ab0edd9873b30044d7a13293a99f0ffca502daf85357f41a6c4 - Sigstore transparency entry: 1643347108
- Sigstore integration time:
-
Permalink:
nineti-GmbH/energieleser.py@7f92f5a9ee276db952354e79a8729e53a76b6156 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/nineti-GmbH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7f92f5a9ee276db952354e79a8729e53a76b6156 -
Trigger Event:
push
-
Statement type: