Group item=bathroom label=“Bathroom” icon=“bathroom” visibility=[batroom_ocupacy==OFF, batroom_ocupacy==“Uninitialized”] {
Frame{
Content
}}
Group item=bathroom label=“Bathroom in use” icon=“bathroominuse” visibility=[batroom_ocupacy==ON] {
Frame{
Content
}}
Were bathroom is group item and “bathroominuse” is one icon and “bathroom” is other icon have to have them in images directory. And batroom_ocupacy is other item from him depends what will see in openhab.
May be have better way to do this but i test only this way, and work good.
I think if add some binding in group item may use 2 icons
icon-on.png and icon-off.png
and in sitemap "Group item=item label=“label” icon=“icon”
This have to output icon-on.png when item state is ON and icon-off.png when item state is OFF
This is not tested if somebody have time to test it, please give us feedback.