From 00642ceab587ca4004fc982193063358dfffb210 Mon Sep 17 00:00:00 2001 From: Aeotec-ccheng <63321041+Aeotec-ccheng@users.noreply.github.com> Date: Tue, 6 Oct 2020 00:57:45 -0700 Subject: [PATCH 1/2] Update def configure() Lines 136 - 140 - configure Recessed Door Sensor 7 upon pairing to enable Binary Sensor Report - fixes issue where Open/Close status does not update when paired using S2 Authentication --- .../zwave-door-window-sensor.groovy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy b/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy index 566decd9772..97d7cd9b68a 100644 --- a/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy +++ b/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy @@ -133,7 +133,11 @@ def updated() { } def configure() { - // currently supported devices do not require initial configuration + //Recessed Door Sensor 7 - Enable Binary Sensor Report for S2 Authenticated + if (state.MSR == "0371-0102-00BB" || state.MSR == "0371-0002-00BB") { + result << response(command(zwave.configurationV1.configurationSet(parameterNumber: 1, size: 1, scaledConfigurationValue: 1))) + result + } } def sensorValueEvent(value) { From 35edeaa0a42fa10b67d8d2ecd81ce334d5fc4875 Mon Sep 17 00:00:00 2001 From: Aeotec-ccheng <63321041+Aeotec-ccheng@users.noreply.github.com> Date: Tue, 6 Oct 2020 13:50:55 -0700 Subject: [PATCH 2/2] Update state check Line 137 changed to zwaveInfo.mfr == "0371" && zwaveInfo.model == "00BB" --- .../zwave-door-window-sensor.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy b/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy index 97d7cd9b68a..1e73e6afc22 100644 --- a/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy +++ b/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy @@ -134,7 +134,7 @@ def updated() { def configure() { //Recessed Door Sensor 7 - Enable Binary Sensor Report for S2 Authenticated - if (state.MSR == "0371-0102-00BB" || state.MSR == "0371-0002-00BB") { + if (zwaveInfo.mfr == "0371" || zwaveInfo.model == "00BB") { result << response(command(zwave.configurationV1.configurationSet(parameterNumber: 1, size: 1, scaledConfigurationValue: 1))) result }