From a7615903229b8b0ed28664638e17ffc820942b89 Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Thu, 3 Sep 2015 18:22:47 -0700 Subject: [PATCH] lifx namespace and refresh interval issue --- smartapps/smartthings/lifx-connect.src/lifx-connect.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smartapps/smartthings/lifx-connect.src/lifx-connect.groovy b/smartapps/smartthings/lifx-connect.src/lifx-connect.groovy index d822df7..df3f590 100644 --- a/smartapps/smartthings/lifx-connect.src/lifx-connect.groovy +++ b/smartapps/smartthings/lifx-connect.src/lifx-connect.groovy @@ -62,6 +62,7 @@ def authPage() { def options = locationOptions() ?: [] def count = options.size() + def refreshInterval = 3 return dynamicPage(name:"Credentials", title:"Select devices...", nextPage:"", refreshInterval:refreshInterval, install:true, uninstall: true) { section("Select your location") { @@ -372,9 +373,9 @@ def updateDevices() { data["color"] = colorUtil.hslToHex((device.color.hue / 3.6) as int, (device.color.saturation * 100) as int) data["hue"] = device.color.hue / 3.6 data["saturation"] = device.color.saturation * 100 - childDevice = addChildDevice("lifx", "LIFX Color Bulb", device.id, null, data) + childDevice = addChildDevice("smartthings", "LIFX Color Bulb", device.id, null, data) } else { - childDevice = addChildDevice("lifx", "LIFX White Bulb", device.id, null, data) + childDevice = addChildDevice("smartthings", "LIFX White Bulb", device.id, null, data) } } }