Changing a bit in illuminance class!
[smartthings-infrastructure.git] / IlluminanceMeasurement / IlluminanceMeasurements.groovy
index cf013ffbead0304fd42ebd37bdbbf8a8339f2e71..2345610679f90fe88c50817a1fe1ff296be1b2d6 100644 (file)
@@ -21,11 +21,11 @@ public class IlluminanceMeasurements {
                this.illuminanceMeasurements = []
 
                if (init) {
-                       this.illuminance = 5
-                       this.currentIlluminance = 5
-               } else {
                        this.illuminance = 20000
                        this.currentIlluminance = 20000
+               } else {
+                       this.illuminance = 5
+                       this.currentIlluminance = 5
                }
 
                illuminanceMeasurements.add(new IlluminanceMeasurement(id, label, displayName, this.illuminance))