KNX device is OFFLINE

Mr Oggerschummer thank you so much :pray:
so everything you wrote was 100/100 right [ except this } and few of this " ].
Finally i can switch my first Light on!
next step ALEXA should this light switch on and off, please leave any TIP you have that you think good is!
Best regards Said
thank you again for patience and your time :slight_smile:

Install the hue emulation.
The item is already properly tagged (“Lighting”),
so Alexa should be able to find the light.
Just try a device search in the Alexa app.

Thank for your answer!
i already have HUE, it work fine .


my challenge is that although I follow all the suggestions, all my KNX devices stay OFFLINE. The KNX bridge is ONLINE. The strange behavior is that the KNX devices are working. I have defined at least 100 KNX items distributed over several devices and all of them are working, except one specific function in a specific device…: When a KNX device is sending a new status (let say OFF) of a switch, the KNX binding is notifying it and saying “Fine, but I’m not changing the status of the corresponding item, because the device is offline”

First of all I’d like to understand where the general issue is. This is my bridge definition… (again, it’s ONLINE and working properly), followed by a typical device definition. My question is: why it is OFFLINE and working fine?

Bridge knx:ip:bridge "KNX IP Interface"
    Thing device KG_Gira2174_Dimmaktor1 "GIRA 4-fach Dimmaktor1" [address="1.1.4"]
        Type switch : EG_WZ_EL_Schalten "WoZi-Esstischlampe Schalten" [ga="1.001:2/1/10+<2/1/11"]
        Type dimmer : EG_WZ_EL_Dimmen   "WoZi-Esstischlampe Dimmen"   [switch="1.001:2/1/10+<2/1/11", position="5.001:2/1/13+<2/1/14", increaseDecrease="3.007:2/1/12"]
        Type switch : EG_WZ_SP_Schalten "WoZi-Spots Schalten" [ga="1.001:2/1/30+<2/1/31"]
        Type dimmer : EG_WZ_SP_Dimmen   "WoZi-Spots Dimmen"   [switch="1.001:2/1/30+<2/1/31", position="5.001:2/1/33+<2/1/34", increaseDecrease="3.007:2/1/32"]
        Type switch : EG_KU_SP_Schalten "Kochinsel-Spots Schalten" [ga="1.001:2/1/40+<2/1/41"]
        Type dimmer : EG_KU_SP_Dimmen   "Kochinsel-Spots Dimmen"   [switch="1.001:2/1/40+<2/1/41", position="5.001:2/1/43+<2/1/44", increaseDecrease="3.007:2/1/42"]

(adding “fetch=false, pingInterval=300, readInterval=3600” to the device definition won’t help)

What I do not understand is that you setup a separate switch besides the dimmer.
From my understanding there is no need to do so, the dimmer should be enough (It contains the switch).

Here a running example from my config (I just left one dimmer in and dropped the others to simplify it):

