i have all my window contacts in one Group called F_Kontakt.
Now i want to use the window contacts for my alarmsystem.
So i made a rule which works fine:
rule "Alarmanlage"
when
Item F_Kontakt changed to OPEN
then
if (Alarmanlage.state == ON) {
sendMail("email@address.com", " ALARM", "Alarm")
logInfo("ALARM","ALARM")}
end
Is it possibe, to insert the item Name of the contact in the alarmtext which chanded to open?
So i would be able to see which of my contacts triggerd the Alarm
rule "Alarmanlage"
when
member of F_Kontakt changed to OPEN
then
if (Alarmanlage.state == ON) {
sendMail("email@address.com", " ALARM", "triggeringItem.name Alarm")
logInfo("ALARM","ALARM")}
end