From 66d2f5584543ab6e655e207b6857dd92e2f90306 Mon Sep 17 00:00:00 2001 From: Onivla <53094348+Onivla@users.noreply.github.com> Date: Sat, 1 Jan 2022 16:00:21 -0500 Subject: [PATCH] Update august-lock-pro-zwave-lock-with-doorsense.groovy Fixed issue with child device (contact sensor) status not updating correctly. The issue appears to have been caused by a SmartThings app update. Removed reference to componentName and componentLabel during addChildDevice. For reference: https://github.com/InovelliUSA/SmartThingsInovelli/commit/68c703e701a0c8920e51c0d89fcbd44837c3253c --- .../august-lock-pro-zwave-lock-with-doorsense.groovy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/devicetypes/rafaelborja/august-lock-pro-zwave-lock-with-doorsense.src/august-lock-pro-zwave-lock-with-doorsense.groovy b/devicetypes/rafaelborja/august-lock-pro-zwave-lock-with-doorsense.src/august-lock-pro-zwave-lock-with-doorsense.groovy index 51be08b..af62008 100644 --- a/devicetypes/rafaelborja/august-lock-pro-zwave-lock-with-doorsense.src/august-lock-pro-zwave-lock-with-doorsense.groovy +++ b/devicetypes/rafaelborja/august-lock-pro-zwave-lock-with-doorsense.src/august-lock-pro-zwave-lock-with-doorsense.groovy @@ -1851,9 +1851,7 @@ private createContactChildDevice() { device.hubId, [completedSetup: true, label: "${device.displayName} door contact sensor", - isComponent: false, - componentName: "contactsensor", - componentLabel: "door contact sensor"]) + isComponent: false]) log.debug "[DTH] Contact child device added" @@ -1895,4 +1893,4 @@ private updateChildContactDevice(value) { log.debug "[DTH] Sending update to child ${child.displayName} (deviceNetworkId ${child.deviceNetworkId}) value: $value" child.sendEvent(name: "contact", value: value, descriptionText: "Door is $value", displayed: true, isStateChange: true) } -} \ No newline at end of file +}