Guys, i am to stupid to understand really the mechansim behind visibility and groups Hopefully you can help me out.
i created a group that is filled dynamically within a rule, so that the group only contains alle items where the batteries are empty. That work pretty well. The group ist defined als follows:
Group:Switch:OR(ON, OFF) gEmptyBatteries "Leere Batterien - Bitte prüfen! [%d]" <measure_battery_0> (gManagement)
As far as i understand the [5d] display the number of iten with state ON in this group - Check, is working in the sitemap, number is displayed.
So i assume i should be able to use the number or the state of the group to control visibility. Vey simple - No empty batteries, no display. This should be done with the following lines in the sitemap:
Group item=gEmptyBatteries visibility=[gEmptyBatteries>0]
Group item=gEmptyBatteries visibility=[gEmptyBatteries==ON]
But this did not work Anyone any ideas why? Configuration is Basic UI and OH2 stable