2024.4: Organize all the things!

Labels:

  1. Manage labels in UI: add/remove/change.
  2. Assign labels to entities (do not know about other objects) in UI.
  3. Use labels to select entities in templates.
  4. Use labels to select entities in UI tables.

In some limited extent this functionality was (and still is) available before 2024.4:

  1. Add attributes like “label: xmas” to an entity (YAML):
    – either explicitly - for template (binary_)sensors;
    – or via “customize”.
  2. Filter list of entities in “Dev tools → State” by this “label: xmas”.
  3. 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).

1 Like