How to filter display of single entity in an entities card

I’d like to have an entities card where specific entities are shown only under certain states. The conditional card doesn’t quite work as I don’t want it to show up as a different card. I also don’t want to nest cards, as there is extra borders and padding.

I can get close with @thomasloven’s auto-entities, but visually it doesn’t look good. https://github.com/thomasloven/lovelace-auto-entities

type: entities
entities:
  - entity: sensor.dark_sky_uv_index_0d
  - type: 'custom:auto-entities'
    card:
      type: entities
    filter:
      include:
        - entity_id: sensor.netatmo_family_room_co2
          state: "> 700"
show_header_toggle: false

image

I’ve also tried with vertical-stack-in-card and get these results which is closer, but still has lots of white space. Plus the border isn’t hidden properly with the auto-entities card.
image

Any ideas?

type: 'custom:auto-entities'
  card:
    type: entities
    show_header_toggle: false
  filter:
    include:
      - entity_id: sensor.dark_sky_uv_index_0d
      - entity_id: sensor.netatmo_family_room_co2
        state: "> 700"

?

Or how about using the entity-filter card?

Thanks! I don’t how I didn’t figure that out with the documentation.

And thanks for all the great development work you’ve contributed.