Home Assistant lets you use any MDI icon, but not every icon has an -off variant. As a result, a device may already be off while its icon still looks active. This plugin automatically adds an MDI-style slash to inactive entities when no native off icon is available.
The plugin is designed so that the added slash looks like a native part of Home Assistant:
works with standard Tile cards without replacing them, preserving their native appearance, behavior, colors, sizes, and interactions;
modifies only icons that have already been rendered and only when no native -off variant is available;
does not change entity states or interfere with device operation.
There’s a reason some icons don’t have a circular background, they are the ones with no icon tap action. This is a visual cue for the user and should not be overridden.
It looks like there’s a config option to control this. From the installation instructions:
If Home Assistant already renders the native inactive-icon background, the plugin leaves it unchanged.
When that background is missing, the plugin adds a faint circle matching the standard inactive Tile icon styling in Home Assistant, keeping icon presentation consistent.
Disable it:
{
"faint_background_when_missing": false
}
Change the opacity:
{
"faint_background_opacity": 0.2
}
BTW, I have tried this and the inactive ‘slash’ persisted even when a device was on. I will give it another go when I get some time.
I added this because not all icons are centered and stroke without background circle on some of them looks strange for my internal esthete:
BTW, I created this tiny plugin as a part of bigger one and then understood that I need to separate responsibility. So, It will be good for some nerds, but of course I understand that it does not solves serious problems
Sorry, missed this. Thank you! In this case I think circle is not good idea at all and default behaviour must be without it. But I leave this option as optional variant for some freaks