Multiple items in rules

Hi all.
I’ve started working on rules and stumbled onto something I’m sure I can do with a much smarter approach, I just need to be pointed in the right direction.

I have multiple door contacts i would like to tell me whenever they’re tripped, at the same time i want to know which one of them it is, as follows

rule "door contact is opened"
item door1 changed to OPEN OR
item door2 changed to OPEN OR
item door3 changed to OPEN
// any way to easy write out which one of the above is the one that changed without having to use etc "if (item door1 == OPEN) and so on ?

I was wandering if there wasn’t a way to simply check a group of items for a change and then write out the item of the group that actually changed ?

Hope this makes sense to someone, otherwise please feel free to say so and I’ll try to be more specific I guess :slight_smile:

This should answer your questions :slight_smile:

Thanks a lot :slight_smile: