Skip to main content

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, 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_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

Licensing

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

© nineti GmbH

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)

Source distribution for energieleser 0.1.7
File Size Uploaded
energieleser-0.1.7.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for energieleser 0.1.7
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page