Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Exactly. You are right, what I meant is not only the icon and the text but also the color change based on the left days. I think without custom card is not possible right? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Doesn't look like the Tile Card supports templating at the moment. If it did, something like this might have worked. type: tile
entity: sensor.<<NameGoesHere>>
name: Next Collection
vertical: true
icon: mdi:trash-can
color: >
{% if state_attr("sensor.<<NameGoesHere>>", "daysTo") | int == 6 %}
blue
{% elif state_attr("sensor.<<NameGoesHere>>", "daysTo") | int == 5 %}
pink
{% elif state_attr("sensor.<<NameGoesHere>>", "daysTo") | int == 4 %}
yellow
{% elif state_attr("sensor.<<NameGoesHere>>", "daysTo") | int == 3 %}
red
{% elif state_attr("sensor.<<NameGoesHere>>", "daysTo") | int == 2 %}
orange
{% elif state_attr("sensor.<<NameGoesHere>>", "daysTo") | int == 1 %}
green
{% else %}
black
{% endif %} Maybe that gives you some idea of what you could try with the Custom Card? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
currenlty I'm using the custom card to show this:
I was wondering if there is a way to use the new tile cards from home assistant.
https://www.home-assistant.io/dashboards/tile/
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions