KNX and KNXnet/IP implementation in Python

7.8k views Asked by At

I am looking high and low for anything related to KNX implementation in Python, especially KNXnet/IP. So far I couldn't find anything. I know there are few projects written in Java but I thought I'd give it a shot asking here before I start porting code from other languages.

Also, does anyone know of any free documentation of the KNX standard, its data structures and KNXnet/IP? The official documentation from the KNX association is ridiculously expensive, especially for something supposed to be an "open" standard.

thanks

4

There are 4 answers

7
JustSomeDev On BEST ANSWER

The KNX association have released the Falcon Runtime Developer kit but I think you can only get it if you are a KNX member. it doesnt supports Python but hey, its something i guess.

in regards to the documentation I could probably help. is there a PM function on this site or something to give me your emails address?

1
ekarak On

There is the open-source BCUSDK software stack for KNX which has a C-based system daemon (eibd) with clients (Unix and TCP-socket based) for multiple languages (Python is one). I've written the Ruby and Lua client libraries as well, and I'm using it for day-to-day hacking with KNX.

Also, there is OpenRemote which has lots of information on KNXnet/IP and some Java classes that could get you started, if you wanted to, from scratch.

0
farmio On

Meanwhile there is an open source Python 3 implementation of KNX IP https://github.com/XKNX/xknx

The documentation of the protocol can be downloaded after (free) registration from https://my.knx.org

3
A.Joly On

You might want to have a look a this (if by that time you are still looking for such a library) : https://github.com/leadrien/knxnet This allows me to command KNX devices through an IP/KNX interface pretty well.

Alexandre