Hero Attribute Tile: Icon Only Display (None for Primary Attribute)

The states need to be lowercase to match the raw state from Hubitat/SmartThings.

image

This is referring to wanting to only display an icon in as the main content and not display a primary attribute at all. When a tile is configure with an icon, you see the icon and the primary attribute.

image

From what I understand, kampto is looking for a ‘None’ option for the primary attribute, so you would see only the icon.

image

image

Today, you would have to use some Custom CSS to accomplish this. Maybe something like:

/* Hide the 'value' for Hero Attribute Tiles that use 'switch' as the primary attribute */
.tile.hero-attribute [data-attribute="switch"] .value { display: none }
/* Fix the margin of the icon so it's centered */
.tile.hero-attribute [data-attribute="switch"] svg { margin: initial!important }

As usual, any CSS snippets provided are not officially supported and may have to be tweaked with future updates to the SharpTools web app. :slight_smile: