3 String currentAlarm or String alarm
5 //No events based on this device
8 -------------------------------------------------------------------------------
12 String currentContact or String contactState
16 contactObject.setValue([name: "contact.closed", value: "closed", deviceId: "contactSensorID0", descriptionText: "",
17 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
20 contactObject.setValue([name: "contact.open", value: "open", deviceId: "contactSensorID0", descriptionText: "",
21 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
25 -------------------------------------------------------------------------------
31 door closed event using doorControl:
32 doorControlObject.setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "",
33 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
35 door open event using doorControl:
36 doorControlObject.setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "",
37 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
41 -------------------------------------------------------------------------------
47 location changes event:
48 locationObject.setValue([name: "Location", value: "away", deviceId: "locationID0", descriptionText: "",
49 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
50 locationObject.setValue([name: "Location", value: "home", deviceId: "locationID0", descriptionText: "",
51 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
52 locationObject.setValue([name: "Location", value: "night", deviceId: "locationID0", descriptionText: "",
53 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
56 -------------------------------------------------------------------------------
60 String currentLock or String lockState
63 lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
64 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
67 lockObject.setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "",
68 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
72 -------------------------------------------------------------------------------
76 String currentMotion or String motion
78 Motion sensor event: motion detected:
79 motionSensorObject.setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "",
80 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
82 Motion sensor event: motion not detected:
83 motionSensorObject.setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "",
84 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
88 -------------------------------------------------------------------------------
94 //No events based on this device
97 -------------------------------------------------------------------------------
100 //For PresenceSensor:
101 String currentPresence or String presenceState
103 presence sensor, present event:
104 presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
105 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
107 presence sensor, left event:
108 presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "",
109 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
113 -------------------------------------------------------------------------------
117 String currentSmokeValue or String smoke
119 smoke is clear event:
120 smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
121 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
123 smoke is detected event:
124 smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
125 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
127 smoke is tested event:
128 smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
129 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
131 carbonMonoxide is clear event:
132 smokeDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
133 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
135 carbonMonoxide is detected event:
136 smokeDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
137 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
139 carbonMonoxide is tested event:
140 smokeDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
141 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
143 battery charge value event:
144 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
145 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
147 battery charge value event:
148 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
149 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
153 -------------------------------------------------------------------------------
156 //For Thermostats:(we have different features in each line)
157 String heatingSetpoint or currentHeatingSetpoint //heating set point
158 String thermostatSetpoint //normal set point
159 String coolingSetpoint or currentCoolingSetpoint //cooling set point
160 String thermostatOperatingState //operating state
161 String thermostatFanMode //fan mode
162 String thermostatMode or currentThermostatMode //mode
164 thermostad mode change event: to auto
165 thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
166 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
168 thermostad mode change event: to cool
169 thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "",
170 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
172 thermostad mode change event: to emergencyHeat
173 thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "",
174 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
176 thermostad mode change event: to heat
177 thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "",
178 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
180 thermostad mode change event: to off
181 thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "",
182 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
186 -------------------------------------------------------------------------------
190 String currentSwitch or switchState
192 switch changes to off:
193 switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
194 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
196 switch changes to on:
197 switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
198 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
202 -------------------------------------------------------------------------------
207 appObject.setValue([name: "Touched", value: "touched", deviceId: "touchedSensorID0", descriptionText: "",
208 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
212 -------------------------------------------------------------------------------
218 appObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
219 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
223 -------------------------------------------------------------------------------
226 //For aeonKeyFob push button:
229 aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "",
230 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
233 aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "",
234 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
239 -------------------------------------------------------------------------------
242 //For acceleration sensor:
243 String currentAcceleration or String acceleration
245 Acceleration sensor event: acceleration detected:
246 accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
247 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
249 Acceleration sensor event: acceleration not detected:
250 accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
251 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
255 -------------------------------------------------------------------------------
259 String currentBattery or String battery
261 //No events based on this device
264 -------------------------------------------------------------------------------
268 String currentPresence or String presence
270 beacon sensor, present event:
271 beaconSensorObject.setValue([name: "beacon", value: "present", deviceId: "beaconeSensorID0", descriptionText: "",
272 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
274 beacon sensor, left event:
275 beaconSensorObject.setValue([name: "beacon", value: "not present", deviceId: "beaconSensorID0", descriptionText: "",
276 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
280 -------------------------------------------------------------------------------
283 //For carbon monoxide:
284 String currentCarbonMonoxideValue or String carbonMonoxide
286 carbonMonoxide is clear event:
287 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
288 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
290 carbonMonoxide is detected event:
291 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
292 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
294 carbonMonoxide is tested event:
295 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
296 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
299 -------------------------------------------------------------------------------
308 colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "",
309 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
312 colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "",
313 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
316 colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "",
317 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])