pct88
Member
I have set up Haiku Helper to push notifications to my iPhone whenever there is motion detected from the perimeter detectors on my Omni Pro II. Now that the weather is warm I would like to add code to limit these notifications to be sent only when the OPII is armed- otherwise yard work leads to endless notifications that are not of concern.
I am capable of modifying existing code, but making more significant changes is a bit beyond my experience level. Presumably it is something like this?
if(zone.number==24) && SystemArmedStatus == armed
Thanks!
function onZoneNotReady(zone) {
if(zone.number == 24) { // Match Driveway Cartel vehicle detector
helper.sendNotification(controller, zone.bestDescription + ' vehicle detected.');}
else if(zone.number == 11) { // Match Street Side PIR
helper.sendNotification(controller, zone.bestDescription + ' motion detected.');}
else if(zone.number == 12) { // Match Patio Side PIR
helper.sendNotification(controller, zone.bestDescription + ' motion detected.');}
}
I am capable of modifying existing code, but making more significant changes is a bit beyond my experience level. Presumably it is something like this?
if(zone.number==24) && SystemArmedStatus == armed
Thanks!
function onZoneNotReady(zone) {
if(zone.number == 24) { // Match Driveway Cartel vehicle detector
helper.sendNotification(controller, zone.bestDescription + ' vehicle detected.');}
else if(zone.number == 11) { // Match Street Side PIR
helper.sendNotification(controller, zone.bestDescription + ' motion detected.');}
else if(zone.number == 12) { // Match Patio Side PIR
helper.sendNotification(controller, zone.bestDescription + ' motion detected.');}
}