I noticed that the battery percentage of pir sensors is displayed instead of the tile template name (by unchecking the "hide tile template names" option) while on contact sensors the percentage is correctly displayed in a separate div (tile-tertiary).
Is it possible to solve the problem or does it depend on something else?
I (or someone else) would need to look at the HTML involved... but I expect the "hiding" might include unwanted elements like you are observing.. There will likely be options available to avoid this, but we will need to look at it some more (hopefully others will chime in ahead of me )
@velvetfoot - The next steps I would suggest, if you want to, would be to look at the developer tools (F12 in Chrome) to understand the Elements presented and their classes.
Sounds like you are on the way to some custom CSS to achieve what you need, along with a built-in fix. I can provide some more detail on the Custom CSS later if you need it (if no-one else chimes in before me).