Which item in a group is ON


I am using a group as a trigger for my rule.

  Member of pir received command ON
  if (alarm_status.state == "ON")
                 What do i write if i need to know what item was triggered in group pir, and then to something 

I’d like to know which item that was triggered to use later in the rule, how is this possible?

like if it was sensor 1 do this
and it it was sensor 2 do this
and so on.

Just a caution, that triggering on changed to ON and using triggeringItem will only give you the Item that just changed - there may be other members of the group already ON.

That’s usually what you want of course, but it’s not quite the same thing as the post title “Which Item is ON”