Sitemap Doesn't display openhab2

I use OH2 on Windows .I created 2 files demo.items(C:\openhab2\conf\items)and demo.sitemap(C:\openhab2\conf\sitemaps).But when i go to basicUI, It does not show my demo interface and show "It seems like you have not defined any sitemaps yet. To build one, please check the documentation for guidance. ".I don’t know what happened to me, everyone help me
Demo.items:
Switch Light “Light”
Number Temperature “Temperature [%.1f C]”
Demo.sitemap:
sitemap demo label=“Demo Sitemap” {
Frame label=“Control Panel” {
Switch item=Light
}
Frame label=“Monitor Panel” {
Text item=Temperature
}
}

I installed according to https://www.openhab.org/docs/installation/windows.html. I don’t know if I need to do anything else.If I need any additional settings, please tell me

Welcome To the OpenHAB Family .

what does your log say ?
http://openhabip:9001 ?

1 Like

Hi allen. I have just learned about openhab2 so I don’t know. Can you be more specific about that

The name of the sitemap and the filename have to be the same, you used one starting with lowercase “d”.

1 Like

I have changed your way but still not work

have a look at my sitemap.

Testmap.sitemap

sitemap Testmap label="Testmap" {

 Frame label="Player"{
      Text label="Master-Bedroom" icon="bedroom"{
        Default       item=Master_Power      label="Power"
        Default       item=Master_Volume           label="Volume"
        Default item=Master_Mute label="Mute"
        Default item=Master_Control label="Control"
        Default item=Master_CurrentPlaylistRepeat label="Repeat mode"
        Default item=Master_PlayFavorite label="Play a favorite"
        Selection item=Master_Sync label="Sync player" mappings=[0="9c:ad:97:76:70:bd", 1="test"]
        Default item=Master_Unsync label="Un sync player"
        Default item=Master_Title label="Title"
        Default       item=Master_Sourc                      label="Source"
        Default       item=Master_CurrentPlaylistShuffle     label="Shuffle mode"
        Switch       item=Bathroom_Speaker                  label="Bathroom Speaker"
        Switch       item=MainBedroom_Speaker               label="Main Bedroom SPeaker"
  



      }
      Text label="Study" icon="bedroom"{
       Default       item=Study_Power      label="Power"
        Default       item=Study_Volume           label="Volume"
        Default item=Study_Mute label="Mute"
        Default item=Study_Control label="Control"
        Default item=Study_CurrentPlaylistRepeat label="Repeat mode"
        Default item=Study_PlayFavorite label="Play a favorite"
        Selection item=Study_Sync label="Sync player" mappings=[0="b8:27:eb:92:08:a0", 1="test"]
        Default item=Study_Unsync label="Un sync player"
        Default item=Study_Title label="Title"
        Default       item=Study_Sourc                      label="Source"
        Default       item=Study_CurrentPlaylistShuffle     label="Shuffle mode"

        
      }


    }   
   
 
}

Look at the first part. and compare my sitemap to yours. for the layout

1 Like

Hi allen
I just learned about OH2 so I don’t have much experience, can you help me?and show me my mistake.Please
Can you fix 2 demo files for me to run the interface?
If possible, you can give me the Testmap.Items file for me to try on my computer

Hi. I am just on my phone. Will give you all my files. Just send me a private message.

Kind regards / vriendelijke groeten
Allen

Africa AVC

1 Like

Hi allen, I have sent a private message to you, if you receive it please reply to me. I am looking forward to your message.

Have a look in your openhab.log file, you should see messages like

2020-04-24 17:14:19.899 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'

I went to openhab.log and it shows up.I do not know how. can you help me, please

