Having debugged and read documentation now for hours during day and night, I don’t seem to get it and need help.
I do not get the binding to make a single switch work (Switch in BasicUI/Sitemap has no effect). My Synology-SPK-based KNX 1.9 configuration worked fine with nearly 100 items. But I bought an RPi3B+ with openHabian to go KNX 2.0, since I am planning major works, and the openHAB SPK was updated last in January - So I would be updating a configuration with limited perspective, and I am not fit enough to setup a full Synology-CHRoot-environment by hand.
So here’s my simple configuration based on the KNX binding documentation full example, written in VS Code with openHAB extension:
(Commented entries are variants or extensions I have tried so far, I use “#” to anonymize specific addresses here in public)
I understand that no service configuration (knx.cfg) is required.
knx.things
Bridge knx:ip:bridge // "KNX IP Gateway" @ "KNX"
[
type="TUNNEL",
ipAddress= "192.168.178.#", // "224.0.23.12",
portNumber=3671,
localIp="192.168.178.#",
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=1,
localSourceAddr="15.15.255" //"13.7.255" // "#.#.#"
]
{
Thing device generic // "Generisches Gerät" @ "KNX"
[
// address="#.#.#",
// fetch=true,
// pingInterval=300,
// readInterval=3600
]
{
Type switch : L_ArZ_D "Licht Arbeitszimmer Decke" [ ga="<#/#/#" ]
}
}
knx.items:
ItemType L_ArZ_D "Arbeitszimmer Decke" <light> { channel="knx:device:bridge:generic:L_ArZ_D" }
haus.sitemap:
sitemap haus label="KNX Hauselektrik"
{
Frame label="Test"
{
Switch item=L_ArZ_D
}
}
This is the respective part of the log viewer (tail -F /var/log/openhab2/openhab.log /var/log/openhab2/events.log)
2018-05-20 21:37:41.154 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'knx.items'
2018-05-20 21:37:57.819 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'knx.things'
2018-05-20 21:37:57.828 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'knx.things' is either empty or cannot be parsed correctly!
2018-05-20 21:37:57.886 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'knx.things'
2018-05-20 21:38:06.047 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'haus.sitemap'
2018-05-20 21:38:06.131 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'haus.sitemap'
2018-05-20 21:38:06.329 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'L_ArZ_D'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'L_ArZ_D' could not be found in the item registry
at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:70) [109:org.eclipse.smarthome.core:0.10.0.b1]
at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:724) [155:org.eclipse.smarthome.ui:0.10.0.b1]
at org.eclipse.smarthome.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:55) [217:org.eclipse.smarthome.ui.basic:0.10.0.b1]
at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:172) [217:org.eclipse.smarthome.ui.basic:0.10.0.b1]
at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:137) [217:org.eclipse.smarthome.ui.basic:0.10.0.b1]
at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:158) [217:org.eclipse.smarthome.ui.basic:0.10.0.b1]
at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:100) [217:org.eclipse.smarthome.ui.basic:0.10.0.b1]
at org.eclipse.smarthome.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:159) [217:org.eclipse.smarthome.ui.basic:0.10.0.b1]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [85:org.eclipse.jetty.security:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.Server.handle(Server.java:534) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [79:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [79:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [79:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at java.lang.Thread.run(Thread.java:748) [?:?]
2018-05-20 21:38:06.334 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'L_ArZ_D' for widget org.eclipse.smarthome.model.sitemap.Switch
2018-05-20 21:38:06.336 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2018-05-20 21:38:06.338 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'L_ArZ_D' for widget org.eclipse.smarthome.model.sitemap.Switch
2018-05-20 21:38:06.341 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'L_ArZ_D' for widget org.eclipse.smarthome.model.sitemap.Switch
2018-05-20 21:38:06.343 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'L_ArZ_D' for widget org.eclipse.smarthome.model.sitemap.Switch