custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
364 stars 52 forks source link

Feature request. Make it possible to use template for the name. #92

Closed bessarabov closed 4 years ago

bessarabov commented 4 years ago

I'm using this card and I'm very happy with it, but one thing is missing for my use cases.

I want to show name on the bar card that is stored in some other `input_text, but I can't find a way to do it. I've tried using a template:

      - type: 'custom:bar-card'
        entities:
          - entity: sensor.water_filter_1_usage
            name: '{{ states(''input_text.water_filter_1_name'') }}'

but this just shows the text as-is:

Screenshot 2020-07-05 at 20 50 57

What do you think about changing the logic for the name field? To allow entering templates there?

Gluwc commented 4 years ago

This card currently doesn't support templating, however you can use config-template-card. This card allows you to use templates on any card for any config entry.

alanmilinovic commented 1 year ago

This would be very usefull. Can someone implement it or is this project abandoned?