Groups in sitemap after OH 2.1 upgrade not working anymore

I had been using groups keyword without a group item to structure my sitemap. This approach does not work anymore with OH 2.1
If I use the following code in OH 2.1 i get the following error message

20:26:21.042 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘default.sitemap’ has errors, therefore ignoring it: [15,26]: rule ruleGroup failed predicate: {getUnorderedGroupHelper().canLeave(grammarAccess.getGroupAccess().getUnorderedGroup_1())}?

20:26:21.055 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘default.sitemap’ has errors, therefore ignoring it: [15,26]: rule ruleGroup failed predicate: {getUnorderedGroupHelper().canLeave(grammarAccess.getGroupAccess().getUnorderedGroup_1())}?

sitemap default label="Hauptmenue"
{
	Group label=Wohnzimmer {
		Text item=Esszimmer_Temperatur_Eingang		
		Text item=Esszimmer_Temperatur_Terasse		
		Slider item=L_Kueche switchSupport		
		Slider item=L_Wohnzimmer switchSupport		
		Slider item=L_Wand_Wohnzimmer switchSupport		
		Slider item=L_Wand_Esszimmer switchSupport		
		Switch item=L_Essen	
	}
	Group label=Treppenhaus {
		Switch item=Licht_Garderobe
		Switch item=L_Flur_EG
		Switch item=L_Flur_OG
	}
}

See this topic:

https://community.openhab.org/t/latest-snapshot-doesnt-allow-group-without-item/21929

Using Text rather than Group should solve this problem.

2 Likes

Thanks! That solved the problem.