Labels:
- Manage labels in UI: add/remove/change.
- Assign labels to entities (do not know about other objects) in UI.
- Use labels to select entities in templates.
- Use labels to select entities in UI tables.
In some limited extent this functionality was (and still is) available before 2024.4:
- Add attributes like “label: xmas” to an entity (YAML):
– either explicitly - for template (binary_)sensors;
– or via “customize”. - Filter list of entities in “Dev tools → State” by this “label: xmas”.
- Select entities in templates by “
selectattr('attributes.label','defined') | selectattr('attributes.label','eq','xmas')”.
(also, these string labels occupied space in “attributes_id” DB table).