openhab / openhab-syno-spk

openHAB Synology SPK Install Package
Eclipse Public License 2.0
161 stars 42 forks source link

No sitemap after upgrade to 2.2.0.010 #124

Closed zuernc closed 6 years ago

zuernc commented 6 years ago

Setup:

Problem:

After upgrading I can't display any sitemap from /volume1/public/openHAB/conf/sitemaps in Basic UI nor Classic UI. Everything used to work like a charm before the upgrade.

I've noticed that in Paper UI: Configuration > Services > Classic UI > configure > Default sitemap it says "_default" which shows me my "things" but not my sitemap. When I change "_default" to the name of my sitemap (home) I get this error message:

Problem accessing /classicui/app. Reason: Server Error Caused by: javax.servlet.ServletException: Sitemap 'home' could not be found [...] Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap 'home' could not be found

When I type "home" into sitemaps in REST API it shows a 404, whereas "_default" gets a working result:

http://localhost:8080/rest/sitemaps/_default?jsoncallback=callback

Any ideas..? Thank you!

zuernc commented 6 years ago

Reinstalled, tried both standard and expert package. The problem remains.

zuernc commented 6 years ago

Solution/Workaround

  1. Installing to public/openHAB: Sitemaps did not show initially, even the ones I setup with Home Builder. Eventually this example worked and I could build on top of it: https://github.com/openhab/openhab1-addons/wiki/Explanation-of-Sitemaps#element-webview

  2. Installing without the use of a public folder to SmartHome/openHAB/ worked right away and as well with my old sitemap.

So I guess my sitemap syntax was the problem. Eh, probably.