history-explorer-card icon indicating copy to clipboard operation
history-explorer-card copied to clipboard

Wildcard entity list renaming

Open SpangleLabs opened this issue 1 year ago • 2 comments
trafficstars

If matching a set of entities by wildcard, it would be nice to be able to apply some rename pattern to them.

For example, if I've got a graph configured with:

graph:
  - entities:
      - entity: sensor.*_plug_*_summation_delivered

It would be great to have a way to rename all the resulting series such that I can remove the "Summation Delivered" from them all, while keeping their unique names.

Perhaps something simple like mirroring sed syntax, with s/regex_pattern/replace/

SpangleLabs avatar Apr 26 '24 22:04 SpangleLabs