dwains-lovelace-dashboard icon indicating copy to clipboard operation
dwains-lovelace-dashboard copied to clipboard

[FR] Hide/Disable Entities based on Patterns

Open mirkolenz opened this issue 2 years ago • 1 comments

For me, it would be really helpful to disable (and maybe even enable) certain entities based on glob patterns. To give a more concrete example: I am using zigbee2mqtt. For all devices, an additional binary sensor is exported that indicates whether an update for that device is available. This sensor is directly associated to the parent device (e.g., a lamp) and thus part of the same area. As a result, it is also shown in your dashboard.

Of course I could individually disable/hide these sensors, but that would be a bit of work and also has the problem that any new light by default will have the same sensor again.

My proposal is to add an option (maybe via yaml only) that allows me to specify glob or regex patterns s.t. it is possible to hide all of them. In my case with zigbee2mqtt, one such pattern could be binary_sensor.*_update_available.

mirkolenz avatar Jun 15 '22 14:06 mirkolenz

I second this request. For example, many of my zigbee devices have an identity entity, and I'm tired of explaining to my partner why this appears. It's easy to hide entities, but it's tedious.

Thanks for a great dashboard!

tanbronson avatar Sep 15 '23 21:09 tanbronson