From e63468defbebe70fae0370eace3523ec50f65e93 Mon Sep 17 00:00:00 2001 From: ADUROSMART ERIA <52692745+adurosmart@users.noreply.github.com> Date: Thu, 13 Aug 2020 03:00:19 +0800 Subject: [PATCH] update parseAduroSmartButtonMessage function (#40488) Some customers reported that the buttons 1 and 4 are not sensitive, so restore the zigbee.ONOFF_CLUSTER event trigger of button 1 and button 4, which will increase the success rate of event reporting after the button is pressed Co-authored-by: Andy Yi --- .../zigbee-multi-button.src/zigbee-multi-button.groovy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devicetypes/smartthings/zigbee-multi-button.src/zigbee-multi-button.groovy b/devicetypes/smartthings/zigbee-multi-button.src/zigbee-multi-button.groovy index 1c1ece30a0a..317bab3c551 100644 --- a/devicetypes/smartthings/zigbee-multi-button.src/zigbee-multi-button.groovy +++ b/devicetypes/smartthings/zigbee-multi-button.src/zigbee-multi-button.groovy @@ -279,7 +279,13 @@ private getButtonName() { private Map parseAduroSmartButtonMessage(Map descMap){ def buttonState = "pushed" def buttonNumber = 0 - if (descMap.clusterInt == ADUROSMART_SPECIFIC_CLUSTER) { + if (descMap.clusterInt == zigbee.ONOFF_CLUSTER) { + if (descMap.command == "01") { + buttonNumber = 1 + } else if (descMap.command == "00") { + buttonNumber = 4 + } + } else if (descMap.clusterInt == ADUROSMART_SPECIFIC_CLUSTER) { def list2 = descMap.data buttonNumber = (list2[1] as int) + 1 }