Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95488

Is it possible to display (name: ) a substring of the actual name?

$
0
0

@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 match capteur from the example salon_capteur_temperature
  • a Python expression: "salon_capteur_temperature".split("_")[1]

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>