Is it possible to get a list of Z2M group members in HA?

Is it possible to somehow get a list of Zigbee group members configured in Z2M into HA to ultimately get a list of the associated HA devices or entities for that group? I haven’t found any supporting information, so I assume the answer is no.

I’m working on my front-end with a card that has control for the light group that uses the expander & auto-entities cards to allow for control of individual bulbs (see screenshot & code snippet below). Today, I’m doing this by label & domain with the auto-entities card, but it would save me some overhead if I could somehow get the group members directly.

Aside from labels and naming convention, the only other approach I’ve thought of is creating a like group helper in HA and manually add members of the group, but that doesn’t really solve my overhead problem, it just moves it. Ultimately, I have a like card for every light group in every room and I’d love to reduce changes I need to make when copying/updating my cards between views.

This is what my card currently looks like when expanded:

code snippet:

type: custom:expander-card
gap: 0.6em
padding: 1em
clear: false
overlay-margin: 2em
child-padding: 0.5em
button-background: transparent
title-card:
  type: custom:mushroom-light-card
  entity: light.family_room_lights_lamps
  name: Lamps
  use_light_color: true
  show_brightness_control: true
  show_color_temp_control: true
  show_color_control: true
  collapsible_controls: true
cards:
  - type: custom:expander-card
    gap: 0.6em
    padding: 1em
    clear: false
    overlay-margin: 2em
    child-padding: 0.5em
    button-background: transparent
    title-card:
      type: custom:mushroom-entity-card
      name: Adaptive Lighting
      entity: switch.adaptive_lighting_family_room_lights_lamps
      tap_action:
        action: toggle
    cards:
      - type: custom:auto-entities
        card:
          type: grid
          columns: 3
          square: false
        card_param: cards
        filter:
          include:
            - domain: switch
              label: family_room_lights_lamps
              options:
                type: custom:button-card
                name: >-
                  [[[ return
                  entity.attributes.friendly_name.split(":").at(0).replace("Adaptive
                  Lighting ", "") ]]]
                aspect_ratio': 1/1
          exclude:
            - entity_id: switch.adaptive_lighting_family_room_lights_lamps
        show_empty: true
        sort:
          method: name
          ignore_case: true
  - type: custom:expander-card
    gap: 0.6em
    padding: 1em
    clear: false
    title: Bulbs
    overlay-margin: 2em
    child-padding: 0.5em
    button-background: transparent
    cards:
      - type: custom:auto-entities
        card:
          type: grid
          columns: 1
          square: false
        card_param: cards
        filter:
          include:
            - domain: light
              label: family_room_lights_lamps
              options:
                type: custom:mushroom-light-card
                use_light_color: true
                show_brightness_control: true
                show_color_control: true
                show_color_temp_control: true
                collapsible_controls: true
          exclude: []
        show_empty: true
        sort:
          method: name
          ignore_case: true
1 Like

Also looking for a solution to this, though for a different reason. I guess it can be done with a Python script and saving some kind of text variable?