2020-05-05 20:01:45.747 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2020-05-05 20:01:46.627 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.0.106:8080
2020-05-05 20:01:46.630 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.0.106:8443
2020-05-05 20:01:47.504 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2020-05-05 20:01:47.547 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2020-05-05 20:01:47.605 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2020-05-05 20:01:48.535 [INFO ] [roker.internal.EmbeddedBrokerService] - Broker persistence file: mqttembedded.bin
2020-05-05 20:01:49.890 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘localhost’ with clientid embedded-mqtt-broker
2020-05-05 20:01:50.244 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program “arping” (in directory “.”): CreateProcess error=2, The system cannot find the file specified)
2020-05-05 20:01:50.305 [INFO ] [ternal.dhcp.DHCPPacketListenerServer] - DHCP request packet listener online
2020-05-05 20:01:50.520 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program “arping” (in directory “.”): CreateProcess error=2, The system cannot find the file specified)
2020-05-05 20:01:50.616 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:broker
2020-05-05 20:01:50.621 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:topic
2020-05-05 20:01:50.622 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:message
2020-05-05 20:01:50.636 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2020-05-05 20:01:50.636 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘broker’
2020-05-05 20:01:52.789 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79) ~[?:?]
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650) ~[?:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[?:1.8.0_191]
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[?:1.8.0_191]
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[?:1.8.0_191]
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[?:1.8.0_191]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:1.8.0_191]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[?:1.8.0_191]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:1.8.0_191]
at java.net.Socket.connect(Unknown Source) ~[?:1.8.0_191]
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70) ~[?:?]
… 2 more
2020-05-05 20:02:16.593 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: not authorized
2020-05-05 20:13:05.735 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}
io.socket.engineio.client.EngineIOException: websocket error
at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket.access$400(WebSocket.java:24) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket$1$5.run(WebSocket.java:107) [bundleFile:?]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_191]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_191]
at java.net.SocketInputStream.socketRead(Unknown Source) ~[?:1.8.0_191]
at java.net.SocketInputStream.read(Unknown Source) ~[?:1.8.0_191]
at java.net.SocketInputStream.read(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.InputRecord.readFully(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.InputRecord.read(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.AppInputStream.read(Unknown Source) ~[?:1.8.0_191]
at okio.Okio$2.read(Okio.java:139) ~[?:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[?:?]
at okio.RealBufferedSource.request(RealBufferedSource.java:67) ~[?:?]
at okio.RealBufferedSource.require(RealBufferedSource.java:60) ~[?:?]
at okio.RealBufferedSource.readByte(RealBufferedSource.java:73) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:113) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:97) ~[?:?]
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262) ~[?:?]
at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
… 3 more
2020-05-05 20:13:05.742 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 786f0042-b786-4453-b55d-82e42cf73cef, base URL = http://localhost:8080)
2020-05-05 20:14:02.804 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: not authorized
2020-05-05 20:24:30.608 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}
io.socket.engineio.client.EngineIOException: websocket error
at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket.access$400(WebSocket.java:24) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket$1$5.run(WebSocket.java:107) [bundleFile:?]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_191]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_191]
at java.net.SocketInputStream.socketRead(Unknown Source) ~[?:1.8.0_191]
at java.net.SocketInputStream.read(Unknown Source) ~[?:1.8.0_191]
at java.net.SocketInputStream.read(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.InputRecord.readFully(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.InputRecord.read(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.AppInputStream.read(Unknown Source) ~[?:1.8.0_191]
at okio.Okio$2.read(Okio.java:139) ~[?:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[?:?]
at okio.RealBufferedSource.request(RealBufferedSource.java:67) ~[?:?]
at okio.RealBufferedSource.require(RealBufferedSource.java:60) ~[?:?]
at okio.RealBufferedSource.readByte(RealBufferedSource.java:73) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:113) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:97) ~[?:?]
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262) ~[?:?]
at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
… 3 more
2020-05-05 20:24:30.614 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 786f0042-b786-4453-b55d-82e42cf73cef, base URL = http://localhost:8080)
2020-05-05 20:24:47.379 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: not authorized
2020-05-05 20:24:57.386 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]
at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:26) [bundleFile:?]
at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:140) [bundleFile:?]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_191]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_191]
at java.net.SocketInputStream.socketRead(Unknown Source) ~[?:1.8.0_191]
at java.net.SocketInputStream.read(Unknown Source) ~[?:1.8.0_191]
at java.net.SocketInputStream.read(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.InputRecord.readFully(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.InputRecord.read(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.AppInputStream.read(Unknown Source) ~[?:1.8.0_191]
at okio.Okio$2.read(Okio.java:139) ~[?:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[?:?]
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[?:?]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[?:?]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[?:?]
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[?:?]
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[?:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[?:?]
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
… 3 more
2020-05-05 20:24:57.393 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 786f0042-b786-4453-b55d-82e42cf73cef, base URL = http://localhost:8080)
2020-05-05 20:25:31.085 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: not authorized

Alright,

You’ve got a problem with your MQTT broker connection, that doesn’t matter for your sitemap.

You’ve got a problem with your myOpenhab cloud connection, that doesn’t matter for your sitemap.

You’ve shown us no
Loading model 'xxx.sitemap'
mesages, so either they come later in your log, or the filename(s) do not end in .sitemap, or they are in the wrong folder instead of /sitemaps

So, how do I fix it ?. Can you show me, please?

Well, you could further down in your openhab.log to see if there are any messages about your sitemap.

If they are really not there, then you’d need to look to see where you put your file Demo.sitemap, and to check if it is really called Demo.sitemap and not something like Demo.sitemap.txt, which people sometimes manage to do by accident with the editor they have chosen.

Even if it contains rubbish, openHAB would try to load any file of the form xxx.sitemap from your folder /conf/sitemaps and log a message.

I saw the file openhab.log but I did not see the message about the sitemap.
I checked the location of the 2 files demo.items(C:\openhab2\conf\items)and demo.sitemap(C:\openhab2\conf\sitemaps) and no files Demo.sitemap.txt and there is no xxx.sitemap file elsewhere

If you edit the sitemap file and save it, OH reloads it and then you should see at least the message

Loading model 'xxx.sitemap'

which rossko was referring to

Hi Sascha_Billian, I tried your way but still don’t see the message

Strange. Can you show us the content of your sitemap folder? Best would be a screenshot

Are you really, really sure? Windows is quite good at hiding filename extensions by default. Right click and check properties.
There will be a readme.txt file in that folder too, how does that appear?

HI Sascha_Billian. This is my sitemap folder

222