// 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",
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",
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",
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",
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",
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",
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",
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",
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",
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",
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",
multiple: false,
required: false
]
-
+ //input name: "ScenarioNameA", type: "text", title: "Scenario Name", multiple: false, required: false
def inputScenarioNameA = [
name: "ScenarioNameA",
type: "text",