On a Fibaro FGK-101, a battery operated multi-channels device, I send 2 commands each time the device wakes up, every 30mn :
def zwaveEvent(physicalgraph.zwave.commands.wakeupv1.WakeUpNotification cmd) {
def result = [createEvent(descriptionText: "${device.displayName} woke up", isStateChange: false)]
result << response("delay 1200")
result << response(zwave.batteryV1.batteryGet())
result << response("delay 1200")
result << response(zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint: 2, destinationEndPoint: 2, commandClass:0x31 /*Sensor Multilevel Get*/, command:4))
result << response("delay 5000")
// should wakeUpNoMoreInformation() be sent to all EndPoints ???
result << response(zwave.wakeUpV1.wakeUpNoMoreInformation())
return result
}
But what I do not understand is that the Dashboard trace then shows “theDevice is now inactive” +++7 MINUTES+++ after the device woke up, and I sent my 2 commands followed by wakeUpNoMoreInformation().
First, I thought that once waken up, a battery operated device would listen only for a few SECONDS, not MINUTES.
And second, it looks like my ending wakeUpNoMoreInformation() is ineffective at putting it to sleep again.
So I modified my last wakeUpNoMoreInformation() command, replacing it by :
result << response(zwave.multiChannelV3.multiChannelCmdEncap(sourceEndPoint: 2, destinationEndPoint: 2, commandClass:0x84, command:8/*Wake Up No More Information*/))
result << response("delay 1200")
result << response(zwave.wakeUpV1.wakeUpNoMoreInformation())
and the 7 minutes too late sleep anomaly seems to have disappeared.
So my question is : could anyone confirm that the wakeUpNoMoreInformation() command is to be sent to ALL channels, when a multichannel device wakes up ?
UPDATE : in the above “SEEMS to have disappeared” was the key word : for whatever reason, the “theDevice is now inactive” message does not always appear in the Log, but the problem is still there most of the time : the Device goes to sleep 7mn too late, even when a wakeUpNoMoreInformation() command is sent to all channels.
Any suggestion welcomed…