Something seems amiss then. I have a sitemap showing in HABmin called “Home” that I most certainly did not create…it seems to contain a list of all Things available. It only shows up in HABmin.
That said, it seems a bit odd to me that everything in OH2 is stored in the db and created dynamically except sitemaps. I feel like that’s a poor choice as it’s inconsistent.
Maybe it’s not listed in the other UIs - I don’t know. However, it works fine with the other UIs if you manually type ?sitemap=_default on the end of the URL (at least, it does here).
Only things/items are stored in the DB - other information like rules aren’t…
Not really - it’s just that this hasn’t been migrated/enhanced yet so it’s still the OH1 implementation. That said, if it gets stored in a text file, that would be fine with me - I don’t think the underlying storage is an issue, it just needs to be fit for purpose?
I guess my beef isn’t so much that they’re stored in files…but that the only way to edit them is directly edit the files (there is no UI). Heck, I’m more than technically competent and I find it to be a pain…I can imagine how much trickier it is for people with less technical experience (though I’m sure some people prefer that). I just find it annoying to have to ssh into my hub every time I want to make a change.
I completely agree - that’s why I originally wrote HABmin - not because I wasn’t capable of editing a file, but it’s (often) easier and less error prone to use a GUI (although a good old text editor has some benefits at times)…
I guess the point though is simply that an API for editing Sitemaps has not yet been developed - it’s not that it won’t be developed. There is some discussion on the ESH forum, but everything takes time, and Sitemaps are one of the last things on the hitlist. Until then, we’re stuck with the OH1 files…
How hard do you think it would be to have a file editor for those items in HABmin? Would be a handy solution in the meantime (I’d offer to help, as I’m a web dev, but haven’t touched Java in years and don’t have the time to dig into it atm).
For HABmin-2, I was trying to avoid developing my own interfaces where an ‘approved’ interface was going to be developed - which is why I didn’t support the drag-n-drop sitemap interface I have in HABmin-1.
I guess it would be a couple of hours work to do something like this - but it’s still time I’d need to find… Of course, if you fancy giving it a go I’d be happy to point you in the right direction .
Chris, where is this _default sitemap stored? I’ve looked all over the file system and can’t find it. I’ve created a new one in /etc/openhab2/sitemaps which works OK for me, but the original _default map now has errors in it that I’d like to fix.
A new default sitemap provider is in place, which provides a dynamic sitemap with the name _default, which lists all group items that are not contained within any other group
Which one could read as: there will always be a default, which you can not change, that will show “ungrouped” items.
I’ve successfully set the Default Sitemap under Paper UI to my custom sitemap. That mechanism is working correctly. However, I still see the built-in “Home” sitemap in the list of sitemaps under Paper UI. Also, using habdroid, there is an entry “_default” when I go to select the habdroid default sitemap. All of my items are assigned to groups, so there should be nothing to auto generate in the openhab2 sitemap provider. Is it possible to completely remove Home (_default)?
Why should there be an update? Sitemaps are built through text files, there is no plan to change this functionality.
Of course, you could go with another UI like HABpanel or CometVisu, but these do not use sitemaps, sitemaps are used for Classic/Basic UI and Habdroid/openHAB for iOS.
Yes, but you can’t edit this sitemap, this is no sitemap to use in real life, e.g. you can’t see any state in text widgets, because there is no label defined…
carloszacu
(Carlos Andres Zapata Cuervo (El Loco))
24
I had a sitemap of my own, but then I added a couple more switches and they were created on the _default.sitemap; what tha hell is going oooon, please help!