Getting item which triggered the rule

I have following code:

rule LowBat
when
	Item BatGarageTemp received update TRUE or
	Item BatLivingTemp received update TRUE or
	Item BatBedroomTemp received update TRUE or
	Item BatGuestTempBatGuestTemp received update TRUE or
	Item BatStudyTemp received update TRUE
	
then
	sendMail("me@gmx.ch", "Batterie Temperature Sensor Low", ">>>>>> Need name of sensor here <<<<<<<")
end

Is is possible to find out which switch triggered the rule, without going to the list.
or is there a better way to handle this trough a group and iterate somehow through the group.

You may want to read through the tutorials section, if you are using groups, there are tutorials to address your questions:

1 Like

This one is more comprehensive.

2 Likes

Great examples, thanks a lot.
I like this amazing community!