Hi to Everybody,
I´m working with openHAB2 for some weeks now, and for me it is a very powerful system.
There are some points, where I need some ideas how to proceed. The following example is used to show all Homematic devices which are battery powered. I added these devices to a group (gBatt). So I can react with some rules if any of these devices run out of power supply.
Group:Switch:OR(ON,OFF) gBatt "Status Batterie" Switch Wohnzimmer_T1_Bat "Wohnzimmer Tür1" <hm_batt> (gBatt) Switch Wohnzimmer_T2_Bat "Wohnzimmer Tür2" <hm_batt> (gBatt)
I also want to have a list in my sitemap containing these battery items. To be more flexible, I put the group into the sitemap, not the items themselves. So I can add more devices without changing the sitemap.
Group item=gBatt icon="hm_batt"
This solution seems to work (never got the out of power state until now). But the sitemap shows the swichable icon on the right side of the shown item. If I put the items manually to the sitemap, I can change the type to “Text” instead of “Switch”. But the Group item always comes with the “Switch” type. If I change the items to “String” instead of “Switch” inside the item file, it is not working because the channel comes with the “Switch” type.
What can I do to hide the switch icon or how can I cast the switch type to an text type?
Would be very nice, if someone of you can point me into the right direction.
Thanks a lot.