KNX-Connect to openHAB2

Hi,

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:192.168.0.6 3/0/0 1

192.168.0.6 is static ip of raspi. If I do with the multicast address it does not.

[11:40:04] openhabian@home:~$ sudo knxtool groupswrite ip:224.0.23.12 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="224.0.23.12" ,
//    localSourceAddr="0.0.0",
//    localIp="192.168.0.6"
    type="TUNNEL", 
    ipAddress="192.168.0.62" ,
    portNumber=3671, 
    localSourceAddr="0.0.0",
    localIp="192.168.0.6",
    autoReconnectPeriod=1
] 
{
    Thing device generic [
//	fetch=true,
	pingInterval=300,
	readInterval=0
    ] {
        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(ItemRegistryImpl.java:85) ~[?:?]

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

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

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

at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160) [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.