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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f8a4dfd8531fe6dc3e5fba96870e78ca54eefcb34c2472a24ceb21f4a7aab5 |
|
MD5 | 7fa08f1831242038eda1988656a26691 |
|
BLAKE2b-256 | 9e9e3b1f15851b5288ef2b16e421b7af6d9253d1bbcb9dde3fe7554941ad87fb |
Hashes for smartmeter_austria_energy-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c369e4fad9eb11dc324830a0e1fa52109ba69ffef8f654b201047014f0d0bf69 |
|
MD5 | ea03d279c5b03ce0fe48774dcd31ba71 |
|
BLAKE2b-256 | 8b750f30ce09fbb64c3f26d50a15b64e53b5da793208c81278d32e1f4937c78d |