Connect locally to a Kaifa smartmeter of an Austrian energy provider
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 (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
Built Distribution
File details
Details for the file smartmeter_austria_energy-1.4.9.tar.gz
.
File metadata
- Download URL: smartmeter_austria_energy-1.4.9.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e7016bdf817f88873744a6f52fcc4fffc08b3335c7cc7cab201e1e98edf3fc3 |
|
MD5 | 6ba9f5d92b365f708b24a5ad92c1632e |
|
BLAKE2b-256 | afb8d98092e9088971b783075414de5fa723e9068b2d63b11dfa239c0306c2e7 |
File details
Details for the file smartmeter_austria_energy-1.4.9-py3-none-any.whl
.
File metadata
- Download URL: smartmeter_austria_energy-1.4.9-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3840c7132546e34339f7f07e64ef84131637141d179d75dfebc2180e4806ec8d |
|
MD5 | 0c4e177aae3bb72d431ae2dd89d5fc78 |
|
BLAKE2b-256 | 194d18341d57416c095768e79be35e31da64021e6c7dbe5bfe504d71a4f2fb2d |