@WoJWoJ wrote:
I have friendly names for devices which are descriptive but too long (the friendly names are inherited via autodiscovery).
An example would be
salon_capteur_temperature
: when displayed, it is too long and part of the name is redundant (when the card is “Temperatures” I do not need “_temperature” in the displayed name).Is there a way to display a portion of the name, based on some kind of matching?
That could be
- a regex:
.+_(.+)_.*
would matchcapteur
from the examplesalon_capteur_temperature
- a Python expression:
"salon_capteur_temperature".split("_")[1]
Posts: 1
Participants: 1