I prepared some items in *.items … with Type, Text, Icon, Channel …
When adding to sitemap i have different options: default item=xxx or e.g. Switch item=xxx
When adding mappings=[] I have to add the label parameter to get rid of error messages in logfile and have to enter there the same text as in items defined. Why?
I think the items-file is for preset all items with all properties and using them at any position in a sitemap as i want - by now, i have to copy the same line out of sitemap and use it anywhere else in the same file.
But if i want to change something, may be the formatting string, then i have to change a lot of lines where this item appears.
Is there a trick to add a item like this: Default item=xxx mappings=[0=“closed”]
Regards
PS:
I figured something out: My item is defined as Rollershutter in items, but in sitemaps i have to use Switch instead to get it working with Switch item=xx mappings="[…]".
If i am using Default or Rollershutter instead, it doesn’t work.
Why?
Where can I find some informations about that? In the documentations is nothing to found.
In general, you can specify a label in your Item definition. This label may or not have state formatting details (including transformation) in square brackets
Optionally, you can specify a label in your sitemap widget. If given, this overrides the label in the Item definition.
Yes.
The widget type you choose to use in a sitemap is NOT directly related to the Item type that you choose to use it with. You can use a Switch widget with a String type Item.
Not all widgets offer the same features, that’s why they are different widgets.