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.

gurux-dlms on Python 3.15

gurux-dlms 1.0.197 ships a Latin-1 encoded source file that Python 3.15 refuses to import. Run the fix-up once after installing:

python3 -m smartmeter_austria.fix_source_encoding gurux_dlms gurux_common

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.0

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.0
File Size Uploaded Provenance Actions
smartmeter_austria-1.0.0.tar.gz 78.2 kB With provenance Details for smartmeter_austria-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 139.8 kB

Release files / smartmeter_austria-1.0.0.tar.gz

Download URL smartmeter_austria-1.0.0.tar.gz
Size 78.2 kB
Tags Source
SHA-256 checksum
How to use checksums
87030d46198c77048643c224183a8061a40816ec999ac1a6647a6221618ae3ea
BLAKE2b-256 checksum
How to use checksums
d94965740259f03c760cabf12700e9630b8c952f34c7142e9f2bddee7d95be25
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 18, 2026.

Transparency log

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

Download URL smartmeter_austria-1.0.0-py3-none-any.whl
Size 61.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c1dd6c16f91da12f3d253c047b1871126f857a1ce4137e0e3b1d7d1338e7711
BLAKE2b-256 checksum
How to use checksums
b3fdf50bde12746d7e001fa125681c8bbe6dd97e0c23f4dba1d73dfe7c0cbb0f
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 18, 2026.

Transparency log

Security for smartmeter-austria 1.0.0

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.0.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 18, 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