Item Alias

Can I create Item aliases? Let’s say I have 10 door-contacts on different rooms/groups, and I label them all as ‘Door’.

So: I have a ‘Door’ (Item) inside the ‘Kitchen’ (Group), and a different ‘Door’ (Item) inside the ‘Garage’ (Group), and so on…

So far so good. Now let’s say I want to create an ‘All Doors’ (Group), can I create aliases so each door doesn’t have the same generic ‘Door’ label?

I’m trying to avoid duplicating all these Items or having obvious/repetitive labels like ‘Kitchen Door’ inside a ‘Kitchen Room’.

What is your purpose?

The items should all have different names…
You can create a different label in the sitemap that will override the label in the item definition

But there are no such things as aliases

Just for clarity, what you seem to be asking for is an alternative label text, not an Item name alias.

You can assign a default label in the Item definition. Smart folk would make that the ‘long’ explanatory version.

Contact K_Door "West Wing Kitchen Door [%s]" (gKitchen) <dooricon> {binding}

If you want to display a different label in a sitemap, and override the default Item label, you can.

Text item=gKitchen {
    Text item=k_Door label="Door"
    Text item=kichenContact93 label="Big window"
}
1 Like

Thanks guys. Yes I’m talking about ‘Labels’ only. But I think I may be doing something wrong because if I specify a custom-label Text inside the sitemap I’m unable to see the rest of the items within the group.

Sitemap

	Frame label="Ground Floor" icon="groundfloor" {
		Group item=GF_Kitchen {
			Text item=GF_Kitchen_Door label="Door"
		}
		Group item=GF_Dining
		...

Items
Contact GF_Kitchen_Door “Kitchen Door [%s]” (GF_Kitchen)
Switch GF_Kitchen_Light “Light” (GF_Kitchen)
Switch

But the ‘GF_Kitchen’ Group only shows the ‘Door’ Item (not the Light etc…).

Using Groups directly in sitemaps is really just a quick fix to get something working. It offers you no control over presentation at all - like order of Items, miss one out - or as you want, labeling tweaks.

Move on from using Groups for ‘popouts’ when fine tuning sitemaps. It is more work to list individual Items, but you have more control. You can still use a Group for a one-line presentation, but use { } to get the “click for sublisting” effect

	Frame label="Ground Floor" icon="groundfloor" {
		Group item=GF_Kitchen {
			Text item=GF_Kitchen_Door label="Door"
			Switch item=GF_Kitchen_light
			Text item=GF_Kitchen_Window label="Window"
		}
		Group item=GF_Dining
		...

Thanks @rossko57, I’ve updated the Sitemaps accordingly.

Please mark the thread as solved, thanks