I am running OpenHAB 4.2.2 on a Raspberry Pi 5 with Raspbian “Bookworm”.
I have noticed that since the upgrade from 4.1, every time I add, remove or edit any item in MainUI’s Model tree, the whole tree collapses. Even when I switch on or off the checkbox “Show non-semantic items”, the tree collapses.
This didn’t happen in previous versions, and it is pretty frustrating especially when editing lots of items, for example because a thing has been changed and multiple points of an equipments have to be unlinked from the old thing and re-linked to the new thing. For e.g. four points I have to expand the tree eight (8!) times, each times expanding three levels of locations and the equipment.
I beleive an issue has already been opened for this.
In the mean time:
If the old Thing still exists navigate to it → Channels and click “Unlink all Items” at the bottom. Then navigate to the new Thing and link those Channels one-by-one to the Items.
Personally, I’d choose “Unline and delete Items” and then on the new Thing choose “Add equipment to model” to recreate the Item with their links all in one go. But there may be reasons you don’t want to recreate the Items.
If you’ve already deleted the Thing, next time make sure to unlink the Thing from the Items first.
Alternatively you can navigate to Items and open the Equipment Group Item’s page. From there you can navigate to all the member Items and click “add link” on each individual Item’s page, bypassing the Model view.
Alternatively you can search for the Items and pin them in the developer sidebar (alt-shift-d) to navigate to the Items and click “add link” from there.
Using the Model view is not the only and often not even the best way to do this.
Wow, thanks for pointing out all the workarounds. I usually do most stuff through the Model, maybe I should reconsider some workflows.
For unlinking the items of a deleted thing luckily there is a Health check now that also allows to purge all orphan links in one go. When that feature was first introduced I had a few hundreds of those.