Skip to main content

Smartmeter Energy Austria

GitHub Release License

GitHub Activity GitHub Activity GitHub Activity

PyPi Python Versions Validate Build Status

Library for connecting to Austrian Smart Meters of Salzburg Netz, TINETZ and EVN Retrieves the data from the M-BUS connector using a serial to USB converter.

Only tested on a Kaifa MA309 and Salzburg Netz (Salzburg AG). Some technical informations: The device uses Wired M-Bus (RJ 12) at 2400 baud. (1 start bit, 8 data bits, 1 parity bit, even, 1 stop bit. Communication is push only, every 5 seconds.

Usage

  1. Install this package pip install smartmeter_austria_energy
  2. Connect to your inverter using the correct COM port and fetch the data. Possible COM port settings: /dev/ttyUSB0, eg. using Linux COM5, eg using Windows
from smartmeter_austria_energy.supplier import (SupplierSALZBURGNETZ)
from smartmeter_austria_energy.smartmeter import(Smartmeter)

def main():
    supplier = SupplierSALZBURGNETZ
    key_hex_string = "-- this is your key --"
    port = "COM5"

    smartmeter = Smartmeter(supplier, port, key_hex_string)
    my_obisdata = smartmeter.read()

    print(f"RealEnergyIn: {my_obisdata.RealEnergyIn.ValueString}")
    print(f"RealEnergyOut: {my_obisdata.RealEnergyOut.ValueString}")
 
if __name__ == '__main__':
    main()

Script was tested on Linux (Ubuntu, Debian, Raspberry OS) and Windows (Windows 10, Windows 11).

Usage

Credits to Stefan who had done a cool work that was used in this implementation. https://github.com/tirolerstefan/kaifa

Metadata

Release files for smartmeter-austria-energy 1.5.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-energy 1.5.0
File Size Uploaded
smartmeter_austria_energy-1.5.0.tar.gz 30.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smartmeter-austria-energy 1.5.0
File Interpreter ABI Platform
smartmeter_austria_energy-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.6 kB

Release files / smartmeter_austria_energy-1.5.0.tar.gz

Download URL smartmeter_austria_energy-1.5.0.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
430da88a3500433ace319120e2b3708bee4c013fda8ce7ae70b28c46d0a8ccf7
BLAKE2b-256 checksum
How to use checksums
ff1fd99129616471f0ec305c27cc9d958c5e9fda91fb500a6f3ada8c9c3af4af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / smartmeter_austria_energy-1.5.0-py3-none-any.whl

Download URL smartmeter_austria_energy-1.5.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68a771fd0ad66f3500a916bf777df5eddde83798be2bf2b8e909b74d745dc769
BLAKE2b-256 checksum
How to use checksums
19f1185dd97d49b07c2c45192bd8b3acf2d25230bcf9ce199f25d0dc13082d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.1

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