Error: Handler - connection lost to one KNX-device after power failure

After a power failure on my OPenHAB (3.2.0 Release) server, the connection to one of my KNX device things is lost and ends up in ERROR: HANDLER, Status UNINITIALIZED and HANDLER_CONFIGURATION_PENDING. The KNX-bus is functional and I can still operate the device “locally” using push-buttons. I have tried to restart everything several times but it doesn’t come up again. tHe same problem has occcured twice before (the thread below) and a workaround I have used is to create a new thing with the same KNX individual adress which comes online immediately. This workaround is very annoying since I have to copy all 24 channels to the new thing (easy using the code tab) and then connect the new 24 channels to existing items and disconnect te items from the malfunctioning thing/channels.

Any thoughts on what’s causing this and/or if there is another, better workaround?

Does the knx bridge work? Other KNX devices work in OH? Show your problem device setup.

Yes, all other KNX devices like dimmer actuators, heating actuators etc including my KNX bridge.

Thing that doesn’t work:

UID: knx:device:a1a834826e:7f5ff74276
label: KNX Switch actuator
thingTypeUID: knx:device
configuration:
  pingInterval: 600
  address: 1.1.12
  readInterval: 0
  fetch: false
bridgeUID: knx:ip:a1a834826e
channels:
  - id: KNX_SwitchActuator_M01
    channelTypeUID: knx:switch
    label: Tvättmaskin
    description: null
    configuration:
      ga: 3/1/5+<3/4/5
  - id: KNX_SwitchActuator_M02
    channelTypeUID: knx:switch
    label: Torktumlare
    description: null
    configuration:
      ga: 3/1/6+<3/4/6
  - id: KNX_SwitchActuator_M03
    channelTypeUID: knx:switch
    label: Kyl
    description: null
    configuration:
      ga: 3/1/8+<3/4/8
  - id: KNX_SwitchActuator_M04
    channelTypeUID: knx:switch
    label: Diskmaskin
    description: null
    configuration:
      ga: 3/1/3+<3/4/3
  - id: KNX_SwitchActuator_M05
    channelTypeUID: knx:switch
    label: GVF
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_M06
    channelTypeUID: knx:switch
    label: Kök, fönsteruttag (gårdsplan)
    description: null
    configuration:
      ga: 2/1/3+<2/4/3
  - id: KNX_SwitchActuator_M07
    channelTypeUID: knx:switch
    label: Kök, fönsteruttag (å)
    description: null
    configuration:
      ga: 3/1/1+<3/4/1
  - id: KNX_SwitchActuator_M08
    channelTypeUID: knx:switch
    label: Hall trappa, uttag
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E101
    channelTypeUID: knx:switch
    label: Sal, uttag
    description: null
    configuration:
      ga: 2/1/2+<2/4/2
  - id: KNX_SwitchActuator_E102
    channelTypeUID: knx:switch
    label: Ytterbelysning, gavel (parkering)
    description: null
    configuration:
      ga: 2/1/10+<2/4/10
  - id: KNX_SwitchActuator_E103
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E104
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E105
    channelTypeUID: knx:switch
    label: Sovrum (bv), uttag
    description: null
    configuration:
      ga: 2/1/1+<2/4/1
  - id: KNX_SwitchActuator_E106
    channelTypeUID: knx:switch
    label: Sovrum (öp) norr, uttag
    description: null
    configuration:
      ga: 2/1/6+<2/4/6
  - id: KNX_SwitchActuator_E107
    channelTypeUID: knx:switch
    label: Sovrum (öp) söder, uttag
    description: null
    configuration:
      ga: 2/1/4+<2/4/4
  - id: KNX_SwitchActuator_E108
    channelTypeUID: knx:switch
    label: Allrum (öp), uttag
    description: null
    configuration:
      ga: 2/1/5+<2/4/5
  - id: KNX_SwitchActuator_E201
    channelTypeUID: knx:switch
    label: Köksfläkt
    description: null
    configuration:
      ga: 3/1/7+<3/4/7
  - id: KNX_SwitchActuator_E202
    channelTypeUID: knx:switch
    label: Ytterbelysning, huvudentré
    description: null
    configuration:
      ga: 2/1/7+<2/4/7
  - id: KNX_SwitchActuator_E203
    channelTypeUID: knx:switch
    label: Ytterbelysning, gavel (Park)
    description: null
    configuration:
      ga: 2/1/9+<2/4/9
  - id: KNX_SwitchActuator_E204
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E205
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E206
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E207
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E208
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}

Thing that work. Identical to the one above but created after the first one stopped working.

UID: knx:device:a1a834826e:d6bc2b0999
label: _KNX Switch actuator
thingTypeUID: knx:device
configuration:
  pingInterval: 600
  address: 1.1.12
  readInterval: 0
  fetch: false
