Hi Gene,
I'am very sorry, but this solution doesn't seem to do the trick.
The problem is that I stil get timeouts which cause the ZWaveLib to flag this node sleeping.
I guess it's a hardware problem. As another sensor (binairy Fibaro just a meter away) doesn't have this problem.
After 20 to 30 minutes the node gets flagged due to a timeout (AEON Multisensor 1.18).
If i restart hg he's working again for some 20 to 30 minutes.
I use these nodes to turn on some lights, and as i sometimes miss a message i query the nodes every 15 seconds.
If he's flagged the query is not send.
So the solution might be to add an option to the node setup page, for example, is on USB power, which is a hard indicator to never set the sleep flag. Even when a timeout occurs. In my case a resend would not be neccesary ... but that's just my system. Maybe that might be a second option for node setup page ?
I would help you if I understood the way the code works, but for now i haven't fully figured it out.
I'll keep working on it
Hope you can help me.
TIA
Louis