Table of content¶
Daemon¶
knxd¶
knxd is an advanced router/gateway which runs on any Linux computer; it can talk to all known KNX interfaces.
This code is a fork of eibd 0.0.5
Installation:¶
# Do not use “sudo” unless told to do so. # If “dpkg-buildpackage” complains about missing packages # (“Unmet build dependencies”): install them # (apt-get install …) and try that step again. # If it wants “x | y”, try just x; install y if that doesn’t work. # Also, if it complains about conflicting packages, remove them (duh).
# first, install build tools and get the source code sudo apt-get install git-core build-essential git clone https://github.com/knxd/knxd.git
# now build+install knxd cd knxd git checkout master dpkg-buildpackage -b -uc # To repeat: if this fails because of missing dependencies, # fix them instead of using dpkg-buildpackage’s “-d” option. cd .. sudo dpkg -i knxd_*.deb knxd-tools_*.deb
# … and if you’d like to update knxd: rm knxd*.deb cd knxd git pull dpkg-buildpackage -b -uc cd .. sudo dpkg -i knxd_*.deb knxd-tools_*.deb
Configuration:¶
The configuration file is /etc/knxd.conf
An exemple of configuration using a gateway with ip 192.168.1.1 is:
KNXD_OPTS=”-e 0.0.1 -E 0.0.2:9 -D -T -S -b ipt:192.168.1.1”
EIBD¶
EIBD it’s not longer supported but it’s working fine on my debian 8.7
Installation:¶
Run in shell command:
wget http://downloads.sourceforge.net/sourceforge/bcusdk/pthsem_2.0.8.tar.gz tar -xzf pthsem_2.0.8.tar.gz cd pthsem-2.0.8/ ./configure make sudo make install cd ..
wget http://downloads.sourceforge.net/sourceforge/project/bcusdk/bcusdk/bcusdk_0.0.5.tar.gz tar -xzf bcusdk_0.0.5.tar.gz cd bcusdk-0.0.5/ export LD_LIBRARY_PATH=/usr/local/lib ./configure –enable-onlyeibd –enable-eibnetiptunnel –enable-eibnetipserver –enable-ft12 make sudo make install cd ..
sudo ln -s /usr/local/lib/libeibclient.so.0 /usr/lib/libeibclient.so.0 sudo ln -s /usr/local/lib/libeibclient.so.0 /lib/libeibclient.so.0 sudo ln -s /usr/local/lib/libpthsem.so.20 /usr/lib/libpthsem.so.20 sudo ln -s /usr/local/lib/libpthsem.so.20 /lib/libpthsem.so.20
Configuration:¶
The configuration file is /etc/knxd.conf
An exemple of configuration using a gateway with ip 192.168.1.1 is:
KNXD_OPTS=”-e 0.0.1 -E 0.0.2:9 -D -T -S -b ipt:192.168.1.1”
Plugin KNX¶
Purpose¶
The KNX plugin i used to received and send message on a KNX bus.
This is a “No xPL” version
Plugin Information Page¶
Dependencies¶
The plugin need a a daemon and tools, you can use EIBD of knxd with knxtool.
Plugin configuration¶
Here is the global configuration:¶
Key | Type | Description |
---|---|---|
Host ip | string | The hostnmae/@Ip of daemon server |
Host Type | string | Specify if you use EIBD of KNXTOOL |
Create the domogik devices¶
Create device by device type¶
There is different devices type for sensors (boolean, scale, number...) and for commands (Switch, Scale...)
In all cases two parameters are needed for a domogik device creation:
Key | Type | Description |
---|---|---|
datapoint | string | Use the list to choice your KNX datapoint type |
address | string | The KNX address group that you would configure |
That rigth for sensors or commands if a command was created without sensors by default the plugin use the commands groups as sensors groups.
Here are some screenshots of devices type creation¶
Start the plugin¶
You can now start the plugin (start button) and use the created devices.
Set up your widgets on the user interface¶
You can now place the widgets of your devices features on the user interface.