Cannot retrieve item 'LivingRoomStatus' for widget org.eclipse.smarthome.model.sitemap.Switch

Tags: #<Tag:0x00007fe733d3f668> #<Tag:0x00007fe733d3f410>

I’m trying to get miOS binding to work, I have created a item file with the script miosLoad.sh and miosTransform.sh and I put the file in /etc/openhab2/items/.
In /etc/openhab2/services/mios.cfg I added this line "LiBE.host=192.168.5.33 (IP to My Vera Edge)

I created a default.sitemap in /etc/openhab2/sitemaps/
I added this line, Switch item=LivingRoomStatus to default.sitemap file, but it didn’t work, this is how my log looks like.

2017-03-15 07:40:04.443 [INFO ] [ore.internal.i18n.LocaleProviderImpl] - Locale set to se_SE
2017-03-15 07:40:17.255 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'LiBE.items'
2017-03-15 07:40:18.087 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model '._LiBE.items'
2017-03-15 07:40:24.775 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2017-03-15 07:40:26.886 [ERROR] [org.jupnp.transport.Router          ] - Unable to initialize network router: org.jupnp.transport.spi.InitializationException: Could not initialize MulticastReceiverImpl: java.net.BindException: Address already in use (Bind failed)
2017-03-15 07:40:26.887 [ERROR] [org.jupnp.transport.Router          ] - Cause: org.jupnp.transport.spi.InitializationException: Could not initialize MulticastReceiverImpl: java.net.BindException: Address already in use (Bind failed)
2017-03-15 07:40:27.166 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-03-15 07:40:27.496 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-03-15 07:40:27.559 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-03-15 07:40:27.690 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-03-15 07:40:27.873 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-03-15 07:41:22.972 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: io.socket.engineio.client.EngineIOException: websocket error
2017-03-15 07:41:22.978 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 2115f4db-56e6-4627-9858-50d60211b2ae, base URL = http://localhost:8080)
2017-03-15 07:41:52.756 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 2115f4db-56e6-4627-9858-50d60211b2ae, base URL = http://localhost:8080)
2017-03-15 07:44:16.747 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'LivingRoomStatus'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'LivingRoomStatus' could not be found in the item registry
        at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:148)[98:org.eclipse.smarthome.core:0.9.0.b4]
        at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:610)[136:org.eclipse.smarthome.ui:0.9.0.b4]
        at org.eclipse.smarthome.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:57)[176:org.eclipse.smarthome.ui.basic:0.9.0.b4]
        at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:166)[176:org.eclipse.smarthome.ui.basic:0.9.0.b4]
        at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:128)[176:org.eclipse.smarthome.ui.basic:0.9.0.b4]
        at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:149)[176:org.eclipse.smarthome.ui.basic:0.9.0.b4]
        at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:92)[176:org.eclipse.smarthome.ui.basic:0.9.0.b4]
        at org.eclipse.smarthome.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:150)[176:org.eclipse.smarthome.ui.basic:0.9.0.b4]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[79:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[81:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[80:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[72:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-03-15 07:44:16.760 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'LivingRoomStatus' for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.762 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.764 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.765 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.767 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'LivingRoomStatus' for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.771 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'LivingRoomStatus' for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.773 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'LivingRoomStatus' for widget org.eclipse.smarthome.model.sitemap.Switch
2017-03-15 07:44:16.775 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.777 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.778 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.781 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.782 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.787 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.789 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.790 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Multimedia_Summary' for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.791 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Multimedia_Summary' for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:44:16.793 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Multimedia_Summary' for widget org.eclipse.smarthome.model.sitemap.Text
2017-03-15 07:47:11.982 [INFO ] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/LivingRoomStatus' for the unknown item 'LivingRoomStatus'.

Here’s how my item file looks like for that device

/* Device - Floor Living Room */
Number   FloorLivingRoomId "ID [%d]" (GDevices) {mios="unit:LiBE,device:126/id"}
String   FloorLivingRoomDeviceStatus "Floor Living Room Device Status [MAP(miosDeviceStatusUI.map):%s]" (GDevices) {mios="unit:LiBE,device:126/status"}
Number   FloorLivingRoomConfigured "Floor Living Room Configured [%d]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/Configured"}
String   FloorLivingRoomModeSetting "Floor Living Room Mode Setting [%s]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/ModeSetting"}
DateTime FloorLivingRoomLastUpdate "Floor Living Room Last Update [%1$ta, %1$tm/%1$te %1$tR]" <calendar> (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/LastUpdate"}
DateTime FloorLivingRoomFirstConfigured "Floor Living Room First Configured [%1$ta, %1$tm/%1$te %1$tR]" <calendar> (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/FirstConfigured"}
String   FloorLivingRoomChildrenSameRoom "Floor Living Room Children Same Room [%s]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/ChildrenSameRoom"}
Number   FloorLivingRoomTarget "Floor Living Room Target [%d]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/SwitchPower1/Target"}
Switch   FloorLivingRoomStatus "Floor Living Room Status" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/SwitchPower1/Status"}
Number   FloorLivingRoomWatts "Floor Living Room Watts [%.1f W]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/EnergyMetering1/Watts"}
String   FloorLivingRoomLog "Floor Living Room Log [%s]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/EnergyMetering1/Log"}
String   FloorLivingRoomActualUsage "Floor Living Room Actual Usage [%s]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/EnergyMetering1/ActualUsage"}
Number   FloorLivingRoomKWH "Floor Living Room kWh [%.1f kWh]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/EnergyMetering1/KWH"}
DateTime FloorLivingRoomKWHReading "Floor Living Room kWh Reading [%1$ta, %1$tm/%1$te %1$tR]" <calendar> (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/EnergyMetering1/KWHReading"}
Number   FloorLivingRoomPollRatings "Floor Living Room Poll Ratings [%.4f]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/PollRatings"}
DateTime FloorLivingRoomLastPollSuccess "Floor Living Room Last Poll Success [%1$ta, %1$tm/%1$te %1$tR]" <calendar> (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/ZWaveNetwork1/LastPollSuccess"}
Number   FloorLivingRoomConsecutivePollFails "Floor Living Room Consecutive Poll Fails [%d]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/ZWaveNetwork1/ConsecutivePollFails"}
Number   FloorLivingRoomCommFailure "Floor Living Room Comms Failure [%d]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/CommFailure"}
DateTime FloorLivingRoomCommFailureTime "Floor Living Room Comms Failure Time [%1$ta, %1$tm/%1$te %1$tR]" <calendar> (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/CommFailureTime"}
String   FloorLivingRoomAutoConfigure "Floor Living Room FIXME AutoConfigure [%s]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/AutoConfigure"}
String   FloorLivingRoomCommFailureAlarm "Floor Living Room Comms Failure Alarm [%s]" (GDevices,GRoom2) {mios="unit:LiBE,device:126/service/HaDevice1/CommFailureAlarm"}

LiBE is the name of the miOS binding I did, in mios.cfg and for the script to download and create the item list.

You don’t have an item with the name LivingRoomStatus in your items file.
I guess you wanted FloorLivingRoomStatus ?

1 Like

Oh my, now I feel really dumb.
I renamed the devices in my Vera but I didn’t change in the sitemap.

Many thanx, it’s working now. So now it’s time to start to build sitemap as I want it.

2 Likes