Skip to content

Commit

Permalink
WWST-6984,WWST-6989,WWST-6994 Fingerprints for Dawon Power Manager Sm…
Browse files Browse the repository at this point in the history
…art Switches (US) (SmartThingsCommunity#39724)

Co-authored-by: Zuzanna Wozniak/Home IoT Development (IoT) /SRPOL/Engineer/Samsung Electronics <[email protected]>
  • Loading branch information
ZWozniakS and Zuzanna Wozniak/Home IoT Development (IoT) /SRPOL/Engineer/Samsung Electronics authored Aug 6, 2020
1 parent b1c9d64 commit a4c295f
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ metadata {
capability "Sensor"
capability "Health Check"

fingerprint mfr: "018C", prod: "0061", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // addChildDevice "Dawon Smart Switch${endpoint}" 1 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0062", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // addChildDevice "Dawon Smart Switch${endpoint}" 2 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0063", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // addChildDevice "Dawon Smart Switch${endpoint}" 3 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0061", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // KR // addChildDevice "Dawon Smart Switch${endpoint}" 1 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0062", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // KR // addChildDevice "Dawon Smart Switch${endpoint}" 2 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0063", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // KR // addChildDevice "Dawon Smart Switch${endpoint}" 3 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0064", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // US // addChildDevice "Dawon Smart Switch${endpoint}" 1 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0065", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // US // addChildDevice "Dawon Smart Switch${endpoint}" 2 //Dawon Temp/Humidity Sensor
fingerprint mfr: "018C", prod: "0066", model: "0001", deviceJoinName: "Dawon Multipurpose Sensor" // US // addChildDevice "Dawon Smart Switch${endpoint}" 3 //Dawon Temp/Humidity Sensor
}

preferences {
Expand Down Expand Up @@ -332,11 +335,11 @@ private changeSwitch(endpoint, value) {
}

private getNumberOfChildFromModel() {
if (zwaveInfo.prod.equals("0063")) {
if ((zwaveInfo.prod.equals("0063")) || (zwaveInfo.prod.equals("0066"))) {
return 3
} else if (zwaveInfo.prod.equals("0062")) {
} else if ((zwaveInfo.prod.equals("0062")) || (zwaveInfo.prod.equals("0065"))) {
return 2
} else if (zwaveInfo.prod.equals("0061")) {
} else if ((zwaveInfo.prod.equals("0061")) || (zwaveInfo.prod.equals("0064"))) {
return 1
} else {
return 0
Expand Down

0 comments on commit a4c295f

Please sign in to comment.