Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add names config option for name transforms #449

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jharris4
Copy link

@jharris4 jharris4 commented Jun 3, 2024

Hi there! I've been finding this plugin super useful, and I was using templates to do some clever stuff like naming entities according to the room they're in etc.

It was working well, but I noticed that the cards using a template render async and take a second to load compared to other cards not using templates that render seemingly instantly.

This got me curious to investigate whether there was some way to transform the names of entities with this plugin without using templates.

It turns out it wasn't supported but wasn't that hard to add! I created forked version of this plugin for testing called auto-named-entities with a new names config option and it's working great to transform my entity names without needing a template.

I figured I'd submit this PR in case others might find this functionality useful.

@soif
Copy link

soif commented Oct 2, 2024

Awesome (and needed IMHO) addition @jharris4 ! ❤️

  • I really like the example that remove the Area from names, mimicking the default HA Overview dashboard !
  • BTW adding a 'regreplace' (or allowing regex both in match & replacement) would make it definitively gorgeous !

@thomasloven It really desserve to be merged (once successfully tested) ! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants