Changes in classes: new concept for latest value + all types of events generated...
[smartthings-infrastructure.git] / AccelerationSensor / AccelerationSensor.groovy
index 1bec3cd303ea0785c7a499fde1525cf05b16420c..78a9bed73ee91a74c48af4af5c3c46897777a28d 100644 (file)
@@ -22,8 +22,8 @@ public class AccelerationSensor {
        }
 
        def setValue(String value) {
-               this.accelerationLatestValue = acceleration
                println("the acceleration sensor with id:$id is triggered to $value!")
+               this.accelerationLatestValue = value
                this.acceleration = value
                this.currentAcceleration = value
                this.states.add(value)