Is it possible to show the value of an attribute in the card rather than the main state value?
I have a bunch of Zigbee sensors integrated through zigbee2mqtt. They all have linkquality and battery attributes and some have other attributes as well. I would like to have a battery card that showed the battery levels of all of them for example.
- type: custom:auto-entities
card:
type: entities
unique: true
show_empty: true
filter:
include:
- entity_id: device_tracker.*
attributes:
ip: "*.*"
sort:
count: 2
method: name
options:
type: attribute ##### show attribute value
attribute: ip
secondary_info: last-changed
The most difficult issue is to specify a filter to show only your required entities.
In my example only trackers with present “ip” attribute are listed.
i want to use the auto entity card and automatically build cards
so i would like to have a heading and seven entities in one vertical stack
these vertical stacks should repeat for all entities but always should contain 7 entities.
I would like the status field to be on the top left and new items from auto-entities to appear at the bottom and the list to only expand downwards, currently it expands both up and down as in the image below.
hmm… regardless of the selected layout for the dashboard, Auto-entities automatically fill cards with entities in the same way to the top and bottom while increasing its size, and I need it to expand only to the down with each new entity that adds.
in the traditional dashboard, where we have several tiles on panel not only one like here, always is aligned to the top preceding tile and new entities always come to the bottom (there is no possibility to reach the top because there are other tiles).
Either way you can see that the problem only affects view 1 of the panel, and then the entities expand in two directions ;/
But this isn’t about dashboards - you are using a Picture Elements card aren’t you? (I can’t 100% tell from the picture of the code you posted, so I’m guessing here).
If my guess is correct, then wouldn’t this be about about how elements are placed on the Picture Elements card, choosing between relative or absolute positioning? [Apologies if I’m way off here].
EDIT: it might be helpful to post your yaml in more detail.