Open SpangleLabs opened 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/
s/regex_pattern/replace/
That would be a nice feature for including groups as well: https://github.com/SpangleLabs/history-explorer-card/issues/7
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:
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/