I went down a rabbit hole with ChatGPT trying to find a way to minimize space between rows as seen in the image. Code suggested by ChatGPT faired no better then the simple example. Any suggestions on how to minimize blank space between rows of a list would greatly be appreciated. Thanks!
#Trying to remove spaces from a list
1 messages · Page 1 of 1 (latest)
might be able to achieve with a markdown card using HTML
If you want a table like output, try the flex-table card from HACS, it will give you a very compact table type list.
I modified your example to work with my entities. Just be aware that using card_mod with auto-entities can sometimes make the card act "wonky" as it is being rendered but (usually) snaps back to the way you want. Also, this only works with sensor entities.```yaml
type: custom:auto-entities
card:
type: entities
title: Top 10 Temperatures
card_mod:
style:
hui-sensor-entity-row:
$: |
hui-generic-entity-row {
font-size: 14px;
height: 15px;
}
filter:
include:
- domain: sensor
entity_id: "temperature"
exclude:
- state: unknown
- state: unavailable
sort:
method: state
numeric: true
reverse: true
count: 10
show_empty: false
awesome!! thanks!! exactly what I was trying to accomplish
is auto entities good? havent tried it yet
i was doing manual cards for my low battery devices
auto entities is useful for a set-it-and-forget-it configuration. Set the criteria for the entities you want shown and that's pretty much it. It can sort and show a certain number of entities. It is relatively easy to output the entities to an Entities card. With a bit more effort, you can have it output individual cards for each entity.
In this example, it finds all light groups (ignoring individual lights) that are currently on. Tapping the card turns off the light group and it will disappear. The bottom example is the same thing but it adds a template that removes Lights from the entity name.
Here's my take on battery monitoring. I wrote up its design in the auto-entities forum thread. LINK
Another auto-entities example. Finds updates available.
it gave me a bit of inspiration to use it and also build my own to compare