Helpers groups list entity

Hello everyone,

I have a problem with a group (or a helper, I don’t really know what to call it)

I created a new entry with helpers of type Group => Switch group.

I added all my light switches, and I created the group: All the lights.

Except that I cannot list (with auto-entities for example) the list of lights in this group.
it created for me an entity linked to another entity. But how do I list this connection in my template?

Thank you for your help.

A list of the entity IDs of all the entities in a Group helper (and legacy groups) is held in the attribute entity_id. This can be used in Auto-Entities card using template in the filter section:

type: custom:auto-entities
card:
  type: entities
filter:
  template: "{{ state_attr('binary_sensor.all_window_sensors', 'entity_id')}}"
  include: []
  exclude: []

For a group of groups use the expand() function:

type: custom:auto-entities
card:
  type: entities
filter:
  template: |
    {{ expand('binary_sensor.all_windows_and_doors')
    | map(attribute='entity_id') | list }}
  include: []
  exclude: []