Labels - Feature suggestions

I’ve been attempting to switch to Labels instead of Groups as it is far easier to add a Label to entities than it is to update the members of a group.

Here some enhancements that I think would greatly improve the functionality of this feature:

  • Labels aren’t a valid selector / filter for any cards. All cards that currently support a group: input or filter should be updated to additionally support label:
  • Labels do not show up as attributes on Entities. This makes it very hard to filter a list of entities based on Labels. Currently you either have to start from label_entities() and then filter further, or you have to walk your entity list and check the contents of labels(ENTITY). It would be far better if one could simply do state_attr('entity', 'labels') | contains('mylabel') and similar operations.
  • While Labels have both an Icon and a Description, these items are not exposed to templates. Only label_name() exists. There should be label_description() and label_icon() equivalents.