Skip to main content

smartmeter-austria

Python library that reads Austrian smart meters from their customer interface (optical head or M-Bus/P1 port), decrypts the telegrams and returns the readings. It contains no Home Assistant or MQTT code.

It is the core of two projects in the same repository, r00tat/smartmeter_homeassistant_burgenland:

  • the Home Assistant integration Smartmeter Austria (smartmeter_at, via HACS),
  • the Home Assistant add-on / standalone container that publishes the readings via MQTT.

Supported meters

Profile Grid operator / meter Interface
burgenland Netz Burgenland (Landis+Gyr E450) IR or wired, DLMS/HDLC
noe_evn Netz NÖ / EVN (Sagemcom T210-D) M-Bus
wien Wiener Netze IR, DLMS/HDLC
steiermark Energienetze Steiermark (Landis+Gyr) M-Bus
steiermark_sagemcom Energienetze Steiermark (Sagemcom) DSMR P1
salzburg Salzburg Netz M-Bus
tirol TINETZ M-Bus
h1 Smart Meter 2.0, customer interface H1 DSMR P1

Details per meter: docs/en/meters.md.

Installation

pip install smartmeter-austria

Usage

import asyncio

from smartmeter_austria.profile import get_profile


def on_reading(data) -> None:
    print(data.meter_id, data.to_dict())


async def main() -> None:
    profile = get_profile("burgenland")
    config = {
        "interface_type": "OPTICAL",
        "dlms": {"port": "/dev/ttyUSB0", "key": "<32 hex characters from your grid operator>"},
    }
    reader = profile.create_reader(config, on_reading)
    await reader.run()  # reads until cancelled


asyncio.run(main())

smartmeter_austria.supervisor.ReaderSupervisor restarts a failed reader, throttles the callback and reopens a port that stopped delivering data.

Versioning

The library is released together with the integration and the add-on: one GitHub release publishes all three with the same version number.

License

GPL-3.0-only

Metadata

Release files for smartmeter-austria 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartmeter-austria 1.0.2
File Size Uploaded Provenance Actions
smartmeter_austria-1.0.2.tar.gz 77.2 kB With provenance Details for smartmeter_austria-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smartmeter-austria 1.0.2
File Interpreter ABI Platform Actions
smartmeter_austria-1.0.2-py3-none-any.whl Python 3 none any Details for smartmeter_austria-1.0.2-py3-none-any.whl

Total release size: 137.7 kB

Release files / smartmeter_austria-1.0.2.tar.gz

Download URL smartmeter_austria-1.0.2.tar.gz
Size 77.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c050d30fba458c673a034a8563e489ec514b5a9213404b767f10766cc261cd1
BLAKE2b-256 checksum
How to use checksums
81a10988f296d141cd2acf8c9207f694815dbe25543aa2a17c17af7e4039beba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Release files / smartmeter_austria-1.0.2-py3-none-any.whl

Download URL smartmeter_austria-1.0.2-py3-none-any.whl
Size 60.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0636138eaa4f1d4cf4de6fdd9ecf8f7c4c3e248f0b8cf1eeacb5446fd033359
BLAKE2b-256 checksum
How to use checksums
09e2c7d0b445716413b4f62933b34f16199a5c90a9c59abde901a74cf9a27fc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Security for smartmeter-austria 1.0.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smartmeter_austria-1.0.2.tar.gz

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 Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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