Skip to main content

Async Python client for energieleser devices (stromleser, gasleser, wasserleser, wärmeleser).

Project description

energieleser.py

PyPI Python License: MIT

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_id prefix.
  • Optional Measurement(value, unit) fields — missing readings stay None instead 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

Links

Licensing

The code in this project is licensed under the MIT license — see LICENSE.

© nineti GmbH

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

energieleser-0.1.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

energieleser-0.1.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file energieleser-0.1.1.tar.gz.

File metadata

  • Download URL: energieleser-0.1.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for energieleser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b3fafc217680d516520634c0b84810cc4421ce6035624eb5624d3bd305037c6d
MD5 a26a30d4b78c2c1c0eb5d0e1cb3eec7f
BLAKE2b-256 5c2fcd04c8f7bd1a0351563c83dac567b2a1c1ca3aa6dbd122bae5985ee21fc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for energieleser-0.1.1.tar.gz:

Publisher: release.yml on nineti-GmbH/energieleser.py

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

File details

Details for the file energieleser-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: energieleser-0.1.1-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

Hashes for energieleser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6db9084364fd1c6f7faa6f777aa20372b2a2a116e38ae79884f01f644bfa8e0d
MD5 11f54dc6a3d58f3ef158b49268714ff9
BLAKE2b-256 d958f88f09b279efc35d564c0bf8e0625a0bf636b4cee63ef6fe78f4fee3021e

See more details on using hashes here.

Provenance

The following attestation bundles were made for energieleser-0.1.1-py3-none-any.whl:

Publisher: release.yml on nineti-GmbH/energieleser.py

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