Thing device Dimmaktor1_2_22 “KNX 1.2.22 Dimmaktor” @ “UV”[
Type dimmer : A “Some ceiling light” [ switch=“1/2/2+<10/2/2”, position=“9/2/2+<11/2/2”, increaseDecrease=“2/2/2”, frequency=8 ]

The only difference I see is that I do not create separate switches, do not specify the data points and the use of “Channels:”. As for the bridge only difference is the autoReconnectPeriod set to 1.

Sorry that I have no further info for you.

:question: maybe someone else can jump in here :question:

BTW: Debug log data would be helpful…

Thanks Oggerschummer,
good suggestion. I will try out whether I can take a dimmer item for a switch. I’ll do it tomorrow.

However, I’m with you: it’s not the reason for an OFFLINE status, because it’s working. From logical standpoint this is a bug in the KNX binding. So maybe I should create a bug entry…

Quick question: how to turn on the debug mode for the KNX binding?

You need to use the karaf console.
There you can set the log level for the knx bundle.

Here is the DEBUG result for two operations (turn on a switch and then change the dimmer value) with the above device:

2019-04-18 17:21:29.054 [DEBUG] [nx.internal.client.AbstractKNXClient] - Wrote value 'ON' to datapoint 'command DP 2/1/10 'knx:ip:bridge', DPT id 1.001, low priority' (0. attempt).
2019-04-18 17:21:29.326 [DEBUG] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:KG_Gira2174_Dimmaktor1' received a GroupValueWrite telegram from '1.1.4' for destination '2/1/11'
2019-04-18 17:21:29.348 [DEBUG] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:KG_Gira2174_Dimmaktor1' received a GroupValueWrite telegram from '1.1.4' for destination '2/1/14'
2019-04-18 17:21:31.981 [DEBUG] [nx.internal.client.AbstractKNXClient] - Wrote value '70' to datapoint 'command DP 2/1/13 'knx:ip:bridge', DPT id 5.001, low priority' (0. attempt).
2019-04-18 17:21:33.360 [DEBUG] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:KG_Gira2174_Dimmaktor1' received a GroupValueWrite telegram from '1.1.4' for destination '2/1/14'

While the device has the status OFFLINE everything is working properly. So for me this is a bug within the binding. The downside of an OFFLINE status are situations where a KNX device is sending period values, which then cannot update an item…
I’m going to file a bug entry.

Yes this would be the best thing to do, from my impression your config looks good and it may just be an issue with the status reported.
Sorry I was not able to help more.

BTW: For anyone looking for the created bug-entry (and the possible (unbelievable!!) solution), refer to Issue #5484

At least the solution mentioned there set all my devices to ONLINE…

Thank You @Alex,

In addition, the improved/simplified sample configuration in the official KNX-Binding documentation:

Hi Together,
i am absolutely also an beginner. My Openhab is running on Raspberry Pi3b+.
Also i have the problem that my KNX devices showing me Offline after a few minutes/hours.

My KNX/IP Gateway is showing ONLINE. Can somebody explain wahat exactly have to be configured in the Gateway?
I checked also the Documentation but i cant find the right way.
What is the meaning of the IP Adress: (IP Adress of the FRITZ BOX??) and Local IP: IP Adress of Raspberry?

I am running the Gateway in Tunnel Mode.


I am beginner with OH,
I try to access to my KNX network by OH. so far without success!
I am using Windows version of openhab and Gira X1 as KNX getway.

is it possible to connect to KNX using PC and Win10 or I need to install OH on rasberry PI?
can I configure OH by paper UI or I need to use also Visual Studio?
so far all folders are empty:

Hello Krzyzsztof,

first of all: Welcome to openHAB.
I first started openHAB on Windows, but soon figured out that running on Linux has many benefits. when dealing with external scripts or executables (just my opinion).
So besides being more familiar with Windows you may consider switching to Linux. Try openhabian, it´s easy to setup and after the installation you already have a fully running OH with all the nasty bits set.

You may also consider reading the post on how to ask a good question, it helps us to help you.
What exactly haveyou done so far ? Installed the knx.binding ? Created the bridge thing ? Created the thing to control a knx-device plus corresponding items ?
You see your question is not easy to answer without further knowledge of your setup.

After you installed the knx-binding (Do not use the old 1.8 Binding but the 2.x one!) you have to configure the bridge within the PaperUI (you can do so in text files as well, but this is easier for beginners).
The IP address to enter is the address of your KNX IP interface. Local network address can be left blank, the device address can be set to 0.0.0. Port is 3671.

I personally use the KNX IP Bridge Weinzierl 730 and a second Interface from MDT for backup reasons (No advertising, just for information).

The X1 should provide an IP-Interface you can use.
Please look up in ETS (or in your router) which IP address the X1 interface has.
As soon as the gateway thing is online in Paper UI you can continue by adding a simple switch actor. After that is online you go for the channels and the required items as described in the binding documentation.


thx for quick feedback and advices,
finally i found solution to get access to X1, I have changed security level under ETS to OFF(before AUTOMATIC):
so now I can switch one lamp from openHAB :slight_smile:

Goal for me is to use OH as bridge to Google Home and voice control of my KNX network.
Now I will buy raspebrry PI to continue learning…

I am having trouble making it work aswell. Had it working once but then didnt again. Set the Bridge up with local address as the actual address and 0.0.0 Both shows it online. Then I created a thing (All using paper UI) called KNX Device. That however only shows online if I set the Interface to 0.0.0 I have setup a chanel with the address of 0/0/12 which is supposed to be the general address which turns all lights on in the whole room. This works perfectly fine using the Eibport app (Eibport v2 is installed) and using the switches. I have checked what the actuator used is for the switches and the app by looking into the bus disagnostics tab in ETS 5. Everything is running on WIN10 with the latest version of OpenHAB2 and KNX Binding. I would appreciate any help.

Kind regards

I am having the same problem of device being offline while IP gateway is online.

Also, I have got the IP Gateway to be online with lot of trial and errors.

Bridge knx:ip:bridge [
localSourceAddr=“1.1.1” ]
Thing device SwitchActuator “KNXSA/S8.10.1_1.1.8”@“OfficeArea” [
] {
Type switch:demoSwitch “Light” [ ga=“0/0/9” ]

Is there anyway to debug the situation what has gone wrong. I am unable to make out much from the debug information in the terminal.

2020-09-07 14:54:04.071 [hingStatusInfoChangedEvent] - ‘knx:device:bridge:SwitchActuator’ changed from OFFLINE to UNKNOWN

2020-09-07 14:54:04.076 [me.event.ThingUpdatedEvent] - Thing ‘knx:device:bridge:SwitchActuator’ has been updated.

2020-09-07 14:54:19.076 [hingStatusInfoChangedEvent] - ‘knx:device:bridge:SwitchActuator’ changed from UNKNOWN to OFFLINE

This message is not about the status (online/offline) of the Thing.
It’s about the actual Thing properties e.g. an address or type.

I know little of KNX but I suggest that when the binding tried to bring this Thing online, it found some mismatch between what you have configured and and real properties (possibly in a parent Bridge/parent Thing).

Thanks rossko I have sort of got this working earlier. I am unsure if I was using an IPR/S. however, right now I am using ABB IPS/S .

While I have the configuration of bridge as below. is the IP address of my IP Gateway and please note IP gateway is shown as online. My issue is with the Actuator.

2020-09-07 21:46:53.010 [hingStatusInfoChangedEvent] - ‘knx:ip:bridge’ changed from ONLINE to OFFLINE

2020-09-07 21:46:53.032 [hingStatusInfoChangedEvent] - ‘knx:device:bridge:SwitchActuator’ changed from OFFLINE to OFFLINE (BRIDGE_OFFLINE)

2020-09-07 21:46:53.038 [hingStatusInfoChangedEvent] - ‘knx:ip:bridge’ changed from ONLINE to UNKNOWN

2020-09-07 21:46:53.043 [me.event.ThingUpdatedEvent] - Thing ‘knx:ip:bridge’ has been updated.

2020-09-07 21:46:53.047 [hingStatusInfoChangedEvent] - ‘knx:ip:bridge’ changed from UNKNOWN to ONLINE

2020-09-07 21:46:53.051 [hingStatusInfoChangedEvent] - ‘knx:device:bridge:SwitchActuator’ changed from OFFLINE (BRIDGE_OFFLINE) to UNKNOWN

2020-09-07 21:47:06.051 [hingStatusInfoChangedEvent] - ‘knx:device:bridge:SwitchActuator’ changed from UNKNOWN to OFFLINE

I have been able to get this working.

I followed the other thread. Gateway online

While, in the above configuration if I remove the address (I consider this to be physical address) 1.1.8 which is my actual PA for Switch actuator, it works !

1 Like