I have been using openHAB for quite a few years now, and am slowly trying to “move over to” / use the new semantic model in OH3. I have a question regarding “Adding equipment from things”.
I have many things with many already existing items (some things were created in the UI, some via config files, some items in those things were created using config files, some in the UI).
When I am in the “Model” configuration, and want to add an equipment from a thing, it looks like the existing channels/items cannot be used. What I did so far was removing/deleting the “old” items and then creating them fresh when adding the equipment. Is that the correct way? Or is there a way that I haven’t found to use the existing linked items/channels?
It’s not necessarily correct nor incorrect. I find it to be the fastest and easiest way to do it though, especially if you have Items in .items files.
The model is created through the Item definition, namely Group membership and tags. If you have Items defined in .items files, that means you need to change the Item’s tags and Group membership yourself manually in the .items file. You can do nothing to these Items through the UI.
I’m still not sure if I’m doing things “correctly” or better if I have understood correctly.
I do home some items in files, but I also have some new items for things that were set up in the UI, but before I started using the semantic model.
For example, I have an IKEA zigbee lightbulb, with a dimmer item attached to the dimmer channel of the lightbulb thing. Now, when I want to add the lightbulb to my model, I go to the location where that device/equipment group is supposed to be added to, I select “Add equipment from thing” and then I search for the existing thing.
I then select the channels that I want. In that view, as far as I can see it, there doesn’t seem to be a way to select already existing items. When selecting the channel and than pressing “Add to model”, I new item for the same channel is created:
What I thought might be possible to add the thing as an equipment and not select any channels, and afterwards go into the existing item and add it to that new group, but openHAB doesn’t allow me to do that.
So right now it seems like I have to delete the “old” thing from openHAB, even if it was created in OH3 with the new UI, and then create it again in the semantic model UI? Is that correct?
Not the whole but parts of it. Add equipement from thing is a helper to let you select up to all channels to add to an equipment. If you want to create an equipment without any items, just use "Create equipment.
In items settings, you can change the parent group membership at any time.
I would recommend to watch our youtube video about the semantic concept
I do think that so far haven’t understood the whole semantic model concept. I just learned that I can just create points outside of an equipment group and then add channels to that point. Which is cool.
I guess I just have to play around with it a lot more.
So far for every device, like every light bulb, I would create an equipment and then add usually just one on/off switch point… I guess most of those equipments I don’t even need as it adds more layers than I really need. A lot to learn I still have
One more thing… So far I added my rollershutter open/close channels/items to a rollershutter equipment group. And created one of those equipment groups with just one control channel in each room of my house.
Now when I move that point/item out of the rollershutter group into the room location itself, it looks like that rollershutter item/point is not recognized as such in “Devices” in the UI anymore, and also the room itself isn’t shown in the “Locations” tab in the UI anymore if the rollershutter control point is the only one in the room.
What am I missing? I can’t switch the rollershutter item to “Rollershutter” or “Blinds” instead of “Point”. Not sure what I am missing here.