Auto-Entities card, removing entities that are also part of a group

Hi,

I put together an auto-entities card for all the lights that are presently turned on in the house, also displaying the time they were last changed. It’s great!

Is there a way to filter the contents though so I don’t have the entities that make up a group, as well as the group.

Not all of my lights are in groups.

Thanks in advance!

Hey!

This is exactly what I am looking for.
Did you find a solution for the problem?

My solution is to add a label to the entities I want to filter and add this to the card.

  exclude:
   - label: auto-entities

Not that nice as I have to maintain the info of a group-membership in a double way, but it works.

Hello,

I´m searching for a way to exclude lables from auto entites. All I did seems not to work. Can some of xou maybe help me? Below you can see my code

type: custom:auto-entities
show_empty: false
sort:
method: friendly_name
reverse: false
ignore_case: false
numeric: false
ip: false
card:
type: entities
show_header_toggle: true
title: Alle Lichter
state_color: false
filter:
include:
- domain: light
state: “on”
options: “on”
exclude:
- lable: gruppe
grid_options:
columns: 6
rows: auto

Still a relevant question for me; I want to exclude all the entities having a certain attribute. In my case I want all the “rooms” to be excluded. This info comes from the HUE bridge and all have the following attributes:

So if I can find a way to exclude all entities that have a certain attribute with value “room”, then I’m okay :slight_smile: . Is this possible?

This is a proper place to ask any related questions.
Try this (untested):

filter:
  include: ...
  exclude:
    - attributes:
        hue_type: room
1 Like

That did it! Thanks @Ildar_Gabdullin !! How simple and convenient. I just started with home assistant, so need to learn a lot :slight_smile: . For me the biggest problem is that how (where?) was I supposed to find out that the exclude part could be fed with attributed from the device? Anyhow… thanks, answers like these look simple, but they really help someone with learning the basics in a structured way.

1 Like