diff --git a/smartapps/smartthings/mood-cube.src/mood-cube.groovy b/smartapps/smartthings/mood-cube.src/mood-cube.groovy index 41e87c9..cfca67a 100644 --- a/smartapps/smartthings/mood-cube.src/mood-cube.groovy +++ b/smartapps/smartthings/mood-cube.src/mood-cube.groovy @@ -225,7 +225,7 @@ private restoreStates(sceneId) { if (type == "level") { log.debug "${light.displayName} level is '$level'" if (level != null) { - light.setLevel(value) + light.setLevel(level) } } else if (type == "color") {