Skip to main content

Connect locally to a Kaifa smartmeter of an Austrian energy provider

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartmeter_austria_energy-1.5.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartmeter_austria_energy-1.5.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file smartmeter_austria_energy-1.5.0.tar.gz.

File metadata

File hashes

Hashes for smartmeter_austria_energy-1.5.0.tar.gz
Algorithm Hash digest
SHA256 430da88a3500433ace319120e2b3708bee4c013fda8ce7ae70b28c46d0a8ccf7
MD5 3131849494e0ebdc1c7acb4cbceb8829
BLAKE2b-256 ff1fd99129616471f0ec305c27cc9d958c5e9fda91fb500a6f3ada8c9c3af4af

See more details on using hashes here.

File details

Details for the file smartmeter_austria_energy-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smartmeter_austria_energy-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68a771fd0ad66f3500a916bf777df5eddde83798be2bf2b8e909b74d745dc769
MD5 106db5f9df80eee84a6da2f2a88c493c
BLAKE2b-256 19f1185dd97d49b07c2c45192bd8b3acf2d25230bcf9ce199f25d0dc13082d5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page