Fix smokedetect file
[smartthings-infrastructure.git] / SmokeDetector / SmokeDetectors.groovy
index e7aec2f7aa5279456a837eb2af5f219026802670..188bb98a7acb596fdd7005660d971b12a1e29016 100644 (file)
@@ -21,6 +21,7 @@ public class SmokeDetectors {
        private String currentCarbonMonoxideValue = "clear"
        private String carbonMonoxideLatestValue = "clear"
        private int battery = 50
+        private int batteryValue = 50
        private int batteryLatestValue = 50
 
                
@@ -53,7 +54,7 @@ public class SmokeDetectors {
                        this.carbonMonoxideLatestValue = "tested"               
                }
                }*/
-               smokeDetectors.add(new SmokeDetector(id, label, displayName, this.currentSmokeValue, this.smokeLatestValue))
+               smokeDetectors.add(new SmokeDetector(id, label, displayName, this.currentSmokeValue, this.smokeLatestValue, this.carbonMonoideValue, this.batteryValue))
        }
 
        //By Model Checker