Hello,
In OH 2.5 I vas able to display in a label, the number of active switches inside a group of switches with the following code line inside the .item file Group:Switch:OR(ON, OFF) name_of_grup "label_of_group [%d]"
is it possible to create the same feature with metadata or something other in OH3 enviromet?
I was trying to convert groups with active number of element.
Thanks for tour explanation hmerk, These feature was very usefull for example fast recognition on tamper and reed element on allarm system or know how many light was ON in my home.
I found the way to make it works!
you have to procede these way:
In the semantic model page you have to EDIT the group (location or point or whateber it is) and go to
Group Settings
Members Base Type - None
Aggregation Function - None
and change to
Members Base Type - Switches or Contact or so on
Aggregation Function - One ON then ON else OFF
save changes
then go back to your semantic model and go to the group edited previously and select
Add Metadata
State Description
Pattern
and insert the Label you want to display, for example