Condition for blueprint to check state of multiple entities

I have built a blueprint that should control one or more lights. To do that I used a target selector (only one I could find that supports multiple entries).

   name: Light(s) to control
         domain: light

Now I need to check in the conditions if the lights in this group are turned on and I am unable to find a way of doing this. There is a state condition but that does not seem to support the target selector.

condition: state
entity_id: # what to put here?
state: 'on'

Am I missing something here? How can I solve this?