KNX Binding doesn't find config file

I got a problem getting openhab to work with the knx binding :

Below are the steps i tried on two PC’s with the same result :

  • installation opnhab on windows 10 64 bit (install zulu 8u152 Intel x64 JDK)

  • set environment variable JAVA_HOME to C:\Program Files\Zulu\zulu-8

  • download and unzip openhab to C:\openhab-2.1.0

  • Start openhab -> Message appears in console karaf.bat: Ignoring predefined value for KARAF_HOME

  • add binding-knx1 - 1.10.0 in Paper UI

openhab.log contains

2017-12-15 09:19:59.399 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.0.170:8080
2017-12-15 09:19:59.586 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.0.170:8443
2017-12-15 09:19:59.649 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-12-15 09:19:59.680 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-12-15 09:19:59.695 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-12-15 09:19:59.820 [INFO ] [nx.internal.connection.KNXConnection] - KNXBinding configuration is not present. Please check your configuration file or if not needed remove the KNX addon.

after this

  • edit C:\openhab-2.1.0\conf\services\knx.cfg -> set ip

  • add simple items file and sitemap file

Switch licht_keuken “licht keuken” { knx=“0/1/12” }

sitemap default label=“My first sitemap”
{
Switch item=licht_keuken label=“Licht Keuken”
}

  • Go to basic Ui an d try switch -> doesn’t work,

probably related to

2017-12-15 09:19:59.820 [INFO ] [nx.internal.connection.KNXConnection] - KNXBinding configuration is not present. Please check your configuration file or if not needed remove the KNX addon.

and maybe related to

karaf.bat: Ignoring predefined value for KARAF_HOME

Restarting openhab appends the same messages to the log

Please help…

I have no experience with windows-based openHAB installations, but:

  1. do you have other bindings, which require configuration and do they throw errors also?
    if not, please just try to install a simple one like http-binding and see, if this one starts without Error
  2. can you please post the Contents of your configuration
    ** knx.cfg
    ** items.file

So we can have a look on them.
it seems, your openHAB comes up normally except for the KNXBinding Errors. or are there any more Errors in openhab.log?

Hi Thomas,

By you asking for the knx.cfg and copy pasting it into this editor, I came to my attention if filled in the ip but didn’t uncomment the line (noob)
So the knx.cfg was read, but since everything was in comment, no configuration was present.

Thanks a lot, everuthing works now!

regards

Tom

1 Like