Can an automation see ZHA group members?

Having switched from Trådfri integration to ZHA with a SONOFF ZBDongle-E, I’m exploring the capabilities. I’ve understood that by defining light groups as Zigbee groups in the ZHA configurationm rather than in YAML with the group platform, they would be more directly controlled. However, one of the features I could use with the HA groups was that an automation/template could enumerate the group members using state_attr('light.groupname', 'entity_id') – with a ZHA group this returns None, even though the system obviously knows which devices are in the group. Is there another way?

Edit: apparently expand('light.groupname') might be a “better” solution, but that doesn’t work for ZHA groups eitther - it will just list the group “virtual device”.

1 Like