Update gentle-wake-up.groovy
[smartapps.git] / official / hue-mood-lighting.groovy
index 95c99d1818c0e46639f40008bb070283f37ce4e0..abcdefa476c749837f20c723df4fe3690f8bda93 100755 (executable)
@@ -137,6 +137,8 @@ private ifSet(Map options, String name, String capability) {
 def installed() {
        log.debug "Installed with settings: ${settings}"
        subscribeToEvents()
+       // Initialize input value
+       color = "Purple"
 }
 
 def updated() {
@@ -293,8 +295,9 @@ private dayString(Date date) {
 
 
 private oncePerDayOk(Long lastTime) {
-       def result = lastTime ? dayString(new Date()) != dayString(new Date(lastTime)) : true
-       log.trace "oncePerDayOk = $result - $lastTime"
+       //def result = lastTime ? dayString(new Date()) != dayString(new Date(lastTime)) : true
+       //log.trace "oncePerDayOk = $result - $lastTime"
+       def result = true //No time implementation in our infrastructure!
        result
 }