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

[FR]: Support for templating in Entities Card for icon #70

Open
jeremysherriff opened this issue Jan 16, 2025 · 0 comments
Open

[FR]: Support for templating in Entities Card for icon #70

jeremysherriff opened this issue Jan 16, 2025 · 0 comments

Comments

@jeremysherriff
Copy link

Is your feature request related to a problem? Please describe.

I'd like to be able to override icons in a dynamic way.

Describe the solution you'd like

To be able to include templating in the icon value for generic Entities cards:

type: entities
title: Parcel
entities:
  - entity: sensor.seventeentrack_package_tracknumber1
    secondary_info: 'Status: {{ state_attr(entity,''info_text'') | upper }}'
    icon: {{ "mdi:party-popper" if is_state_attr(entity,''info_text'',"delivered") else "mdi:truck" }}
  - entity: sensor.seventeentrack_package_tracknumber2

Describe alternatives you've considered

Creating a template sensor with the icon, state etc

Additional context

No response

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

No branches or pull requests

1 participant