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)
And the log
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
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