From e3facfcb3217832cabc6a58b578af865c43aecff Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Sat, 29 Aug 2015 20:14:26 -0700 Subject: [PATCH] Fixing the enrollment issue for the remaining IAS devices. Also cleared the long standing typo "Confuguring" --- devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy | 3 +-- .../smartthings/ge-link-bulb.src/ge-link-bulb.groovy | 3 +-- .../nyce-motion-sensor.src/nyce-motion-sensor.groovy | 6 +++--- .../nyce-open-closed-sensor.groovy | 4 ++-- .../smartsense-temp-humidity-sensor.groovy | 3 +-- .../tyco-door-window-sensor.groovy | 6 +++--- devicetypes/smartthings/wemo-bulb.src/wemo-bulb.groovy | 3 +-- 7 files changed, 12 insertions(+), 16 deletions(-) diff --git a/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy b/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy index 9107f12..fc944c2 100644 --- a/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy +++ b/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy @@ -143,8 +143,7 @@ def setLevel(value) { def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) - log.debug "Confuguring Reporting and Bindings." + log.debug "Configuring Reporting and Bindings." def configCmds = [ //Switch Reporting diff --git a/devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy b/devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy index 366e5c6..241989f 100644 --- a/devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy +++ b/devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy @@ -330,8 +330,7 @@ def setLevel(value) { def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) - log.debug "Confuguring Reporting and Bindings." + log.debug "Configuring Reporting and Bindings." def configCmds = [ //Switch Reporting diff --git a/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy b/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy index 40a76f3..854eb42 100644 --- a/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy +++ b/devicetypes/smartthings/nyce-motion-sensor.src/nyce-motion-sensor.groovy @@ -201,10 +201,10 @@ def refresh() def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) - log.debug "Confuguring Reporting, IAS CIE, and Bindings." + String zigbeeEui = swapEndianHex(device.hub.zigbeeEui) + log.debug "Configuring Reporting, IAS CIE, and Bindings." def configCmds = [ - "zcl global write 0x500 0x10 0xf0 {${zigbeeId}}", "delay 200", + "zcl global write 0x500 0x10 0xf0 {${zigbeeEui}}", "delay 200", "send 0x${device.deviceNetworkId} 1 1", "delay 1500", "zcl global send-me-a-report 1 0x20 0x20 0x3600 0x3600 {01}", "delay 200", diff --git a/devicetypes/smartthings/nyce-open-closed-sensor.src/nyce-open-closed-sensor.groovy b/devicetypes/smartthings/nyce-open-closed-sensor.src/nyce-open-closed-sensor.groovy index 2e3822b..9456a4c 100644 --- a/devicetypes/smartthings/nyce-open-closed-sensor.src/nyce-open-closed-sensor.groovy +++ b/devicetypes/smartthings/nyce-open-closed-sensor.src/nyce-open-closed-sensor.groovy @@ -280,7 +280,7 @@ private List parseIasMessage(String description) { } def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) + String zigbeeEui = swapEndianHex(device.hub.zigbeeEui) def configCmds = [ //battery reporting and heartbeat @@ -290,7 +290,7 @@ def configure() { // Writes CIE attribute on end device to direct reports to the hub's EUID - "zcl global write 0x500 0x10 0xf0 {${zigbeeId}}", "delay 200", + "zcl global write 0x500 0x10 0xf0 {${zigbeeEui}}", "delay 200", "send 0x${device.deviceNetworkId} 1 1", "delay 500", ] diff --git a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy index 2d7abaf..09cd696 100644 --- a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy +++ b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy @@ -265,8 +265,7 @@ def refresh() def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) - log.debug "Confuguring Reporting and Bindings." + log.debug "Configuring Reporting and Bindings." def configCmds = [ diff --git a/devicetypes/smartthings/tyco-door-window-sensor.src/tyco-door-window-sensor.groovy b/devicetypes/smartthings/tyco-door-window-sensor.src/tyco-door-window-sensor.groovy index 42ce155..c9ff4f3 100644 --- a/devicetypes/smartthings/tyco-door-window-sensor.src/tyco-door-window-sensor.groovy +++ b/devicetypes/smartthings/tyco-door-window-sensor.src/tyco-door-window-sensor.groovy @@ -270,12 +270,12 @@ def refresh() def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) - log.debug "Confuguring Reporting, IAS CIE, and Bindings." + String zigbeeEui = swapEndianHex(device.hub.zigbeeEui) + log.debug "Configuring Reporting, IAS CIE, and Bindings." def configCmds = [ "delay 1000", - "zcl global write 0x500 0x10 0xf0 {${zigbeeId}}", "delay 200", + "zcl global write 0x500 0x10 0xf0 {${zigbeeEui}}", "delay 200", "send 0x${device.deviceNetworkId} 1 1", "delay 1500", "zcl global send-me-a-report 1 0x20 0x20 600 3600 {01}", "delay 200", diff --git a/devicetypes/smartthings/wemo-bulb.src/wemo-bulb.groovy b/devicetypes/smartthings/wemo-bulb.src/wemo-bulb.groovy index 4cd2ce0..397ca7b 100644 --- a/devicetypes/smartthings/wemo-bulb.src/wemo-bulb.groovy +++ b/devicetypes/smartthings/wemo-bulb.src/wemo-bulb.groovy @@ -134,8 +134,7 @@ def setLevel(value) { def configure() { - String zigbeeId = swapEndianHex(device.hub.zigbeeId) - log.debug "Confuguring Reporting and Bindings." + log.debug "Configuring Reporting and Bindings." def configCmds = [ //Switch Reporting