So… based on the OZW log file, I believe when HA is restarted the device is either asleep or HA marks it as being asleep. Here are the log entries for this device when HA was restarted
2016-04-09 17:55:22.740 Detail, Node012, ZW_SEND_DATA Request with callback ID 0x0b received (expected 0x0b)
2016-04-09 17:55:22.740 Info, Node012, WARNING: ZW_SEND_DATA failed. No ACK received - device may be asleep.
2016-04-09 17:55:22.740 Info, Node012, Node 12 has been marked as asleep
2016-04-09 17:55:22.740 Info, Node012, Node not responding - moving QueryStageComplete command to Wake-Up queue
At (re)start, HA does not seem to respond to the contacts opening/closing however…
When I open/close the contacts the log shows entries for each event. The device does not appear to be asleep and HA does get a message when either event occurs. Not sure I understand why HA appears to ignore or not know what the message received actually means. Here are the log entries for when the device was opened then closed
2016-04-09 19:40:24.376 Detail, Node012, Received: 0x01, 0x09, 0x00, 0x04, 0x08, 0x0c, 0x03, 0x20, 0x01, 0xff, 0x2b
2016-04-09 19:40:24.376 Detail,
2016-04-09 19:40:24.377 Info, Node012, Received Basic set from node 12: level=255. Treating it as a Basic report.
2016-04-09 19:40:24.391 Detail, Node012, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x0c, 0x03, 0x20, 0x01, 0xff, 0x23
2016-04-09 19:40:24.391 Detail,
2016-04-09 19:40:24.391 Info, Node012, Received Basic set from node 12: level=255. Treating it as a Basic report.
2016-04-09 19:41:08.655 Detail, Node012, Received: 0x01, 0x09, 0x00, 0x04, 0x08, 0x0c, 0x03, 0x20, 0x01, 0x00, 0xd4
2016-04-09 19:41:08.655 Detail,
2016-04-09 19:41:08.655 Info, Node012, Received Basic set from node 12: level=0. Treating it as a Basic report.
2016-04-09 19:41:08.670 Detail, Node012, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x0c, 0x03, 0x20, 0x01, 0x00, 0xdc
2016-04-09 19:41:08.670 Detail,
2016-04-09 19:41:08.670 Info, Node012, Received Basic set from node 12: level=0. Treating it as a Basic report.