From 7dd549f75ce55bc5e25f8cb8cd2a33dcb3043cd8 Mon Sep 17 00:00:00 2001 From: "Marta Wierzbinska/Home IoT Development (IoT) /SRPOL/Professional/Samsung Electronics" Date: Thu, 22 Oct 2020 11:29:51 +0200 Subject: [PATCH 1/2] [WWST7126] Fingerprint for Somfy Situo 1 --- devicetypes/smartthings/ikea-button.src/ikea-button.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devicetypes/smartthings/ikea-button.src/ikea-button.groovy b/devicetypes/smartthings/ikea-button.src/ikea-button.groovy index 756465aecdd..7f386266eee 100644 --- a/devicetypes/smartthings/ikea-button.src/ikea-button.groovy +++ b/devicetypes/smartthings/ikea-button.src/ikea-button.groovy @@ -32,6 +32,7 @@ metadata { fingerprint manufacturer: "IKEA of Sweden", model: "TRADFRI open/close remote", deviceJoinName: "IKEA Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-IKEA_TRADFRI_open/close_remote" // raw description 01 0104 0203 01 07 0000 0001 0003 0009 0020 1000 FC7C 07 0003 0004 0006 0008 0019 0102 1000 //IKEA TRÅDFRI Open/Close Remote fingerprint manufacturer: "KE", model: "TRADFRI open/close remote", deviceJoinName: "IKEA Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-IKEA_TRADFRI_open/close_remote" // raw description 01 0104 0203 01 07 0000 0001 0003 0009 0020 1000 FC7C 07 0003 0004 0006 0008 0019 0102 1000 //IKEA TRÅDFRI Open/Close Remote fingerprint manufacturer: "SOMFY", model: "Situo 4 Zigbee", deviceJoinName: "SOMFY Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-Somfy_open/close_remote" // raw description 01 0104 0203 00 02 0000 0003 04 0003 0005 0006 0102 + fingerprint manufacturer: "SOMFY", model: "Situo 1 Zigbee", deviceJoinName: "SOMFY Remote Control", mnmn: "SmartThings", vid: "SmartThings-smartthings-Somfy_open/close_remote" // raw description 01 0104 0203 00 02 0000 0003 04 0003 0005 0006 0102 } tiles { @@ -366,7 +367,7 @@ private boolean isIkea() { } private boolean isSomfySituo() { - device.getDataValue("model") == "Situo 4 Zigbee" + device.getDataValue("model") == "Situo 4 Zigbee" || device.getDataValue("model") == "Situo 1 Zigbee" } private Integer getGroupAddrFromBindingTable(description) { From 111b0db60af7816b0bcd802342959f32eb70a9fe Mon Sep 17 00:00:00 2001 From: "Marta Wierzbinska/Home IoT Development (IoT) /SRPOL/Professional/Samsung Electronics" Date: Mon, 26 Oct 2020 17:27:16 +0100 Subject: [PATCH 2/2] shortened checking if is somfy situo --- devicetypes/smartthings/ikea-button.src/ikea-button.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/ikea-button.src/ikea-button.groovy b/devicetypes/smartthings/ikea-button.src/ikea-button.groovy index 7f386266eee..934ce563bb8 100644 --- a/devicetypes/smartthings/ikea-button.src/ikea-button.groovy +++ b/devicetypes/smartthings/ikea-button.src/ikea-button.groovy @@ -367,7 +367,7 @@ private boolean isIkea() { } private boolean isSomfySituo() { - device.getDataValue("model") == "Situo 4 Zigbee" || device.getDataValue("model") == "Situo 1 Zigbee" + device.getDataValue("manufacturer") == "SOMFY" } private Integer getGroupAddrFromBindingTable(description) {