Code Cleanup HELP! ;)

Ok Rich,

Here’s one for ya. Let’s see how good ya are! :wink: haha

So here is my code - My Config Collection (OH 1.8 ONLY!) - Might help Someone

Basically when any of the motion or door sensors sets off the alarm in stay or away a generic email gets sent out to me. Is there a way to have for example:

Current Email:
sendMail(“alerts@cidcomm.com”, “SECURITY: ARMED-STAY Door Intrusion!”, “Home Intrusion Detected!”)

What I would like to see:
sendMail(“alerts@cidcomm.com”, “SECURITY: Front Door Intrusion!”, “Home Intrusion Detected! (Front Door)”)
or
sendMail(“alerts@cidcomm.com”, “SECURITY: Patio Door Intrusion!”, “Home Intrusion Detected! (Patio Door)”)

Have the item name that set off the alert in the email kind thing…