Hi, Take a look at the following post:
More specifically, under the section called “Group and Filter” you will find a rule called “Override Lights” that I believe shows how to do what you want (that is, pick out which switch was operated out of a group of switches).