bridgeUID: knx:ip:a1a834826e
channels:
  - id: KNX_SwitchActuator_M01
    channelTypeUID: knx:switch
    label: Tvättmaskin
    description: null
    configuration:
      ga: 3/1/5+<3/4/5
  - id: KNX_SwitchActuator_M02
    channelTypeUID: knx:switch
    label: Torktumlare
    description: null
    configuration:
      ga: 3/1/6+<3/4/6
  - id: KNX_SwitchActuator_M03
    channelTypeUID: knx:switch
    label: Kyl
    description: null
    configuration:
      ga: 3/1/8+<3/4/8
  - id: KNX_SwitchActuator_M04
    channelTypeUID: knx:switch
    label: Diskmaskin
    description: null
    configuration:
      ga: 3/1/3+<3/4/3
  - id: KNX_SwitchActuator_M05
    channelTypeUID: knx:switch
    label: GVF
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_M06
    channelTypeUID: knx:switch
    label: Kök, fönsteruttag (gårdsplan)
    description: null
    configuration:
      ga: 2/1/3+<2/4/3
  - id: KNX_SwitchActuator_M07
    channelTypeUID: knx:switch
    label: Kök, fönsteruttag (å)
    description: null
    configuration:
      ga: 3/1/1+<3/4/1
  - id: KNX_SwitchActuator_M08
    channelTypeUID: knx:switch
    label: Hall trappa, uttag
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E101
    channelTypeUID: knx:switch
    label: Sal, uttag
    description: null
    configuration:
      ga: 2/1/2+<2/4/2
  - id: KNX_SwitchActuator_E102
    channelTypeUID: knx:switch
    label: Ytterbelysning, gavel (parkering)
    description: null
    configuration:
      ga: 2/1/10+<2/4/10
  - id: KNX_SwitchActuator_E103
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E104
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E105
    channelTypeUID: knx:switch
    label: Sovrum (bv), uttag
    description: null
    configuration:
      ga: 2/1/1+<2/4/1
  - id: KNX_SwitchActuator_E106
    channelTypeUID: knx:switch
    label: Sovrum (öp) norr, uttag
    description: null
    configuration:
      ga: 2/1/6+<2/4/6
  - id: KNX_SwitchActuator_E107
    channelTypeUID: knx:switch
    label: Sovrum (öp) söder, uttag
    description: null
    configuration:
      ga: 2/1/4+<2/4/4
  - id: KNX_SwitchActuator_E108
    channelTypeUID: knx:switch
    label: Allrum (öp), uttag
    description: null
    configuration:
      ga: 2/1/5+<2/4/5
  - id: KNX_SwitchActuator_E201
    channelTypeUID: knx:switch
    label: Köksfläkt
    description: null
    configuration:
      ga: 3/1/7+<3/4/7
  - id: KNX_SwitchActuator_E202
    channelTypeUID: knx:switch
    label: Ytterbelysning, huvudentré
    description: null
    configuration:
      ga: 2/1/7+<2/4/7
  - id: KNX_SwitchActuator_E203
    channelTypeUID: knx:switch
    label: Ytterbelysning, gavel (Park)
    description: null
    configuration:
      ga: 2/1/9+<2/4/9
  - id: KNX_SwitchActuator_E204
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E205
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E206
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E207
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}
  - id: KNX_SwitchActuator_E208
    channelTypeUID: knx:switch
    label: Reserv
    description: null
    configuration: {}

Try to delete this individual address. It does not need for correct work.

Doesn’t make any difference.

What are you using as an interface to connect to knx tunnel router usb … Show configuration and device model. Sometimes tunnel devices they just break connexion without reason but in general a reboot of the devices solves the problem. Other times is the networking etc.

I’m using a Schneider Electric SpaceLogic KNX IP Router - see configuration below.

Not really sure how to move forward but since all other devices worked just fine even after the OpenHAB power failure reboot, I doubt there is an issue with the gateway. The KNX to OpenHAB integration has also been 100% rock solid between these issues so I don’t think there is a network issue either.

UID: knx:ip:a1a834826e
label: KNX/IP Gateway
thingTypeUID: knx:ip
configuration:
  useNAT: false
  readRetriesLimit: 3
  ipAddress: 192.168.1.244
  autoReconnectPeriod: 60
  localIp: 192.168.1.57
  localSourceAddr: 0.0.0
  readingPause: 50
  type: TUNNEL
  portNumber: 3671
  responseTimeout: 10

If you have a knx router just use routing. If you insist on tunnel then make sure you are using adress available for openhab to connect sometimes ets etc can fill it up. You can use Wireshark to get more details.

I changed to router and now everything is a total mess. The gateway is online but all other devices is going offline one by one. :confused:

What devices are you talking about there is no device in knx just group adresses. Also it takes a minute or so for the broadcasting to go online.

Sorry, I meant my KNX things in OH, representing my actuators, binary interfaces etc.

I thought that status “ONLINE” on a KNX thing in OH meant that a connection is established and that OH can communicate with it through the group adress definition on the channels?

Tunnel unicast Router broadcast.

It`s strange, because thing without this address is always online, when bridge online.

At least, you can transfer all chanels to another working knx thing (do not forget make changes in other places of OH, because it will be new chanels).

But before it, let`s try this:
0) Save configuration of OH (may be full copy OH folder)

  1. Delete all individual addresses of all knx things. If it will do not help, then

Put localSourceAddr in brifge which OH connected to KNX (with help of ETS).

Sometimes when OH is rebooting and ETS is connecting in this time, this address is changing by phisical KNX gateway (1.1.3 instead 1.1.2 for example) and OH has a lot of bugs with communications.

  1. You can try to update to OH 3.3, for example.

After rebooting, you must wait some time to OH conection to KNX bus.

Finally I found out what’s causing this. After an upgrade to 3.4.3 earlier today, the problem still existed, but a better error message was presented:

Skärmavbild 2023-05-05 kl. 19.24.33

Translated it says {ga=parameter is required}. I then realized that I had a few channels representing unused channels in my switch actuator without a group adress and apparently this was causing the error.

- id: KNX_SwitchActuator_E207
  channelTypeUID: knx:switch
  label: Reserv
  description: null
  configuration: {}

So the solution is to either remove unused/spare channels or add a dummy configuration group adress.

Wow just wow.thanks for sharing