KNX-Connect to openHAB2


I dont know, what i’m doing wrong. I installed knxd and can make a connection to the bus via ip. If i try to switch on a light it works with

sudo knxtool groupswrite ip: 3/0/0 1 is static ip of raspi. If I do with the multicast address it does not.

[11:40:04] openhabian@home:~$ sudo knxtool groupswrite ip: 3/0/0 1
Open failed: Network is unreachable

so far, ok. If I define things I can find them in my PaperUI, just as defined in the knx.things. Everything looks GREEN. But from sitemap I cannt switch on and of. I always get

2020-10-30 11:39:32.019 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item '1BSchalter' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch

I already tried TUNNEL vs. ROUTER, Changed in sitemap the Capital letters from “Switch” to “switch”. Has anyone an idea please?

thx, Josef

  • Platform information:
    • Hardware: raspberry pi 2
    • OS: Standard delivery
    • openHAB version: 2
  • Issue of the topic: Cannot obtain connection from openHAB to KNX
  • Please post configurations (if applicable):
Bridge knx:ip:bridge [  
//    type="ROUTER", 
//    ipAddress="" ,
//    localSourceAddr="0.0.0",
//    localIp=""
    ipAddress="" ,
    Thing device generic [
//	fetch=true,
    ] {
        Type switch        : 1BSchalter	    "Steckdose"		[ ga="1.001:3/0/0+<3/3/0" ]
        Type rollershutter : 1BRollo        "Beschattung"   	[ upDown="1/0/3+1/6/3", stopMove="1/1/3" , position="1/6/3" ]
	Type number        : 1BTemp         "Raumtemperatur" 	[ga="2/2/7"]
  • Items configuration related to the issue
switch        1BSchalter     "Light [%s]"               <light>          { channel="knx:device:bridge:generic:1BSchalter" }
rollershutter 1BRollo        "Shade [%d %%]"            <rollershutter>  { channel="knx:device:bridge:generic:1BRollo" }
number        1BTemp         "Temperature [%.1f °C]"     <temperature>    { channel="knx:device:bridge:generic:1BTemp" }
  • Sitemap configuration related to the issue
sitemap home label="Haus" {
  Frame label="Büro" {
    Switch item=1BSchalter
    Switch item=1BRollo
    Text   item=1BTemp
  • Rules code related to the issue
  • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

2020-10-30 11:38:20.724 [me.event.ThingUpdatedEvent] - Thing ‘knx:ip:bridge’ has been updated.

2020-10-30 11:38:20.793 [me.event.ThingUpdatedEvent] - Thing ‘knx:device:bridge:generic’ has been updated.

2020-10-30 11:38:50.739 [hingStatusInfoChangedEvent] - ‘knx:ip:bridge’ changed from UNKNOWN to ONLINE

2020-10-30 11:38:50.747 [hingStatusInfoChangedEvent] - ‘knx:device:bridge:generic’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-10-30 11:39:31.977 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of ‘1BSchalter’

org.eclipse.smarthome.core.items.ItemNotFoundException: Item ‘1BSchalter’ could not be found in the item registry

at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem( ~[?:?]

at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem( ~[?:?]

at org.openhab.ui.basic.internal.render.SwitchRenderer.renderWidget( [bundleFile:?]

at org.openhab.ui.basic.internal.render.PageRenderer.renderWidget( [bundleFile:?]

at org.openhab.ui.basic.internal.render.PageRenderer.processChildren( [bundleFile:?]

That’s just bad syntax for an xxx.items file.
Your openhab.log will be telling you about this at file load/edit time.
Item type Switch not switch.

VSCode editor with openhab extension is another tool to learn, but catches syntax errors like that for you.

Not going to help with your KNX setup though.