It is really frustrating, I am now trying since 2 days to run openhab2 and it’s just not. It was hard to find out for me that stuff is saved in files and in a database.
Well, now I would like to continue to configure everything by files and started with a really simple sitemap
(never hurts to try something from scratch)
It’s also good practice to use the same name for the sitemap as well as for the filename
Also: careful not to have spaces or tabs after item=
Thanks for help, and yes best is to try something simple first, but also this one is not working. I am thinking about to delete openhab2 and install it again in expert mode. The answer is still:
I took a fresh openhab2 in expert mode and now it works. I have no idea what was the problem. Just took the example of yours. Too late now to check the log. Thanks for help.
It is more than just good practice. There will be errors and warnings in the logs if you don’t and some things may not work, in particular navigating subframes.
I’ve got the same problem
installed openhabian al ready 4 times created al the files and when I tried to change them I get always the same bullshit " no sitemaps available " and the files are there.
I think I’m gonna instal openhab 1.8 again that seems to work
I hope they gonna fix this bug also tried 2.2, the same:frowning_face:
But are they valid? Are there errors in the logs complaining about not being able to parse the .sitemap file?
Given the hundreds if not thousands of users who are successfully using 2.2 snapshot we will need more evidence before this can be called a bug versus a problem with the docs or a mistake made during setup.
I’m fairly new to openhab. In the begining it al work but them i wanted to cumise the sitemap and the throuble started. How do i call up the logs. Everytime i tried i got no permission. And why is it working the first time and after everyclean install i doenst. There was an instal i had 4 sitemaps and non of them where recognised. What am i doing wrong. Must assign the naam of the map in the paper ui and than create them??
I getting frustrated
That’s honestly the worst thing you can do. SO much changed to the better since back then. Don’t sacrifice this because of maybe one syntax error.
It should be pretty easy. Okay here we go:
First remove the Default Sitemap setting from inside Paper UI. From now on Basic UI will ask you which Sitemap you want to open. You’ll see all sitemaps without syntax errors.
Next let’s create a very simple one to see, that your setup works. Add the file /etc/openhab2/sitemaps/test.sitemap (see below) with the following content:
sitemap test label="My testing sitemap" {
Frame label="Test" {
Text label="I am a test item"
}
}
You should see the “test” sitemap pop up under available sitemaps.
You can either access the SSH console of the system to work in a Linux editor like vim or nano, that’s not easy for Linux newbies. It’s often easier to mount the provided network share \\openhabianpi\openHAB-share as a drive letter on your system. Here’s a tutorial for windows: https://www.laptopmag.com/articles/map-network-drive-windows-10
From here on out you should be able to extend and rename the test sitemap to the point where everything works as you expect it to.
javax.servlet.ServletException: Sitemap ‘test’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:169)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘test’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:130)
… 21 more
Caused by:
org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘test’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:130)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Hey
Sorry for my French “but I don’t use f***ing windbloz” but its a nececery evil
I work with a Mac a around for more 20 years
I know a lot has changed but I know my way around the terminal (or at least I trie) this is the first time I work with pi
So cut me some slak
I’ m trying to get some home automation to for my home (as a hobby) and I red that openhab is the best???
So I’m trying to get erverything working, but I just keep on hitting a brick wall ( my head hurts)
Relax friend. I could have simply said “edit the file”. I wanted to give some additional hints and as you didn’t state your environment and experience, I went with the basics.
Frustration shouldn’t be part of the process. Just take one step after the other. It seems pretty obvious, that you just have syntax errors in your sitemap.
Maybe it’s helpful to look at the example given here: http://docs.openhab.org/configuration/sitemaps.html#full-example