Issue with "Group Type and State"

Hi

I have tried to follow the Configurations Guide regarding “Group Type and State” unfortunately with very limited luck

For testing purposes I have created a .item file containing this

Group gvSwitch	

Switch	vSwitch1	(gvSwitch)
Switch	vSwitch2	(gvSwitch)

And I have created a .sitemap containing this

sitemap testsitemap label="TestSitemap" {

   	
   Frame label="vSwitch" {
       Switch item=vSwitch1    
       Switch item=vSwitch2

   }

   Frame label="GroupSwitch" {
   	Group item=gvSwitch label="light" icon=light
   }
   
}

The above part is working, but when i add the following :
"Group:Switch:OR(ON,OFF) gvSwitch “Active Lights [%d]” "
(found in the guide), nothings working anymore

sitemap testsitemap label="TestSitemap" {

   	
   Frame label="vSwitch" {
       Switch item=vSwitch1    
       Switch item=vSwitch2

   }

   Frame label="GroupSwitch" {
   	Group item=gvSwitch label="lys" icon=light
   }
   
   Group:Switch:OR(ON,OFF)  gvSwitch       "Active Lights [%d]"             
}
 

And i get this error in the openhab.log file

2018-10-21 08:21:53.562 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'testsitemap.sitemap' has errors, therefore ignoring it: [14,7]: required (...)+ loop did not match anything at input ':'
[14,14]: required (...)+ loop did not match anything at input ':'

I really cant figure out what the issue is ??

Br Lars

Yes,

You need to modify the items file, not the sitemap:

items:

Group:Switch:OR(ON,OFF) gvSwitch "Active Lights [%s]"
Switch	vSwitch1	(gvSwitch)
Switch	vSwitch2	(gvSwitch)

Sitemap:

sitemap testsitemap label="TestSitemap" {

    Frame label="vSwitch" {
         Switch item=vSwitch1    
         Switch item=vSwitch2
    }
    Frame label="GroupSwitch" {
        Group item=gvSwitch icon=light
    }
}

Stupid me :persevere:

Thank you Vincent