SpangleLabs / history-explorer-card

A card for Home Assistant Lovelace for exploring the history of your entities interactively and in real time.
MIT License
95 stars 0 forks source link

Wildcard entity list renaming #4

Open SpangleLabs opened 4 months ago

SpangleLabs commented 4 months ago

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/

erkr commented 4 months ago

That would be a nice feature for including groups as well: https://github.com/SpangleLabs/history-explorer-card/issues/7