Update lighting-director.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Fri, 9 Aug 2019 18:59:04 +0000 (11:59 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Fri, 9 Aug 2019 18:59:04 +0000 (11:59 -0700)
official/lighting-director.groovy

index 29dea73..a73c496 100755 (executable)
@@ -83,7 +83,7 @@ def pageSetup() {
 
 // Show "pageSetupScenarioA" page
 def pageSetupScenarioA() {
-
+    //input name: "A_switches", type: "capability.switch", title: "Control the following switches...", multiple: true, required: false
     def inputLightsA = [
         name:       "A_switches",
         type:       "capability.switch",
@@ -91,6 +91,7 @@ def pageSetupScenarioA() {
         multiple:   true,
         required:   false
     ]
+    //input name: "A_dimmers", type: "capability.switchLevel", title: "Dim the following...", multiple: true, required: false
     def inputDimmersA = [
         name:       "A_dimmers",
         type:       "capability.switchLevel",
@@ -98,7 +99,7 @@ def pageSetupScenarioA() {
         multiple:   true,
         required:   false
     ]
-
+    //input name: "A_motion", type: "capability.motionSensor", title: "Using these motion sensors...", multiple: true, required: false
     def inputMotionA = [
         name:       "A_motion",
         type:       "capability.motionSensor",
@@ -106,7 +107,7 @@ def pageSetupScenarioA() {
         multiple:   true,
         required:   false
     ]
-    
+    //input name: "A_acceleration", type: "capability.accelerationSensor", title: "Or using these acceleration sensors...", multiple: true, required: false
        def inputAccelerationA = [
                name:       "A_acceleration",
                type:       "capability.accelerationSensor",
@@ -114,6 +115,7 @@ def pageSetupScenarioA() {
                multiple:   true,
                required:   false
        ]
+    //input name: "A_contact", type: "capability.contactSensor", title: "Or using these contact sensors...", multiple: true, required: false
     def inputContactA = [
         name:       "A_contact",
         type:       "capability.contactSensor",
@@ -121,21 +123,21 @@ def pageSetupScenarioA() {
         multiple:   true,
         required:   false
     ]
-    
+    //input name: "A_triggerOnce", type: "bool", title: "Trigger only once per day...", defaultValue: false
     def inputTriggerOnceA = [
        name:       "A_triggerOnce",
         type:       "bool",
         title:      "Trigger only once per day...",
         defaultValue:false
     ]
-    
+    //input name: "A_switchDisable", type: "bool", title: "Stop triggering if physical switches/dimmers are turned off...", defaultValue: false
     def inputSwitchDisableA = [
        name:       "A_switchDisable",
         type:       "bool",
         title:      "Stop triggering if physical switches/dimmers are turned off...",
         defaultValue:false
     ]
-    
+    //input name: "A_lock", type: "capability.lock", title: "Or using these locks....", multiple: true, required: false
     def inputLockA = [
         name:       "A_lock",
         type:       "capability.lock",
@@ -143,7 +145,7 @@ def pageSetupScenarioA() {
         multiple:   true,
         required:   false
     ]
-    
+    //input name: "A_mode", type: "mode", title: "Only during the following modes...", multiple: true, required: false
     def inputModeA = [
         name:       "A_mode",
         type:       "mode",
@@ -151,7 +153,7 @@ def pageSetupScenarioA() {
         multiple:   true,
         required:   false
     ]
-    
+    //input name: "A_day", type: "enum", options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], title: "Only on certain days of the week...", multiple: true, required: false
     def inputDayA = [
         name:       "A_day",
         type:       "enum",
@@ -161,16 +163,17 @@ def pageSetupScenarioA() {
         required:   false
     ]
     
-    
+    //input name: "A_level", type: "enum", options: [10,20,30,40,50,60,70,80,90,100], title: "Set dimmers to this level", multiple: false, required: false
     def inputLevelA = [
         name:       "A_level",
         type:       "enum",
-        options: [[10:"10%"],[20:"20%"],[30:"30%"],[40:"40%"],[50:"50%"],[60:"60%"],[70:"70%"],[80:"80%"],[90:"90%"],[100:"100%"]],
+        options: [10,20,30,40,50,60,70,80,90,100],
         title:      "Set dimmers to this level",
         multiple:   false,
         required:   false
     ]
     
+    //input name: "A_turnOnLux", type: "number", title: "Only run this scenario if lux is below...", multiple: false, required: false
     def inputTurnOnLuxA = [
         name:       "A_turnOnLux",
         type:       "number",
@@ -178,7 +181,7 @@ def pageSetupScenarioA() {
         multiple:   false,
         required:   false
     ]
-    
+    //input name: "A_luxSensors", type: "capability.illuminanceMeasurement", title: "On these lux sensors", multiple: false, required: false
     def inputLuxSensorsA = [
         name:       "A_luxSensors",
         type:       "capability.illuminanceMeasurement",
@@ -186,7 +189,7 @@ def pageSetupScenarioA() {
         multiple:   false,
         required:   false
     ]
-    
+     //input name: "A_turnOff", type: "number", title: "Turn off this scenario after motion stops or doors close/lock (minutes)...", multiple: false, required: false
     def inputTurnOffA = [
         name:       "A_turnOff",
         type:       "number",
@@ -194,7 +197,7 @@ def pageSetupScenarioA() {
         multiple:   false,
         required:   false
     ]
-    
+    //input name: "ScenarioNameA", type: "text", title: "Scenario Name", multiple: false, required: false
     def inputScenarioNameA = [
         name:       "ScenarioNameA",
         type:       "text",