Tested this but I donāt think this is entirely what Iām looking for.
type: custom:auto-entities
card:
type: entities
filter:
include:
- domain: light
exclude:
- label: exclude
- integration: group
As far as I can tell, integration: group replaces the following, right?
attributes:
entity_id: $*
But what I am still missing is a way to exclude the entities that are members of groups. these still show up in the list of entities.
Letās take the following example:
I have 5 light entities: light.entity1 through light.entity5
I also have 2 light groups:
light.group1:
- light.entity1
- light.entity2
light.group2
- light.entity3
- light.entity4
light.entity5 is in no group.
I am looking for a filter setting that ends up giving me just light.entity5
- light.group1 and light.group2 get eliminated by integration: group (thanks for the hint!)
- but how to eliminate light.entity1, light.entity2, light.entity3, and light.entity4?
reason for this: as I am displaying my grouped lights separately with the mentioned collapsable card:
I donāt want the lights to show up twice. without this filter I have them once as an individual card (see top) and once within the collapsable grouped card (see bottom).
Any idea how this could be achieved?
Another issue I have noticed:
both cards are set-up with the auto-entities card. The top single card is just a basic auto-entities card. The bottom one is a nested auto-entities card using decluttering-cards. I am getting a list of all light groups and am creating the following card for this:
type: custom:auto-entities
filter:
include:
- domain: light
integration: group
options:
type: custom:decluttering-card
template: illumination_light-group
variables:
- Light Group: this.entity_id
- Title Expand: Mein Test
exclude:
- label: exclude
- area: system
show_empty: false
The Light Group: this.entity_id is then being used within the decluttering card again to get all the children of the group using:
include:
- group: '[[Light Group]]'
options:
type: custom:mushroom-light-card
use_light_color: true
show_brightness_control: true
collapsible_controls: false
exclude:
- area: System
- label: exclude
As you can see in the screenshot, this basically works fine. BUT: it takes a loooot of time to load the children elements into the collapsable card. However, as soon as I turn on one of these lights, the children elements are loaded immediately, no delay at all.
any idea whatās going on here and how to improve it?