Hi all,
I have yesterday migrated my OpenHAB installation from OH v3.4.3 to OH v4.3.4.
Included in the migration was an update of Raspian v10 Buster to v11 Bullseye and Java 11 to Java 17.
All seemed to work fine, except that KNX Binding shows a strange behavior.
Whenever there is an update on the KNX side, the update is correctly sent to OpenHAB and is reflected there.
But when there is a change on an KNX linked item on OpenHAB, this is not shown up on the KNX side.
E.g., Switches for lights, commands for shutters, and so on.
I have checked log files for KNX Binding in Debug mode, but no warnings or errors at all.
All seems to be fine, but just do not work. I searched for a similar error, but did not find anything.
My environment:
Platform = BCM43455 37.4MHz Raspberry Pi 3+, 4 GB RAM, 32 GB SDHC card + SSD for influxdb DB
OS: Release = Raspbian GNU/Linux 11 (bullseye), Kernel = Linux 6.12.21-v8+
openHAB 4.3.4 - Release Build
Java: openjdk version “17.0.14” 2025-01-21
Different Bindings like Amazon Echo, Astro, Bose, Doorbird, Enigma2, Go-e, HTTP, Hue, KNX, LG webOS, Milight, Modbus, NTP, Shelly, Smartmeter, Systeminfo, Telegram, Velux
and different transformations, like Exec, JSONPATH, MAP, Regex, Scale XPATH and XSLT.
influx db as persistence db.
Here one example:
Bridge definiton:
Bridge knx:ip:bridge [
ipAddress=“192.168.103.88”,
portNumber=3671,
localIp=“192.168.103.24”,
type=“TUNNEL”,
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=60,
localSourceAddr=“1.0.4”
] {Thing device generic [ readInterval=0 ] { ...
Channel config:
Type switch : og_bu_li_tisch “Büro Licht Tisch” [ ga=“1/1/51+1/4/51” ]
Item config:
Switch og_bu_li_tisch “Büro Licht Tisch” (gOG, gOG_BU, gOGLicht, gLicht, gAlexa) [ “Lighting” ] { channel=“knx:device:bridge:generic:og_bu_li_tisch” }
Extract from Log file:
Switching the light off on KNX side:
19:49:35.819 [TRACE] [knx.internal.client.AbstractKNXClient] - Received a Group Write telegram from ‘1.1.143’ to ‘1/1/51’ with value ‘[0]’
19:49:35.823 [DEBUG] [x.internal.handler.DeviceThingHandler] - onGroupWrite Thing ‘knx:device:bridge:generic’ received a GroupValueWrite telegram from ‘1.1.143’ for destination ‘1/1/51’
19:49:35.828 [TRACE] [x.internal.handler.DeviceThingHandler] - onGroupWrite Thing ‘knx:device:bridge:generic’ processes a GroupValueWrite telegram for destinati on ‘1/1/51’ for channel ‘knx:device:bridge:generic:og_bu_li_tisch’
19:49:35.834 [TRACE] [binding.knx.internal.dpt.ValueDecoder] - Finally using datapoint DPT = 1.001
19:49:35.838 [TRACE] [x.internal.handler.DeviceThingHandler] - processDataReceived updateState to channel ‘knx:device:bridge:generic:og_bu_li_tisch’ new value ’ OFF’ for GA ‘1/1/51’
19:49:35.848 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘og_bu_li_tisch’ changed from ON to OFF
19:49:35.856 [TRACE] [knx.internal.client.AbstractKNXClient] - Received a Group Write telegram from ‘1.1.42’ to ‘7/2/0’ with value ‘[0]’
19:49:35.860 [TRACE] [knx.internal.client.AbstractKNXClient] - Address ‘7/2/0’ is not configured in openHAB
19:49:35.890 [TRACE] [knx.internal.client.AbstractKNXClient] - Received a Group Write telegram from ‘1.1.42’ to ‘7/2/1’ with value ‘[0]’
19:49:35.893 [TRACE] [knx.internal.client.AbstractKNXClient] - Address ‘7/2/1’ is not configured in openHAB
19:49:35.910 [TRACE] [knx.internal.client.AbstractKNXClient] - Received a Group Write telegram from ‘1.0.14’ to ‘1/4/51’ with value ‘[0]’
19:49:35.914 [DEBUG] [x.internal.handler.DeviceThingHandler] - onGroupWrite Thing ‘knx:device:bridge:generic’ received a GroupValueWrite telegram from ‘1.0.14’ for destination ‘1/4/51’
19:49:35.919 [TRACE] [x.internal.handler.DeviceThingHandler] - onGroupWrite Thing ‘knx:device:bridge:generic’ processes a GroupValueWrite telegram for destinati on ‘1/4/51’ for channel ‘knx:device:bridge:generic:og_bu_li_tisch’
19:49:35.924 [TRACE] [binding.knx.internal.dpt.ValueDecoder] - Finally using datapoint DPT = 1.001
19:49:35.928 [TRACE] [x.internal.handler.DeviceThingHandler] - processDataReceived updateState to channel ‘knx:device:bridge:generic:og_bu_li_tisch’ new value ’ OFF’ for GA ‘1/4/51’
The other way around: When switching the light on on OH side:
19:49:38.651 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘og_bu_li_tisch’ received command ON
19:49:38.654 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item ‘og_bu_li_tisch’ predicted to become ON
19:49:38.657 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘og_bu_li_tisch’ changed from OFF to ON
19:49:38.660 [TRACE] [x.internal.handler.DeviceThingHandler] - Handling command ‘ON’ for channel ‘knx:device:bridge:generic:og_bu_li_tisch’
19:49:38.663 [TRACE] [nding.knx.internal.channel.KNXChannel] - getCommandSpec checking keys ‘[ga]’ for command ‘ON’ (class org.openhab.core.library.types.OnOffT ype)
19:49:38.665 [TRACE] [nding.knx.internal.channel.KNXChannel] - getCommandSpec key ‘ga’ has one of the expectedTypeClasses ‘[class org.openhab.core.library.types .OnOffType]’, matching command ‘ON’ and dpt ‘1.001’
19:49:38.667 [TRACE] [knx.internal.client.AbstractKNXClient] - writeToKNX groupAddress ‘1/1/51’, commandSpec ‘1/1/51:1.001 ON’
19:49:38.670 [TRACE] [knx.internal.client.AbstractKNXClient] - sendToKNX mappedValue: ‘on’ groupAddress: ‘1/1/51’
19:49:38.673 [DEBUG] [knx.internal.client.AbstractKNXClient] - Wrote value ‘ON’ to datapoint ‘command DP 1/1/51 ‘knx:ip:bridge’, DPT 1.001, low priority’ (0. at tempt).
But nothing happens on KNX side (no log entries on ETS4). And it doesn’t matter if I switch the light on or off.
Any help is appreciated…
Thanks a lot in advance,
Dieter