Connect locally to a Kaifa smartmeter of an Austrian energy provicer
Project description
Smartmeter Energy Austria
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
- Install this package
pip install smartmeter_austria_energy
- 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 (SUPPLIER_SALZBURGNETZ_NAME)
from smartmeter_austria_energy.smartmeter import(Smartmeter)
def main():
supplier_name = SUPPLIER_SALZBURGNETZ_NAME
key_hex_string = "-- this is your key --"
port = "COM5"
smartmeter = Smartmeter(supplier_name, 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
Built Distribution
Hashes for smartmeter_austria_energy-1.4.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f17bddf18011ea5012121802a330acb6096a5432a459e80c6741b45600e5944 |
|
MD5 | ee4cb03d9850b17bd29c46229988b15f |
|
BLAKE2b-256 | bd0adeecc393ea859f5c1248772d74eb8b14d9583794bb9ff3adac8bc9d9d402 |
Hashes for smartmeter_austria_energy-1.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d23d3400dba1ef79e9f1ae9eb2b969619a1a30a64faa4713ee98c33c8bc9a0a3 |
|
MD5 | 0d64a164a294f2270f08f439d3825af1 |
|
BLAKE2b-256 | d7f7bc39efe437c49fbc1fbdcff42f9e04903ad53d883ecc845e30f127350b9b |