From 20cb951e3641bb834ae9b2556810715e8631e464 Mon Sep 17 00:00:00 2001
From: Przemyslaw Kacprowicz
Date: Thu, 12 Sep 2019 13:22:35 +0200
Subject: [PATCH] Changed initial poll for motion status
---
.../zooz-4-in-1-sensor.src/zooz-4-in-1-sensor.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/devicetypes/smartthings/zooz-4-in-1-sensor.src/zooz-4-in-1-sensor.groovy b/devicetypes/smartthings/zooz-4-in-1-sensor.src/zooz-4-in-1-sensor.groovy
index f35390a7c5f..301b09d3636 100644
--- a/devicetypes/smartthings/zooz-4-in-1-sensor.src/zooz-4-in-1-sensor.groovy
+++ b/devicetypes/smartthings/zooz-4-in-1-sensor.src/zooz-4-in-1-sensor.groovy
@@ -195,7 +195,7 @@ def ping() {
def configure() {
def request = []
request << zwave.batteryV1.batteryGet()
- request << zwave.sensorBinaryV2.sensorBinaryGet(sensorType: 0x0C) //motion
+ request << zwave.notificationV3.notificationGet(notificationType: 0x07, event: 0x08) //motion
request << zwave.sensorMultilevelV5.sensorMultilevelGet(sensorType: 0x01) //temperature
request << zwave.sensorMultilevelV5.sensorMultilevelGet(sensorType: 0x03) //illuminance
request << zwave.sensorMultilevelV5.sensorMultilevelGet(sensorType: 0x05) //humidity