Haiku onZoneNotReady Event

snx

Member
I was playing around last night with this event and noticed something strange (my goal is to eventually emulate an example HAI program which changes the mode of my thermostats based on windows open/closed, etc). Anyway I just did some simple logging and noticed that the event seems to get called continuously and not "when a zone goes not ready". Maybe by design? (ds is a datestamp function from another file)

Code:
function onZoneNotReady(zone) {
helper.logToExternalFile('Window.log', ds + " - " + zone.bestDescription + " Open");
}

And the log

Code:
2012-09-26 20:00:13 - MASTER Windows Open
2012-09-26 20:00:15 - MASTER Windows Open
2012-09-26 20:03:35 - MASTER Windows Open
2012-09-26 20:03:38 - MASTER Windows Open
2012-09-26 20:03:46 - MASTER Windows Open
2012-09-26 20:03:50 - MASTER Windows Open
2012-09-26 20:03:52 - MASTER Windows Open
2012-09-26 20:03:54 - MASTER Windows Open
2012-09-26 20:04:55 - MASTER Windows Open
2012-09-26 20:04:57 - MASTER Windows Open

I left the windows open and the logging continued several times per minute like this example. Just curious if HH polls zone status like this.

Thanks
 
That's not the way that its supposed to work, it should only become not ready once per zone. Perhaps there is something strange going on with the sensor causing it to toggle back and forth? What kind of a sensor is this? Can you try logging onZoneSecure() also for comparison?
 
Will do. It's just a simple magnetic window contact. For what it's worth, I do have the program running successfully on the OmniPro but I just log when the thermostat changes mode not the state of the window flag.

Thanks
 
Sorry for the delay, wanted to log different types of contacts. Hard to say if the status is really "bouncing". Here's some sections of the log so far-

Front Door & Garage Entrance - Magnetic Contact .75" Gap

Code:
2012-10-1 8:27:26 - ENTRY Zone Not Ready
2012-10-1 8:27:34 - ENTRY Zone Secure
2012-10-1 8:27:35 - ENTRY Zone Not Ready
2012-10-1 8:44:21 - ENTRY Zone Secure
2012-10-1 8:46:18 - ENTRY Zone Not Ready
2012-10-1 8:47:28 - ENTRY Zone Secure
2012-10-1 8:50:24 - ENTRY Zone Not Ready
2012-10-1 8:51:39 - ENTRY Zone Secure
2012-10-1 9:15:55 - ENTRY Zone Not Ready
2012-10-1 9:16:27 - ENTRY Zone Secure
2012-10-1 10:38:01 - ENTRY Zone Not Ready
2012-10-1 10:40:44 - ENTRY Zone Secure

Kitchen Slider - Magnetic Contact .75" Gap

Code:
2012-09-30 13:03:41 - KITCH Door Zone Not Ready
2012-09-30 13:03:45 - KITCH Door Zone Secure
2012-09-30 13:11:01 - KITCH Door Zone Not Ready
2012-09-30 13:11:21 - KITCH Door Zone Secure
2012-09-30 13:11:41 - KITCH Door Zone Not Ready
2012-09-30 13:11:46 - KITCH Door Zone Secure
2012-09-30 13:13:42 - KITCH Door Zone Not Ready
2012-09-30 13:13:47 - KITCH Door Zone Secure
2012-09-30 13:21:00 - KITCH Door Zone Not Ready
2012-09-30 13:21:59 - KITCH Door Zone Secure
2012-09-30 13:22:21 - KITCH Door Zone Not Ready
2012-09-30 13:22:38 - KITCH Door Zone Secure

Motion Detector - DSC

Code:
2012-10-1 8:14:02 - MOTION Zone Secure
2012-10-1 8:14:02 - MOTION Zone Not Ready
2012-10-1 8:14:04 - MOTION Zone Secure
2012-10-1 8:14:17 - MOTION Zone Not Ready
2012-10-1 8:14:20 - MOTION Zone Secure
2012-10-1 8:14:21 - MOTION Zone Not Ready
2012-10-1 8:14:23 - MOTION Zone Secure
2012-10-1 8:14:27 - MOTION Zone Not Ready
2012-10-1 8:14:29 - MOTION Zone Secure
2012-10-1 8:14:30 - MOTION Zone Not Ready
2012-10-1 8:14:32 - MOTION Zone Secure
2012-10-1 8:14:36 - MOTION Zone Not Ready
2012-10-1 8:14:38 - MOTION Zone Secure
2012-10-1 8:14:38 - MOTION Zone Not Ready
2012-10-1 8:14:40 - MOTION Zone Secure

Living Room Windows - Magnetic Contact .50" Gap

Code:
2012-09-30 5:30:27 - LIVRM Windows Zone Secure
2012-09-30 10:49:08 - LIVRM Windows Zone Not Ready
2012-09-30 15:28:31 - LIVRM Windows Zone Secure
2012-09-30 16:17:30 - LIVRM Windows Zone Not Ready
2012-09-30 18:29:42 - LIVRM Windows Zone Secure
2012-10-1 3:17:48 - LIVRM Windows Zone Secure
2012-10-1 5:30:31 - LIVRM Windows Zone Secure

Every so often I also see a series of SECURE events logged like this too

Code:
2012-09-28 21:00:51 - MASTER Windows Zone Secure
2012-09-28 21:00:51 - THR Windows Zone Secure
2012-09-28 21:00:51 - BATH1 Window Zone Secure
2012-09-28 21:00:51 - OFFICE Windows Zone Secure
2012-09-28 21:00:51 - PLRM Windows Zone Secure
2012-09-28 21:00:51 - MIAS Windows Zone Secure
2012-09-28 21:00:51 - KITCH Door Zone Secure
2012-09-28 21:00:51 - KITCH Windows Zone Secure
2012-09-28 21:00:51 - LIVRM Windows Zone Secure
2012-09-28 21:00:51 - ENTRY Zone Secure
 
Back
Top