From 088e746f9914edfbfe5ff7ea749e9034b9e17a46 Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Wed, 30 Sep 2015 15:00:17 -0700 Subject: [PATCH] AppEngine issue with state syncing handled here. --- devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 241989f..e48822f 100644 --- a/devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy +++ b/devicetypes/smartthings/ge-link-bulb.src/ge-link-bulb.groovy @@ -317,7 +317,7 @@ def setLevel(value) { state.trigger = "setLevel" state.lvl = "${level}" - if (dimRate) { + if (dimRate && (state?.rate != null)) { cmds << "st cmd 0x${device.deviceNetworkId} 1 8 4 {${level} ${state.rate}}" } else {