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

Links

Licensing

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

© nineti GmbH

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.6.tar.gz (9.4 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.6-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: energieleser-0.1.6.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for energieleser-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a638ef0b7838b08118b39923592f6dd102e9b0254ca3d150051cda5aa5667683
MD5 1234eb2851bbb35e05e62791c584b89f
BLAKE2b-256 afbc50083f90a390f564bf76e08e2974d52146250386baac7a3f439dcbd08e95

See more details on using hashes here.

Provenance

The following attestation bundles were made for energieleser-0.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: energieleser-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for energieleser-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 436fcef85a493cc622daf743f5fc59aad19575d8162d25f7806260230457fc3d
MD5 547be516073fcfd56b72c7362fbe23c2
BLAKE2b-256 97013076e3caf21026f0b936abb788558a6d6b5aaca72bd80d24a7b47aadb21a

See more details on using hashes here.

Provenance

The following attestation bundles were made for energieleser-0.1.6-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.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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