Closed nickdos closed 1 year ago
I'm configuring an entity card where I want the state part to show an icon via a template expression. The icon value is coming from an entity attribute.
state
- type: custom:template-entity-row state: >- {% if state_attr('sensor.recycling_collection', 'days') < state_attr('sensor.green_waste_collection', 'days') %} {{ state_attr('sensor.recycling_collection', 'icon') }} {% else %} {{ state_attr('sensor.green_waste_collection', 'icon') }} {% endif %} name: Next waste collection icon: mdi:trash-can active: '{{ state_attr(''sensor.garbage_collection'', ''days'') < 2 }}'
This is just showing the text value for the icon and not the actual icon. Is there a way to display the icon itself?
Not possible with this card. Use multiple-entity-row inside config-template-card
multiple-entity-row
config-template-card
OK, thanks for confirming 👍
I'm configuring an entity card where I want the
state
part to show an icon via a template expression. The icon value is coming from an entity attribute.This is just showing the text value for the icon and not the actual icon. Is there a way to display the icon itself?