Skip to content

Commit

Permalink
update parseAduroSmartButtonMessage function (#40488)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
adurosmart and Andy Yi authored Aug 12, 2020
1 parent 878f39a commit e63468d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e63468d

Please sign in to comment.