thomasloven / lovelace-auto-entities

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

Feature Request: this.entity_attribute[attributeName] replacement #309

Open dave-gray101 opened 1 year ago

dave-gray101 commented 1 year ago

I'd like to generate cards with more fields than just the entity ID substituted in. I created this quick PR to fill in arbitrary attributes instead, such as friendly_name. It might be better to support a full template execution, but this seems like a good middle ground, potentially?

Please let me know if you have any suggestions on a better way to do this.

taminaminam commented 1 year ago

I'd really love to have this feature, so I can make url navigations to edit a scene by its id attribute

Max101 commented 11 months ago

This PR works well I can confirm. Can this be merged?

KingofGnome commented 8 months ago

Push, i tried over an hour, just expecting that this.entity_id is not just magicly hardcoded but would work similar for other attributes untill i found the section in the sourcecode :(