Mapping sitemap items

I started mapping items in my sitemap to improve the look. I was trying it with my alarm system sensors, which are all contacts. In the sitemap I list them as switches, since contacts didn’t seem to work. When I map them the sitemap shows the buttons I mapped but also shows the text (open or closed). Is there away to eliminate the text and just show the buttons?

What are your Item definitions and sitemap lines?

In general eliminate the square bracket part of the label with %s (or some other %) in it and the Item’s state will not be part of the label.

Thanks Rich. That fixed it for me.