// //For Alarms: String currentAlarm or String alarm /*events*/ //No events based on this device /*events*/ // ------------------------------------------------------------------------------- //For Contact Sensor: String currentContact or String contactState /*events*/ ///// contact closed event: contactObject.setValue([name: "contact.closed", value: "closed", deviceId: "contactSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// contact open event: contactObject.setValue([name: "contact.open", value: "open", deviceId: "contactSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For DoorControl: String doorState /*events*/ door closed event using doorControl: doorControlObject.setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// door open event using doorControl: doorControlObject.setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For Location: String location.mode /*events*/ location changes event: locationObject.setValue([name: "Location", value: "away", deviceId: "locationID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) locationObject.setValue([name: "Location", value: "home", deviceId: "locationID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) locationObject.setValue([name: "Location", value: "night", deviceId: "locationID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) /*events*/ // ------------------------------------------------------------------------------- //For Locks: String currentLock or String lockState /*events*/ lock event: lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// unlock event: lockObject.setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For MotionSensors: String currentMotion or String motion /*events*/ Motion sensor event: motion detected: motionSensorObject.setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// Motion sensor event: motion not detected: motionSensorObject.setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For MusicPlayer: String status /*events*/ //No events based on this device /*events*/ // ------------------------------------------------------------------------------- //For PresenceSensor: String currentPresence or String presenceState /*events*/ presence sensor, present event: presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// presence sensor, left event: presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For SmokeDetector: String currentSmokeValue or String smoke /*events*/ smoke is clear event: smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// smoke is detected event: smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// smoke is tested event: smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// carbonMonoxide is clear event: smokeDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// carbonMonoxide is detected event: smokeDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// carbonMonoxide is tested event: smokeDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// battery charge value event: smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// battery charge value event: smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For Thermostats:(we have different features in each line) String heatingSetpoint or currentHeatingSetpoint //heating set point String thermostatSetpoint //normal set point String coolingSetpoint or currentCoolingSetpoint //cooling set point String thermostatOperatingState //operating state String thermostatFanMode //fan mode String thermostatMode or currentThermostatMode //mode /*events*/ thermostad mode change event: to auto thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// thermostad mode change event: to cool thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// thermostad mode change event: to emergencyHeat thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// thermostad mode change event: to heat thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// thermostad mode change event: to off thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For Switches: String currentSwitch or switchState /*events*/ switch changes to off: switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// switch changes to on: switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For appTouch: /*events*/ appObject.setValue([name: "Touched", value: "touched", deviceId: "touchedSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For nfcTouch: /*events*/ Nfc touched event: appObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For aeonKeyFob push button: /*events*/ button pushed event: aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// button held event: aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// ///// /*events*/ // ------------------------------------------------------------------------------- //For acceleration sensor: String currentAcceleration or String acceleration /*events*/ Acceleration sensor event: acceleration detected: accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// Acceleration sensor event: acceleration not detected: accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For battery: String currentBattery or String battery /*events*/ //No events based on this device /*events*/ // ------------------------------------------------------------------------------- //For beacon sensor: String currentPresence or String presence /*events*/ beacon sensor, present event: beaconSensorObject.setValue([name: "beacon", value: "present", deviceId: "beaconeSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// beacon sensor, left event: beaconSensorObject.setValue([name: "beacon", value: "not present", deviceId: "beaconSensorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// /*events*/ // ------------------------------------------------------------------------------- //For carbon monoxide: String currentCarbonMonoxideValue or String carbonMonoxide /*events*/ carbonMonoxide is clear event: carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// carbonMonoxide is detected event: carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// carbonMonoxide is tested event: carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) /*events*/ // ------------------------------------------------------------------------------- //For color control: String color String hue String saturation /*events*/ color changed: colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// hue changed: colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) ///// saturation changed: colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "", displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]]) /*events*/ //