thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.26k stars 116 forks source link

Question: How do I 'rename' auto-entities? #318

Closed fribse closed 1 year ago

fribse commented 1 year ago

I've made a card that shows temps for all the drives in my NAS. Unfortunately the friendly_name is very long, "Private Temperature (Drive0:1)". I would very much like to have it just show Drive 1 or something like that. How do I do that?

billede

If I put this in the template in developer tools it gives me what I want: {{state_attr("sensor.private_temperature_drive_0_1","friendly_name") | regex_replace( find='Private Temperature \(|\)|0:', replace='' ) }} But how do I transfer that to the auto-entitites card?

fribse commented 1 year ago

Oh, I will create a topic in the forum, I just found the thread about auto-entities, sorry...