I am using OpenHAB 2.3 running on Debian GNU/Linux 9.5 (stretch) with the KNX Binding.
I made the mistake and created 2 KNX bridges in two different thing files (named differently). Both Bridges were equal except the Things/devices.
Now, the knx binding (i guess) stopped working, because i cant control any knx light via openhab. I restarted the PC multiple times, deinstalled and reinstalled the knx binding, i couldnt get it to work again. Can anyone help me?
I consulted the karaf console with Start_debug.sh and saw alot of errors. Maybe OH will work after i fixed this errors…
The console can be started with: cd /usr/share/openhab2 and ./start_debug.sh and after this “log:tail”
Edit now I have an Error: ".items has errors, therefore ignoring it: [1,1]: missing EOF at ’ ’
I am worried about the ’ ’ and the line and position number… There is a comment in the first line. And at the first character is a /. This comment is there since the beginning and it worked fine until today.
yes there was a “//”. When i said “the first character is a” i meant it literaly^^ Like in [1,1] Line one, char one.
Problem is solved. I copied the whole itemsfile into a new file and everything worked. Despite a few other errors.
But thanks.
Conclusion: i dont know where the problem was. It seams that copying the content of the item file to a new one solved the major problem. Maybe the 2 knx bridges to the same KNX ip-interface where to much for OH2.3
yes, i tried to keep my OH Code as isolated from the code from my colleagues…
But having a second thingsfile is one more connection the the KNX IP interface which can handle only a certain numbers of action…
is there another reason why it is a bad idea to split a things file?
Please notice the different Thing head.
This is not tested, but I got the notation by accident when configuring MQTT2 and it worked, so maybe this will also work for KNX2.
This way the things could be configured in a separate (or even more) things file.
My thing file looks like that.
I just copied everything from the top until before the “Thing knx:device:generic” and wrote another “device” in it. Same Bridge , same ip and so on. And suddenly the 1st thing file stopped working
You don’t have to define the bridge two times. That part was only to show the difference between normal definition (would have curly brackets around all things, right after the bridge definition) and this one (doesn’t have curly brackets after the bridge definition at all, instead the bridge is set for each thing in the thing definition.