WTH: Lights On/Off Should Prefer Groups (Zigbee/Otherwise) to Individual Entities for an Area

I find myself avoiding using light.turn_off/turn_on on areas/floors because I have light groups and zigbee groups that contain those lights. By default I believe HA just gets all light entities with that area and applies the effect required. However, I believe either there should be a way to configure the smallest set of entities that covers all lights in that area, i.e. preferring groups to individual entities. Or even better HA should just be able to figure out which light entities those are automatically.

I understand that the automatic solution would be difficult for Zigbee, but there probably should be a way to cross reference ZHA or Zigbee2MQTT for which entities are included. Or at worst we can configure which light entities are under the zigbee group entity.