this.deviceNumbers = deviceNumbers
this.accelerationSensors = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.acceleration = "inactive"
this.accelerationLatestValue = "inactive"
} else {
this.acceleration = "active"
this.accelerationLatestValue = "active"
- }
+ }*/
accelerationSensors.add(new AccelerationSensor(id, label, displayName, this.acceleration, this.accelerationLatestValue))
}
this.deviceNumbers = deviceNumbers
this.alarms = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.alarm = "off"
this.currentAlarm = "off"
this.alarm = "on"
this.currentAlarm = "on"
this.alarmLatestValue = "on"
- }
+ }*/
alarms.add(new Alarm(sendEvent, id, label, displayName, this.alarm, this.currentAlarm, this.alarmLatestValue))
}
this.deviceNumbers = deviceNumbers
this.batteries = []
- def init = Verify.getIntFromList(30, 50, 70)
- this.battery = init
+ //def init = Verify.getIntFromList(30, 50, 70)
+ //this.battery = init
batteries.add(new Battery(id, label, displayName, this.battery))
}
this.deviceNumbers = deviceNumbers
this.beaconSensors = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.presence = "not present"
this.presenceLatestValue = "not present"
} else {
this.presence = "present"
this.presenceLatestValue = "present"
- }
+ }*/
beaconSensors.add(new BeaconSensor(id, label, displayName, this.presence, this.presenceLatestValue))
}
this.deviceNumbers = deviceNumbers
this.carbonMonoxideDetectors = []
- def init = Verify.getInt(0,2)
+ /*def init = Verify.getInt(0,2)
if (init == 0) {
this.carbonMonoxide = "clear"
this.carbonMonoxideLatestValue = "clear"
} else {
this.carbonMonoxide = "tested"
this.carbonMonoxideLatestValue = "tested"
- }
+ }*/
carbonMonoxideDetectors.add(new CarbonMonoxideDetector(id, label, displayName, this.currentCarbonMonoxideValue, this.carbonMonoxideLatestValue))
}
this.deviceNumbers = deviceNumbers
this.colorControls = []
- def initHue = Verify.getIntFromList(30, 50, 70)
+ /*def initHue = Verify.getIntFromList(30, 50, 70)
this.hue = initHue
def initSat = Verify.getIntFromList(40, 50, 60)
this.saturation = initSat
this.color = "green"
} else {
this.color = "blue"
- }
+ }*/
colorControls.add(new ColorControl(id, label, displayName, this.color, this.hue, this.saturation))
}
this.deviceNumbers = deviceNumbers
this.contacts = []
- def initSensor = Verify.getBoolean()
+ /*def initSensor = Verify.getBoolean()
if (initSensor) {
this.contactState = "closed"
this.currentContact = "closed"
this.alarmState = "armed"
} else {
this.alarmState = "not armed"
- }
+ }*/
contacts.add(new ContactSensor(id, label, displayName, this.contactState, this.currentContact, this.alarmState, this.latestValue))
}
this.deviceNumbers = deviceNumbers
this.doorControls = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.doorState = "closed"
this.doorLatestValue = "closed"
} else {
this.doorState = "open"
this.doorLatestValue = "open"
- }
+ }*/
doorControls.add(new DoorControl(sendEvent, id, label, displayName, this.doorState, this.doorLatestValue))
}
this.deviceNumbers = deviceNumbers
this.energyMeters = []
- def init = Verify.getIntFromList(30, 50, 70)
- this.energy = init
+ //def init = Verify.getIntFromList(30, 50, 70)
+ //this.energy = init
energyMeters.add(new EnergyMeter(id, label, displayName, this.energy))
}
this.deviceNumbers = deviceNumbers
this.illuminanceMeasurements = []
- def init = Verify.getIntFromList(40000, 50000, 60000)
- this.illuminance = init
+ //def init = Verify.getIntFromList(40000, 50000, 60000)
+ //this.illuminance = init
illuminanceMeasurements.add(new IlluminanceMeasurement(id, label, displayName, this.illuminance))
}
this.deviceNumbers = deviceNumbers
this.imageCaptureSensors = []
- def initAlarm = Verify.getBoolean()
+ /*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))
}
this.deviceNumbers = deviceNumbers
this.locks = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.lockState = "locked"
this.lockLatestValue = "locked"
} else {
this.lockState = "unlocked"
this.lockLatestValue = "unlocked"
- }
+ }*/
locks.add(new Lock(sendEvent,id, label, displayName, this.lockState, this.lockLatestValue))
}
this.deviceNumbers = deviceNumbers
this.motionSensors = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.motion = "inactive"
this.motionLatestValue = "inactive"
} else {
this.motion = "active"
this.motionLatestValue = "active"
- }
+ }*/
motionSensors.add(new MotionSensor(id, label, displayName, this.motion, this.motionLatestValue))
}
this.deviceNumbers = deviceNumbers
this.musicPlayers = []
- def initLevel = Verify.getIntFromList(10, 20, 30)
+ /*def initLevel = Verify.getIntFromList(10, 20, 30)
this.level = initLevel
def initMute = Verify.getBoolean()
if (initMute) {
this.trackDescription = "someDescriptions"
} else {
this.trackDescription = "someOtherDescriptions"
- }
+ }*/
musicPlayers.add(new MusicPlayer(sendEvent, id, label, displayName, this.level, this.mute, this.status, this.trackNumber, this.trackData, this.trackDescription))
}
this.deviceNumbers = deviceNumbers
this.powerMeters = []
- def init = Verify.getIntFromList(30, 50, 70)
- this.power = init
+ //def init = Verify.getIntFromList(30, 50, 70)
+ //this.power = init
powerMeters.add(new PowerMeter(id, label, displayName, this.power))
}
this.sendEvent = sendEvent
this.deviceNumbers = deviceNumbers
this.presenceSensors = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.presence = "not present"
this.presenceLatestValue = "not present"
} else {
this.presence = "present"
this.presenceLatestValue = "present"
- }
+ }*/
presenceSensors.add(new PresenceSensor(id, label, displayName, this.presence, this.presenceLatestValue))
}
this.deviceNumbers = deviceNumbers
this.humidityMeasurements = []
- def init = Verify.getIntFromList(30, 50, 70)
- this.humidity = init
+ //def init = Verify.getIntFromList(30, 50, 70)
+ //this.humidity = init
humidityMeasurements.add(new RelativeHumidityMeasurement(id, label, displayName, this.humidity))
}
this.deviceNumbers = deviceNumbers
this.relaySwitches = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.switchState = "off"
this.currentSwitch = "off"
this.switchState = "on"
this.currentSwitch = "on"
this.switchLatestValue = "on"
- }
+ }*/
relaySwitches.add(new RelaySwitch(sendEvent, id, label, displayName, this.switchState, this.currentSwitch, this.switchLatestValue))
}
this.deviceNumbers = deviceNumbers
this.sleepSensors = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.sleeping = "sleeping"
} else {
this.sleeping = "not sleeping"
- }
+ }*/
sleepSensors.add(new SleepSensor(id, label, displayName, this.sleeping))
}
this.deviceNumbers = deviceNumbers
this.smokeDetectors = []
- def init = Verify.getInt(0,2)
+ /*def init = Verify.getInt(0,2)
if (init == 0) {
this.currentSmokeValue = "clear"
this.smokeLatestValue = "clear"
} else {
this.currentSmokeValue = "tested"
this.smokeLatestValue = "tested"
- }
+ }*/
smokeDetectors.add(new SmokeDetector(id, label, displayName, this.currentSmokeValue, this.smokeLatestValue))
}
this.deviceNumbers = deviceNumbers
this.speechSynthesises = []
- def init = Verify.getIntFromList(30, 50, 70)
- this.level = init
+ //def init = Verify.getIntFromList(30, 50, 70)
+ //this.level = init
speechSynthesises.add(new SpeechSynthesis(id, label, displayName, this.level))
}
this.deviceNumbers = deviceNumbers
this.stepSensors = []
- def initGoal = Verify.getIntFromList(1000, 2000, 3000)
+ /*def initGoal = Verify.getIntFromList(1000, 2000, 3000)
this.goal = initGoal
def initSteps = Verify.getIntFromList(0, 1, 2)
- this.steps = initSteps
+ this.steps = initSteps*/
stepSensors.add(new StepSensor(id, label, displayName, this.steps, this.goal))
}
this.deviceNumbers = deviceNumbers
this.switches = []
- def initLevel = Verify.getIntFromList(30, 50, 70)
+ /*def initLevel = Verify.getIntFromList(30, 50, 70)
this.currentLevel = initLevel
def init = Verify.getBoolean()
if (init) {
this.switchState = "on"
this.currentSwitch = "on"
this.switchLatestValue = "on"
- }
+ }*/
switches.add(new Switch(sendEvent, id, label, displayName, this.switchState, this.currentSwitch, this.currentLevel, this.switchLatestValue))
}
this.deviceNumbers = deviceNumbers
this.switchLevels = []
- def initLevel = Verify.getIntFromList(30, 50, 70)
+ /*def initLevel = Verify.getIntFromList(30, 50, 70)
this.level = initLevel
def init = Verify.getBoolean()
if (init) {
this.switchState = "on"
this.currentSwitch = "on"
this.switchLatestValue = "on"
- }
+ }*/
switchLevels.add(new SwitchLevel(sendEvent, id, label, displayName, this.level, this.switchState, this.switchLatestValue))
}
this.deviceNumbers = deviceNumbers
this.temperatureMeasurements = []
- def initTemp = Verify.getIntFromList(30, 50, 70)
- this.temperature = initTemp
+ //def initTemp = Verify.getIntFromList(30, 50, 70)
+ //this.temperature = initTemp
temperatureMeasurements.add(new TemperatureMeasurement(id, label, displayName, this.temperature))
}
this.deviceNumbers = deviceNumbers
this.thermostats = []
- def initTemperature = Verify.getIntFromList(60, 66, 70)
+ /*def initTemperature = Verify.getIntFromList(60, 66, 70)
this.temperature = initTemperature
def initCoolingSetpoint = Verify.getIntFromList(70, 80, 90)
} else {
this.thermostatMode = "off"
this.currentThermostatMode = "off"
- }
+ }*/
thermostats.add(new Thermostat(sendEvent, id, label, displayName, this.temperature, this.currentCoolingSetpoint,
this.currentHeatingSetpoint, this.coolingSetpoint, this.thermostatSetpoint, this.heatingSetpoint, this.coolingSetpointRange,
this.deviceNumbers = deviceNumbers
this.valves = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.valve = "closed"
this.valveLatestValue = "closed"
} else {
this.valve = "open"
this.valveLatestValue = "open"
- }
+ }*/
valves.add(new Valve(sendEvent, id, label, displayName, this.valve, this.valveLatestValue))
}
this.deviceNumbers = deviceNumbers
this.waterSensors = []
- def init = Verify.getBoolean()
+ /*def init = Verify.getBoolean()
if (init) {
this.water = "dry"
} else {
this.water = "wet"
- }
+ }*/
waterSensors.add(new WaterSensor(id, label, displayName, this.water))
}