Hi all,
I have a card showing various fuel stations and basically I’m quite happy with this card. It looks nice, but it’s always hard to see, which station is the cheapest.
The code looks like:
type: entities
entities:
- entity: >-
sensor.tankerkoenig_station_1
- entity: sensor.tankerkoenig_station_2
- entity: sensor.tankerkoenig_station_3
...
title: Fuel stations
In order to solve this, I’ve filled a markdown card like this:
type: markdown
content: >-
# Diesel: {% for entity in expand('group.fuelstations_diesel_group') | sort(attribute='state') | map(attribute='entity_id') | map('string') | list %}
{{states(entity) }} € -- {{state_attr(entity, "friendly_name")}}
{% endfor%}
title: Fuel
This is pretty nice, because it is less code and nearly no maintenance in the future … but it looks quite ugly. Yes, I could add icons and such, but still it is nothing compared to the entity card …at least not for me.
So my question is, can I somehow combine the list operation from the markdown card with the nice layout of the entity card? Each time I try, I run into issues…
Thanks a lot.
1 post - 1 participant
Read full topic