1) Give a description of the problem
I am trying to write a piston that will send an email with the name of the device that triggered an HSM security alert (i.e. the specific motion sensor or contact sensor that triggered it). I’m basically trying to send an email with the details if the alarm is tripped when in Home or Away mode.
2) What is the expected behaviour?
I’ve tried using $device and $currentEventDevice in the Send Email function, but am not getting the correct result. This is what I am using for the current Message Body:
Possible intrusion has been detected on ({$device})
Is it possible to obtain this information and if so, can anyone help with the correct syntax to use?