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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smartmeter_austria-1.0.1.tar.gz | 78.2 kB | With provenance | Details for smartmeter_austria-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smartmeter_austria-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for smartmeter_austria-1.0.1-py3-none-any.whl |
Total release size: 139.8 kB
Release files / smartmeter_austria-1.0.1.tar.gz
| Download URL | smartmeter_austria-1.0.1.tar.gz |
|---|---|
| Size | 78.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbf02544737d2898b2324296662b356cea5e0027818a5f9c3362515770f20db1
|
|
BLAKE2b-256 checksum How to use checksums |
3e105f7eb15b09cfdd5f9d45eb258e9f4f3639a252d97b01a15af45a9157644f
|
| 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 20, 2026.
Transparency logRelease files / smartmeter_austria-1.0.1-py3-none-any.whl
| Download URL | smartmeter_austria-1.0.1-py3-none-any.whl |
|---|---|
| Size | 61.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83c6c1641c8dde8e0064d72afeed038f1a48bb50adcb2753c1963e759f24dbf1
|
|
BLAKE2b-256 checksum How to use checksums |
9459688367b96bb0e51fafda5306bc7c7ecc3ab6b523a0b07a0a895b496826f0
|
| 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 20, 2026.
Transparency logSecurity for smartmeter-austria 1.0.1
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.
Attestation for smartmeter_austria-1.0.1.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 20, 2026.
Transparency logA 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.