Entity-filter for group member

Hi guys,

I’m new to home assistant (I used openHAB more than six years before). I have read a lot of posts in this community, but I didn’t find a way to solve my problem :wink:

I have created two groups (lights in the ground floor and lights in the first floor). In the ui I want to have a card like “entity-filter” which can show all entities of both groups when they are on. If all lights in both groups are off, it should show a message like “All lights off!”.

Using entity-filter with the two groups it will only show if the group entity is on or not:

type: entity-filter
entities:
  - light.lichter_im_erdgeschoss
  - light.lichter_im_obergeschoss
state_filter:
  - 'on'

Thank you for your ideas :slight_smile:

No ideas ?

I found a solution. If there is anyone with the same problem:

type: custom:auto-entities
card:
  type: entities
  title: Eingeschaltete Lichter
  show_header_toggle: false
filter:
  include:
    - group: light.lichter_im_erdgeschoss
    - group: light.lichter_im_obergeschoss
  exclude:
    - state: 'off'
show_empty: false

2 Likes