Haiku Notification for Zone Activity

jeremyg

Member
I'd like to create an email notification that will send an alert when specific zone/s are not ready. The alerts should be active/inactive based on a flag that is set manually and/or follows a schedule. The zones that are part of the alert should be selectable somehow (user settings?)
 
Is this doable?
 
jeremyg said:
I'd like to create an email notification that will send an alert when specific zone/s are not ready. The alerts should be active/inactive based on a flag that is set manually and/or follows a schedule. The zones that are part of the alert should be selectable somehow (user settings?)
 
Is this doable?
Just buy and install the Omni email board 20A30-1.  Its very easy to send an email when a zone is violated and with programming you can do pretty much anything. 
BUT do keep in mind, when the panel is in alarm, that is the priority, so other functions like email get a lower priority.
 
You can do this with HaikuHelper easily:
 
Code:
function onZoneNotReady(zone) {
    if (!zone.isSecure /* insert other conditions */) {
        helper.sendNotification(controller, "Zone not ready: " + zone.bestDescription);
    }
}
Your other conditions can check user settings, flags and the zone number or name.

This will send a generic notification that you can handle in HaikuHelper via push or e-mail. Or if you want e-mail only specifically, use:
Code:
helper.sendMail(controller, "[email protected]", "subject", "message");
 
What is the best way to selectively turn a text notification on and off remotely for a single zone or group of zones. I have my system setup to text me if a door or window is opened, but I'd like to be able to turn notifications on my front door for a period of time, for example. I know I could change the script if I was at my Mac, but I'm looking for a way if I am away from home.

Also, is it possible to have email notifications only sent for alarms?
 
Is HaikuHelper no longer available? The mac it's installed on now is on the fritz and I'd like to install HH on a diff machine.
 
lupinglade said:
You can do this with HaikuHelper easily:
 

function onZoneNotReady(zone) {
if (!zone.isSecure /* insert other conditions */) {
helper.sendNotification(controller, "Zone not ready: " + zone.bestDescription);
}
}

Your other conditions can check user settings, flags and the zone number or name.

This will send a generic notification that you can handle in HaikuHelper via push or e-mail. Or if you want e-mail only specifically, use:
Code:
helper.sendMail(controller, "[email protected]", "subject", "message");
 
What is the correct syntax to add a condition? For example, whenever "ZoneNotificationFlag" is on?
 
I am trying to find the scripting documentation, but the link i had doesnt work.
 
You can find the documentation in the Help menu in HaikuHelper.

You can use something like this:
Code:
if(controller.unitWithName("ZoneNotificationFlag").isOn) { ... }
 
Back
Top