Adding path explorations for initializations.
[smartthings-infrastructure.git] / ImageCapture / ImageCaptures.groovy
index 2a63a3e8fa806a31611a8b649496870cdfaa3229..9e5bd9ab09d5574e297560db551e06f0af47df9d 100644 (file)
@@ -20,6 +20,12 @@ public class ImageCaptures {
                this.deviceNumbers = deviceNumbers
                this.imageCaptureSensors = []
 
+               def initAlarm = Verify.getBoolean()
+               if (initAlarm) {
+                       this.alarmState = "armed"
+               } else {
+                       this.alarmState = "not armed"
+               }
                imageCaptureSensors.add(new ImageCapture(id, label, displayName, this.image, this.alarmState))
        }