I read the article “Design Pattern: Working with Groups in Rules” - it’s very interesting.
If have a Switch Group with some Switch items. In then Startup rule I want create for every Switch in this group a Number Item. At the Shutdown I’ll delete this Number Items.
Motions_Counter.members.forEach [ _Counter |
Motions_Counter.removeMember(_Counter)
]
Motions.allMembers.forEach [ _Motion |
Motions_Counter.addMember ( new NumberItem(_Motion.name+"_Counter") )
]
Motions_Counter.members.forEach [ _Counter |
_Counter.postUpdate(0)
]
I receive then following error message, if I’ll display then Group Motions_Counter in the sitemap
2018-05-29 21:03:27.092 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.097 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Motions_BadUG_Counter’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.103 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Motions_BadUG_Counter’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.106 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Motions_BadUG_Counter’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.110 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.114 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Motions_KorridorEG_Eingang_Counter’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.119 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Motions_KorridorEG_Eingang_Counter’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-29 21:03:27.123 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Motions_KorridorEG_Eingang_Counter’ for widget org.eclipse.smarthome.model.sitemap.Text