I would like to be able to send emails on Disarm and Arm that show which user armed the system. (Similar to Push Notification) Does anyone have sample code to get that user information?
The following works well to send a notification on Disarm but I don't know how to access the user that performed the action.
I'd like to do the same for Arming which should be easy once I know how to access the user information.
Thanks!
The following works well to send a notification on Disarm but I don't know how to access the user that performed the action.
I'd like to do the same for Arming which should be easy once I know how to access the user information.
Code:
function onAreaDisarm(area) {
helper.sendMail(controller, '[email protected]', 'System Disarmed ', 'Alarm Disarmed for Controller: ' + controller.name);
}
Thanks!