🚫 MDI Off Fallback for Home Assistant

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.

Download, Installation, Configuration

I like this and would give it a try except…

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.

2 Likes

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.

3 Likes

Thank you for your point. And yeah, as Nezmo said, you can easily cancel this behavior via configuration.

I added this because not all icons are centered and stroke without background circle on some of them looks strange for my internal esthete:
demo-to-user-of-forum

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 :slight_smile:

Thank you so much for report. I will fix this soon, reproduced

1 Like

Thank you for your help again :handshake:
Fixed this, v0.2.9
Please update via HACS or manually if you manually installed it.

P.S. @tom_l I think this information will be usefull also for you

1 Like

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 :slight_smile:

Fixed, v0.2.10

1 Like

I have reinstalled this and things look good so far. If I see any problems, I’ll report back.

Thank you for sharing.

1 Like

Excuse my ignorance, but is it possible to make this work on Mushroom Template Tiles as well?