Possible to hide a widget dynamically if an entity is gone?

I have a somewhat odd lighting setup consisting of LIFX lightbulbs, retaining existing “dumb” wall switches. Some of them are always on, and controlled via wifi, some of them are used (by my parents mostly) via the wall switches.

That means that some of the light entities are not always present and accessible via HA, and show up as a widget with error text in place of the title in HADashboard, which looks pretty ugly.

Is there any (existing) way to maybe set a different style (say, to opacity: 0) for the whole widget if the underlying entity is not present? Or would i need to fork the existing light widget and code that in?

there is no way you can do that without creating a custom widget and even then i dont think you can do it, because that is a part from the base code.

you could try to add a javascript to the head that hides a widget when it contains that text.
in that case you need a custom skin.

1 Like

Awesome idea!
Thanks!

1 Like