OH4 sitemap not accessible

Don’t understand why created new sitemap in old format can’t be accessed ?

http://openhab:8080/basicui/app?sitemap=page_1c21cbfb73

sitemap page_1c21cbfb73 label="Test" {
    Switch item=panasonic_heat_pump_Quiet_mode label="Set Quiet Mode" mappings=[0="OFF", 1="1", 2="2", 3="3"]
}

Couldnt find any clues in documentation… :frowning:

What do you mean with old format?
If it is stored in a file (.sitemap), the sitemap nsme (not label) needs to be the same as the file name (without .sitemap)

I have created sitemap via OH4 Pages meniu, so from where to take its name? It ls confusing form UI view, didnt checked how its named in file system…I thought that sitemap id = name of sitemap…

You need to use the Widget ID which is shown in MainUI (on the Overview “Settings ->Pages” or on the Code tab of the created Sitemap):

http://openhab:8080/basicui/app?sitemap=uicomponents_<widget_id>

Edit: link and text corrected

it doesn’t work…, from user end OH2.5 felt less complex in every way… :frowning: Disappointed with such OH4 experience…

http://openhab:8080/basicui/app?sitemap=uicomponents_page_1c21cbfb73

It works for me, so it should work for you, too.

Did you install Basic UI?

No need to be.
Why did you change from the “old” openHAB 2.x way creating your sitemaps?
You can still use your old config with text file based sitemaps.

ohh, seems forgot it that OH4 installation. Good point, thanks !!! All works now.

1 Like

I’am re-doing all from 2.5 to OH4 and using semantic model, just for fast testing all things with items want to use old style sitemaps. Will rework later in “native” UI.

The people who have the hardest time with OH 3/4 are OH 2 users who skip reading through the Getting Started Tutorial. Even new users have an easier time of it. I strongly recommend if you want to use OH through MainUI that you review the tutorial. It should save you a good deal of frustration in the long run.

Note that if you create a semantic model, a simple UI will be generated automatically.

1 Like

I know that it generates UI, but when you want to create multiple choice buttons you need to use custom widgets. So for me its much easier to “copy-paste” sitemap and use BasicUI for quick test.