I just noticed they didn't even write a complete handler. There is no code that handles water detection events.
I get the following events getting the cable wet and letting it dry out:
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:2, sequence:false, eventParametersLength:0, eventParameter:[])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:0, sequence:false, eventParametersLength:1, eventParameter:[2])
traceNotificationReport: NotificationReport(v1AlarmType:0, v1AlarmLevel:0, reserved:0, notificationStatus:255, notificationType:5, event:2, sequence:false, eventParametersLength:0, eventParameter:[])
I guess I need to add something like this to def zwaveEvent(hubitat.zwave.commands.notificationv3.NotificationReport cmd) {
else if (cmd.notificationType == 0x05) {
switch (cmd.event) {
case 0:
logDebug "Sensor No Water"
// TODO
break
case 2:
logDebug "Sensor Detects Water"
// TODO
break
default:
logDebug "Sensor is ${cmd.event}"
}
}
Not sure what to return as a result here though.