KNX is one of the main European standards for home and building automation, and historically the first driver supported by the Weble software. KNX devices can manage lighting, blinds and shutters, HVAC, security systems, energy management, audio/video, white goods, displays, remote control, and more.
The universal IoT gateway connects to the KNX bus either directly on the KNX twisted pair (S485 KNX hardware model), through a KNX IP router, through a KNX USB interface, or via KNX Secure tunneling. The Weble KNX driver is thorough and versatile — it supports multiple roles for different use cases:
Once connected to the KNX bus, the driver decodes KNX packets travelling on the line and communicating group addresses can be automatically inserted in the gateway (enabled by default, see section 2.4). Addresses can also be imported from an ETS project file.
In the address list of the gateway, click Import file (administrators only; the gateway must not be in the pending state) and select one of the supported files:
.knxproj — ETS project file. The gateway asks for the project password (leave the field empty if there is none). Group addresses are created in the Default address format of the gateway, with the names of their group ranges in the description and the datapoint type set in ETS..xml — ETS group address export in XML format..csv — ETS group address export in CSV format. The separator (tab, ; or ,) is detected automatically. Export the datapoint type column: lines without a datapoint type are skipped..esf — ETS OPC export. Only the size of the datapoint is known (1 bit, 1 byte, 2 bytes), so the datatype must be checked afterwards..json — address export of a Weble gateway.A datapoint type that the driver does not support is imported as 0.000 hexadecimal. After the import, check the Datatype column: the driver uses it to encode and decode values (see Supported datatypes in section 3.1).
The gateway can connect to the KNX bus via several modes: directly on the twisted pair, through a USB interface, via an IP router, or using KNX Secure. It can also simultaneously act as a KNX IP router, enabling remote ETS connections to the site.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name for this KNX gateway instance. |
| Cluster ID | cluster | Cluster identifier (integer). 0 = the gateway runs in its own process. Gateways that share another Cluster ID run in one process to save memory — see Gateway clusters. |
| Description | description | Optional description. |
| Mode | mode | Connection mode — see table below. |
Available connection modes:
| Mode | Value | Description |
|---|---|---|
| Twisted Pair | tp |
Direct connection via the local KNX/TP port (hardware must have a KNX connector, e.g. S485 KNX). |
| USB | usb |
Connection via a KNX USB interface. |
| Tunneling | ipt |
Connection to a KNX IP router/interface via IP tunneling. |
| Tunneling NAT | iptn |
Same as Tunneling but through a NAT (Network Address Translation) — use this when the gateway and the KNX IP router are on different subnets. |
| multicast | ip |
Connection via KNX IP multicast (routing mode). Packets are sent/received on a multicast group address. |
| Tunneling server | ips |
The gateway listens as a KNX IP server (router) only — it does not connect to a bus but accepts incoming KNX IP connections. |
| Tunneling secure | iptsecure |
KNX IP Secure tunnelling: encrypted TCP tunnel to a KNX IP Secure interface. Requires Host, Port, the .knxkeys keyring and its password. |
| multicast secure | ipsecure |
Currently behaves exactly like Tunneling secure (encrypted TCP tunnel to Host:Port); secure multicast routing is not available. |
These parameters depend on the selected mode.
| Label | JSON Key | Modes | Description |
|---|---|---|---|
| Host | host | ipt, iptn, iptsecure, ipsecure |
IPv4 address of the KNX IP router/interface. |
| Multicast group | multicastHost | ip |
KNX multicast group, default 224.0.23.12. A port can be added (224.0.23.12:3671); the default port is 3671. |
| Port | port | ipt, iptn, ips, iptsecure, ipsecure |
IP port of the KNX IP router (default: 3671). |
| Write delay | writeDelay | all | Delay in milliseconds between each packet sent to the bus. Writing without pauses can cause packet loss depending on the mode and infrastructure. Default: 200 ms. |
| EIB Address | address | all except secure | The KNX physical/participant address of the gateway on the bus (e.g. 15.15.250). |
| Filter same source | filter | ipt, iptn |
When enabled, filters out packets coming from the same source as the gateway — prevents echo loops in certain topologies. |
| Label | JSON Key | Description |
|---|---|---|
| Default address format | groupFormat | The notation format for KNX group addresses: 3-level, 2-level, or Free-level. See section 3 for details. |
The default format is used for the addresses created by auto-discovery and by the
.knxprojimport. To convert existing addresses, select them and use Format addresses (3-level / 2-level / Free-level) in the context menu. A telegram updates every notation of the same group address that exists in the gateway.
| Label | JSON Key | Description |
|---|---|---|
| Auto insert address | autoInsertAddress | Creates a group address the first time a telegram is seen for it. Enabled by default. |
| Auto insert device | autoInsertDevice | Creates a device (physical) address for every device seen as the source of a telegram. Enabled by default. |
Auto-inserted group addresses are named in the Default address format, are not polled (Read = never) and get a datatype guessed from the size of the telegram:
| Telegram size | Datatype assigned |
|---|---|
| 1 to 6 bits | 1.xxx 1 bit (6 bits) |
| 1 byte | 5.xxx 1 byte unsigned (8 bits) |
| 2 bytes | 9.xxx 2 bytes float (16 bits) |
| 3 bytes | 10.001 time (24 bits) |
| 4 bytes | 14.xxx 4 bytes float (32 bits) |
| other | 0.000 hexadecimal |
The size does not tell the real datapoint type: a 2-byte counter, a percentage (5.001), a 4-byte counter or a date will show wrong values until you select the right Datatype. Import the ETS project (section 1.1) and tick Address to update in the import window to get the correct types, or fix them by hand.
On a busy installation, disable both options once the addresses you need are present, to avoid creating hundreds of unused addresses.
These parameters enable the gateway to act as a KNXnet/IP server, allowing external clients (such as ETS) to connect to the KNX bus through the gateway.
| Label | JSON Key | Description |
|---|---|---|
| Server | server | Starts a KNXnet/IP tunnelling server in the gateway, so that other clients can reach the KNX bus through it. |
| Server port | serverPort | Port of that server (default 3671). In Tunneling server mode the server listens on Port instead. |
| EIB Client range | clientAddresses | Range of KNX physical addresses assigned to connecting clients. Format: 15.15.251:4 assigns addresses 15.15.251 to 15.15.254 (4 clients max). |
| Allow ETS (IP server) | serverETS | Makes the server answer KNXnet/IP discovery and description requests, so that ETS can find it and use it for device programming. |
| Allow ETS (tunneling server) | ipsServerETS | Same option, shown in Tunneling server mode only. |
| Multicast server | serverMulticast | Also enables KNXnet/IP routing between the bus and a multicast group. |
| Multicast ip | serverMulticastAddress | Multicast group used for routing (default 224.0.23.12). Routing uses the Server port. |
These parameters are visible when the mode is iptsecure or ipsecure. KNX Secure provides end-to-end encryption for KNX IP communication. It requires Node.js 18+ on the gateway.
| Label | JSON Key | Description |
|---|---|---|
| knxkeys file | secureKnxkeys | The .knxkeys file exported from ETS, uploaded as a hex-encoded binary. This file contains the encryption keys for all secure devices on the project. |
| knxkeys file password | secureKnxkeysPassword | The password used to decrypt the .knxkeys file (set in ETS when exporting the keyring). |
Limits of the secure modes
- The gateway needs the KNX Secure library (
knxultimate) and Node.js 18 or later. If one is missing, the gateway does not start and its log saysmissing knx secure librairiesorNode 18 needed.- The keyring and its password are mandatory.
- EIB Address, EIB Client range and the Server block are hidden: the gateway cannot act as a KNX IP server in a secure mode, so remote ETS access (section 4.2) is not available.
- Device (physical) addresses cannot be read or restarted. A Watchdog on a device address therefore turns to
!watchdogas soon as the device stays silent longer than the interval.
On a gateway installed on Windows the driver is called KNX IP and is limited to IP connections:
ipt) and multicast (ip). USB, twisted pair, Tunneling NAT, Tunneling server and the secure modes are not available.KNX Secure is not supported on Windows. For an installation that requires KNX Secure, use a Linux-based gateway.
Twisted Pair (direct connection):
{
"mode": "tp",
"writeDelay": 200,
"groupFormat": "3-level",
"autoInsertAddress": true,
"autoInsertDevice": false,
"address": "15.15.250",
"clientAddresses": "15.15.251:4",
"server": false,
"serverPort": 3671,
"serverETS": false,
"serverMulticast": false,
"serverMulticastAddress": "224.0.23.12"
}
IP Tunneling with KNX IP router as server:
{
"mode": "ipt",
"host": "192.168.1.100",
"port": 3671,
"filter": true,
"writeDelay": 200,
"groupFormat": "3-level",
"autoInsertAddress": true,
"autoInsertDevice": false,
"address": "15.15.250",
"clientAddresses": "15.15.251:4",
"server": true,
"serverPort": 3671,
"serverETS": true,
"serverMulticast": false
}
KNX IP Secure Tunneling:
{
"mode": "iptsecure",
"host": "192.168.1.100",
"port": 3671,
"writeDelay": 200,
"groupFormat": "3-level",
"autoInsertAddress": true,
"autoInsertDevice": false,
"secureKnxkeys": "<hex-encoded .knxkeys file>",
"secureKnxkeysPassword": "myKeysPassword"
}
IP Multicast:
{
"mode": "ip",
"multicastHost": "224.0.23.12",
"writeDelay": 200,
"groupFormat": "3-level",
"autoInsertAddress": true,
"autoInsertDevice": false,
"address": "15.15.250",
"clientAddresses": "15.15.251:4",
"server": false
}
There are two types of KNX addresses: group addresses and device addresses.
Group addresses are used to send commands over the bus or to communicate sensor data (temperatures, wind speed, energy meters, etc.). Multiple devices can communicate on the same group address.
There are three notation formats for group addresses:
3-level notation — main/middle/sub (e.g. 29/4/243)
2-level notation — main/sub (e.g. 29/1267)
Free-level notation — %knx:main (e.g. %knx:60659)
Example:
29/4/243,29/1267, and%knx:60659all refer to the same group address in the three different formats. A number entered alone is prefixed with%knx:.
| Label | JSON Key | Description |
|---|---|---|
| Datatype | datatype | The KNX datapoint type used to encode and decode the value. Pick it in the list; in JSON the value must be exactly one of the labels of the table below (sub-types are grouped by family: use 9.xxx 2 bytes float (16 bits) for DPT 9.001). For the meaning of each KNX DPT, see the KNX DPT reference. |
| Read | read | never (default): the gateway only listens to the bus. startup: one read request when the gateway starts, if no telegram was received yet. A period in milliseconds (minimum 1000, e.g. 60000): same read at start-up, then a read request each time no telegram has been seen on the address for that time — an address that already communicates by itself is not polled. respond: the gateway never reads, but answers the read requests of other devices with its last value (it acts as a KNX device; the address must have a value). |
| Write | write | never (default): the gateway writes only when a route, a logic or a user writes the address. startup: the current value is sent again when the gateway starts. A period in milliseconds (minimum 1000): the current value is sent at start-up, then again each time no telegram has been seen on the address for that time (cyclic sending, heartbeat). With startup or a period, the value restored by Remanent after a restart is also written to the bus — keep never on outputs that must not be commanded again after a restart. |
| Watchdog (ms/cron) | watchdog | Monitors the activity of the address. Enter a period in milliseconds (minimum 1000; e.g. 300000 = 5 minutes) or a cron expression; 0 or empty disables it. When no telegram has been received during the period, the gateway sends a read request; if nobody answers, the status of the address becomes !watchdog. It returns to online as soon as a telegram is received again. The setting is applied without restarting the gateway. |
| Enable enqueue | enableMultipleEnqueue | Tick this box for an address where only the latest state matters (set-point, dimming value, status). While writes for this address are still waiting in the gateway write queue, a new write replaces them instead of being queued behind them, so only the most recent value is sent to the bus. This sheds load when the bus is congested. Leave it unchecked (default) for an address where every command must reach the bus (pulse, step command, counter). |
| Remanent | remanent | Check box. When ticked, the last value is saved on disk and restored after a restart. Typically used with Read = respond, so that the gateway can still answer after a reboot. |
| Log | log | When the value is written to the history: never (default), always, on change (optional threshold, throttle, force after, heartbeat), a fixed interval in ms (the current value is recorded every N ms, aligned on the clock), a cron expression or a custom expression. |
datatype (exact value) |
KNX DPT | Value in the gateway |
|---|---|---|
1.xxx 1 bit (6 bits) |
DPT 1 (switch, up/down, …) | 0 / 1 |
2.xxx 1 bit with priority control (6 bits) |
DPT 2 | 0–3 |
3.xxx 3 bits with control (6 bits) |
DPT 3 (dimming / blind step) | 0–15 |
4.xxx character (8 bits) |
DPT 4 | one character |
5.xxx 1 byte unsigned (8 bits) |
DPT 5 (raw) | 0–255 |
5.001 scaling, 1 byte unsigned (8 bits) |
DPT 5.001 | 0–100 % |
5.003 angle, 1 byte unsigned (8 bits) |
DPT 5.003 | 0–360 ° |
5.004 percent, 1 byte unsigned (8 bits) |
DPT 5.004 | 0–255 (raw byte) |
6.xxx 1 byte signed (8 bits) |
DPT 6 | -128–127 |
7.xxx 2 bytes unsigned (16 bits) |
DPT 7 | 0–65535 |
8.xxx 2 bytes signed (16 bits) |
DPT 8 | -32768–32767 |
9.xxx 2 bytes float (16 bits) |
DPT 9 (temperature, lux, …) | decimal number |
10.001 time (24 bits) |
DPT 10 | date/time (weekday + time of day) |
11.xxx date (24 bits) |
DPT 11 | date |
12.xxx 4 bytes unsigned (32 bits) |
DPT 12 (counters) | integer |
13.xxx 4 bytes signed (32 bits) |
DPT 13 (energy counters) | integer |
14.xxx 4 bytes float (32 bits) |
DPT 14 (power, …) | decimal number |
16.xxx string (112 bits) |
DPT 16 | text, 14 characters max. |
17.xxx Scene (8 bits) |
DPT 17 | raw scene byte |
20.xxx 1 byte unsigned (8 bits) |
DPT 20 (HVAC mode and other enumerations) | 0–255 |
232.xxx 3 bytes unsigned (24 bits) |
DPT 232 (3-byte value) | integer |
219.001 (24 bits) |
DPT 219.001 (alarm info) | JSON object |
222.100 (48 bits) |
DPT 222.100 (room temperature set-points) | JSON object {confort, standby, eco} |
237.600 DALI Control Gear Diagnostic / 238.600 DALI Diagnostic |
diagnostics of KNX/DALI gateways | JSON object |
Griesser GLT Status / Griesser GLT Order / Griesser 6 bytes |
Griesser blind controllers (manufacturer specific) | JSON object |
0.000 hexadecimal |
any other datapoint type | raw payload as a hexadecimal string |
A datapoint type that is not in this list (for example DPT 19.001 date/time or DPT 29) must be configured as
0.000 hexadecimaland decoded in a route or in the logic module. An address whosedatatypeis not one of these labels cannot be read or written.
Device addresses are the physical addresses of KNX devices on the bus (also called participant addresses). Format: main.middle.sub (e.g. 15.15.251).
Device addresses are mainly used for watchdog monitoring — checking if a specific device is still communicating on the bus. If it stops responding, an alert can be triggered.
The value of a device address is the value of the last telegram sent by that device; the Source column shows the group address it was sent to. (For a group address, the Source column, hidden by default in the group address list, gives the physical address of the device that sent the last telegram: useful to find out which device writes on a group.)
Writing the value restart to a device address restarts the KNX device (not available in the secure modes nor on Windows).
| Label | JSON Key | Description |
|---|---|---|
| Watchdog (ms/cron) | watchdog | Monitors the activity of the device. Enter a period in milliseconds (minimum 1000; e.g. 300000 = 5 minutes) or a cron expression; 0 or empty disables it. When no telegram has been received from the device during the period, the gateway reads the device descriptor; if the device does not answer, the status of the address becomes !watchdog. It returns to online as soon as a telegram is received again. The setting is applied without restarting the gateway. |
| Enable enqueue | enableMultipleEnqueue | Shown in the form but only used for group-address writes; it has no effect on a device address. |
| Log | log | When the value is written to the history: never (default), always, on change (optional threshold, throttle, force after, heartbeat), a fixed interval in ms (the current value is recorded every N ms, aligned on the clock), a cron expression or a custom expression. |
| Property | Value |
|---|---|
| Readable | Yes — Read set to a polling interval or startup sends a GroupValueRead; respond makes the gateway answer read requests from the bus with the last value; never disables reading. |
| Writable | Yes — sends a GroupValueWrite telegram on the bus. |
| Import | .knxproj (ETS project, password asked if protected), .esf, .csv, .xml, .json |
| Routable | Yes |
| Loggable | Yes |
For the API, see Gateways (peers API).
The most common use case: the gateway reads KNX values from the bus and makes them available to other protocols via routes.
tp, usb, or ipt depending on your hardware.The complete procedure, with the VPN, ETS settings and troubleshooting, is in Programming a KNX installation remotely with ETS through the gateway.
The gateway can act as a KNX IP server, allowing ETS to connect to the KNX bus remotely through a VPN connection.
ipt (connected to the local KNX IP router) or tp (direct on the bus).3671).For installations that require encrypted communication:
.knxkeys file with a password.iptsecure)..knxkeys file and enter the password.KNX Secure requires Node.js 18 or later and the KNX Secure library on the gateway, and is not available on Windows. See the limits in section 2.6.
Monitor that critical KNX devices are still alive:
1.1.10).300000 = 5 minutes).status from this device address to an SMTP or SMS address (see Status Route For Alerts in the Routes page). The route fires when the status changes to !watchdog, and again when it returns to online.Do not use a route of type value here: the value of a device address changes at every telegram sent by the device, so a value route would send one message per telegram.
| Symptom (gateway log) | Cause | What to do |
|---|---|---|
A write returns timeout; log: write to 1/2/3 not confirmed within 5s (no bus echo) |
The gateway did not see its own telegram on the bus within 5 seconds. | Check the connection to the bus (interface powered and connected, tunnel still open). |
Log: write to 1/2/3 abandoned after >55s in write queue (backlog) |
Too many writes are waiting: they are sent one by one, separated by the Write delay. | Reduce the number of simultaneous writes, lower the Write delay if the interface allows it, and tick Enable enqueue on addresses where only the last value matters. |
Values of an address are wrong or missing; log: UNKNOWN DATATYPE or decode error |
The Datatype does not match the telegram. | Select the right datatype (see Supported datatypes in section 3.1). |
Status !watchdog on an address |
No telegram during the watchdog period and no answer to the read request. | Check the device; the status returns to online at the next telegram. |
Twisted pair: short interruption of the bus connection once a night (recent versions log knxd daily restart) |
In Twisted Pair mode the connection to the bus is restarted once a day, at a random time between 03:00 and 05:00. | Nothing: addresses are not reloaded and no start-up read/write is sent. |
Secure mode: the gateway does not start (missing knx secure librairies, Node 18 needed, missing knxkey file, missing knxkeys file password) |
The KNX Secure library or Node.js 18 is not installed on the device, or the keyring / its password is not set. | Upload the .knxkeys file and enter its password. If the library or Node.js is missing, update the system of the device or contact support. |