CatFoodOpener Posted May 14, 2015 Share Posted May 14, 2015 I have a battery operated water leak detector (Utilitech water sensor) that sends a WAKEUP notice every hour or so. I would like to use this event in place of the non-existent heartbeat event. The event I would like to use is this: Thu 05/14/2015 08:22:34 AM : [ZWAVE-WAKEUP 9] Awake with no pending work, put back to sleep ZW009_1 I can issue a query command that fails at first but then does seem to trigger some kind of event when the device awakes but I am not sure what that event is. Here is the log for that: Thu 05/14/2015 09:06:08 AM : [ZWAVE-WAKEUP 9] Query device when awake ZW009_1 Thu 05/14/2015 09:06:08 AM : [ ZW009_1] ERR 1 Thu 05/14/2015 09:06:23 AM : [ZWAVE-WAKEUP 9] Query device when awake ZW009_1 Thu 05/14/2015 09:22:51 AM : [ZWAVE-WAKEUP 9] Awake with pending work ZW009_1 Thu 05/14/2015 09:22:51 AM : [ ZW009_1] ERR 0 I'm not sure what if anything is being triggered by the query command, any help would be appreciated. Dean Link to comment Share on other sites More sharing options...
CatFoodOpener Posted May 14, 2015 Author Share Posted May 14, 2015 I think I found the solution, firing a query command will get a "responding" event when the next time the device wakes up. I'm using the popular leak detector code on this site and made slight modifications to it. My heartbeat code is now: Crawlspace - Variable Control 2 - [iD 0029][Parent 0013] If Status 'ZW009 Water Sensor Crawlspace' is Responding Then $Leak_Crawlspace = 1 Wait 12 hours Set 'ZW009 Water Sensor Crawlspace' Query Wait 12 hours Set 'ZW009 Water Sensor Crawlspace' Query Wait 1 hour $Leak_Crawlspace = 2 Else - No Actions - (To add one, press 'Action') My log for the latest wakeup event is: Thu 05/14/2015 10:23:13 AM : [ZWAVE-WAKEUP 9] Awake with pending work ZW009_1Thu 05/14/2015 10:23:13 AM : [ ZW009_1] ERR 0Thu 05/14/2015 10:23:13 AM : [ZWAVE-WAKEUP 9] Query awakened device ZW009_1Thu 05/14/2015 10:23:13 AM : [ZWAVE-WAKEUP 9] Put back to sleep ZW009_1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.