Hi,
I have a question about the naming of items.
I would like to assign different names and icons to an item, is this only possible by creating another item with “Things → Add Link to Item” or are there other possibilities?
My intention is the following I have several groups (Icon) like Location_Home (house), Home_Door (door), Home_Window (window) and Home_Bath (bath), Home_Bath_Door (door), Home_Bath_Window (window). In Home_Door and Home_Window are respectively all doors and windows of the whole apartment and in Home_Bath_Door, Home_Bath_Window only from the bathroom.
Now let’s do a mental game: I go into the house (Location_Home) and have the possibility to look at all windows (Home_Window) or all properties that the bathroom (Home_Bath) has. First, I want to go to the bathroom and look at the properties of the window (Home_Bath_Window). Now I see the state, if it is open or not ItemName: Bath_Window_State_Contact ItemLabel: State ItemIcon: window. Then I go back to the beginning (Home) and now I want to look at all windows (Home_Window), if I use the same item, I see several ItemLabel: State ItemIcon: window, because they are all configured that way, in the view that I enter the rooms first. But now I want to distinguish faster which window belongs to which room, for this I create a new item via “Things → Add Link to Item” ItemName: Window_State_Contact _Bath ItemLabel: Bath ItemIcon: window (dynamic) or bath. For me it wouldn’t make sense to rename the item (Bath_Window_State_Contact) e.g. to “Bath State”, “Bath Window”, “Bath Window State”, because I know that I’m in the bath and that I’m looking at the window, then I don’t need double labels.
Now I want to configure the Semantic Model in OH3 (or I use OH4 Snapshot). If I assign all items to rooms only, it works without problems. Now I want to configure the equipment (Home_Window (Semantic Class: Window)) in the location Home (Location_Home). If I use the item (Bath_Window_State_Contact (Semantic Class: OpenState)) it disappears from the overview of Home_Bath_Window (Semantic Class: Window). I could now use the newly created item (Window_State_Contact _Bath (Semantic Class: OpenState)) but is the window in the tab: Equipment → Windows (Overview Page) duplicated.
My goal is that in the Location Overview (Image: 2 (Location)) at Home (Location_Home) also the icon (red circle) shows how many windows are open in the whole apartment.
The images in the attachment have the following configuration that start with 1: Item (Bath_Window_State_Contact) assigned only in the bathroom (Home_Bath_Window) and 2: also in Home (Home_Window)
Image: 1 (Model) / 1 (Location)
Image: 1 (Location_Bath) / 1 (Location_Home)
Image: 1 (Equipment Windows)
Image: 2 (Model) / 2 (Location)
Image: 2 (Location_Bath) / 2 (Location_Home)
Image: 2 (Equipment Windows)