Adding speechesAppList
[smartthings-infrastructure.git] / Variables and events for each device
1 //
2 //For Alarms:
3 String currentAlarm or String alarm
4 /*events*/
5 alarmObject.setValue([name: "alarm", value: "both", deviceId: "alarmID0", descriptionText: "",
6 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
7 alarmObject.setValue([name: "alarm", value: "siren", deviceId: "alarmID0", descriptionText: "",
8 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
9 alarmObject.setValue([name: "alarm", value: "strobe", deviceId: "alarmID0", descriptionText: "",
10 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
11 alarmObject.setValue([name: "alarm", value: "off", deviceId: "alarmID0", descriptionText: "",
12 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
13 /*events*/
14 //
15 -------------------------------------------------------------------------------
16
17
18 //For Contact Sensor:
19 String currentContact or String contactState
20 /*events*/
21 /////
22 contactObject.setValue([name: "contact", value: "open", deviceId: "contactSensorID0", descriptionText: "",
23 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
24 contactObject.setValue([name: "contact", value: "closed", deviceId: "contactSensorID0", descriptionText: "",
25 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
26 /////
27 /*events*/
28 //
29 -------------------------------------------------------------------------------
30
31
32 //For DoorControl:
33 String doorState
34 /*events*/
35 doorControlObject.setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "",
36 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
37 doorControlObject.setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "",
38 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
39 /////
40 /*events*/
41 //
42 -------------------------------------------------------------------------------
43
44
45 //For Location:
46 String location.mode
47 /*events*/
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"}'])
54 locationObject.setValue([name: "sunset", value: "sunset", deviceId: "locationID0", descriptionText: "",
55 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
56 locationObject.setValue([name: "sunrise", value: "sunrise", deviceId: "locationID0", descriptionText: "",
57 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
58 /*events*/
59 //
60 -------------------------------------------------------------------------------
61
62
63 //For Locks:
64 String currentLock or String lockState
65 /*events*/
66 lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
67 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
68 lockObject.setValue([name: "lock", value: "unlocked", deviceId: "lockID0", descriptionText: "",
69 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
70 /////
71 /*events*/
72 //
73 -------------------------------------------------------------------------------
74
75
76 //For MotionSensors:
77 String currentMotion or String motion
78 /*events*/
79 motionSensorObject.setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "",
80 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
81 motionSensorObject.setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "",
82 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
83 /////
84 /*events*/
85 //
86 -------------------------------------------------------------------------------
87
88
89 //For MusicPlayer:
90 String status
91 int level
92 String trackDescription
93 String trackData
94 String mute
95 /*events*/
96 musicPlayerObject.setValue([name: "status", value: "play", deviceId: "musicPlayerID0", descriptionText: "",
97 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
98 musicPlayerObject.setValue([name: "status", value: "stop", deviceId: "musicPlayerID0", descriptionText: "",
99 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
100 musicPlayerObject.setValue([name: "status", value: "pause", deviceId: "musicPlayerID0", descriptionText: "",
101 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
102 musicPlayerObject.setValue([name: "status", value: "on", deviceId: "musicPlayerID0", descriptionText: "",
103 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
104 musicPlayerObject.setValue([name: "status", value: "off", deviceId: "musicPlayerID0", descriptionText: "",
105 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
106 musicPlayerObject.setValue([name: "level", value: "36"/*A number between 0 to 100 as a charge*/, deviceId: "musicPlayerID0", descriptionText: "",
107 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
108 musicPlayerObject.setValue([name: "trackDescription", value: "someDescriptions", deviceId: "musicPlayerID0", descriptionText: "",
109 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
110 musicPlayerObject.setValue([name: "trackData", value: "someTrack", deviceId: "musicPlayerID0", descriptionText: "",
111 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
112 musicPlayerObject.setValue([name: "mute", value: "unmuted", deviceId: "musicPlayerID0", descriptionText: "",
113 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
114 musicPlayerObject.setValue([name: "mute", value: "muted", deviceId: "musicPlayerID0", descriptionText: "",
115 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
116 /*events*/
117 //
118 -------------------------------------------------------------------------------
119
120
121 //For PresenceSensor:
122 String currentPresence or String presenceState
123 /*events*/
124 presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
125 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
126 presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "",
127 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
128 /////
129 /*events*/
130 //
131 -------------------------------------------------------------------------------
132
133
134 //For SmokeDetector:
135 String currentSmokeValue or String smoke
136 /*events*/
137 smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
138 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
139 smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
140 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
141 smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
142 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
143 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
144 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
145 /////
146 /*events*/
147 //
148 -------------------------------------------------------------------------------
149
150
151 //For Thermostats:(we have different features in each line)
152 int heatingSetpoint or currentHeatingSetpoint //heating set point
153 int thermostatSetpoint //normal set point
154 int coolingSetpoint or currentCoolingSetpoint //cooling set point
155 String thermostatOperatingState //operating state
156 String thermostatFanMode //fan mode
157 String thermostatMode or currentThermostatMode //mode
158 /*events*/
159 thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
160 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
161 thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "",
162 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
163 thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "",
164 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
165 thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "",
166 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
167 thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "",
168 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
169 thermostatObject.setValue([name: "temperature", value: "55", deviceId: "thermostatID0", descriptionText: "",
170 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
171 thermostatObject.setValue([name: "heatingSetpoint", value: "40", deviceId: "thermostatID0", descriptionText: "",
172 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
173 thermostatObject.setValue([name: "coolingSetpoint", value: "60", deviceId: "thermostatID0", descriptionText: "",
174 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
175 thermostatObject.setValue([name: "thermostatSetpoint", value: "50", deviceId: "thermostatID0", descriptionText: "",
176 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
177 thermostatObject.setValue([name: "thermostatFanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
178 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
179 thermostatObject.setValue([name: "thermostatFanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "",
180 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
181 thermostatObject.setValue([name: "thermostatFanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "",
182 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
183 thermostatObject.setValue([name: "thermostatFanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "",
184 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
185 thermostatObject.setValue([name: "thermostatFanMode", value: "on", deviceId: "thermostatID0", descriptionText: "",
186 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
187 thermostatObject.setValue([name: "thermostatOperatingState", value: "cooling", deviceId: "thermostatID0", descriptionText: "",
188 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
189 thermostatObject.setValue([name: "thermostatOperatingState", value: "fan only", deviceId: "thermostatID0", descriptionText: "",
190 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
191 thermostatObject.setValue([name: "thermostatOperatingState", value: "heating", deviceId: "thermostatID0", descriptionText: "",
192 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
193 thermostatObject.setValue([name: "thermostatOperatingState", value: "idle", deviceId: "thermostatID0", descriptionText: "",
194 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
195 thermostatObject.setValue([name: "thermostatOperatingState", value: "pending cool", deviceId: "thermostatID0", descriptionText: "",
196 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
197 thermostatObject.setValue([name: "thermostatOperatingState", value: "pending heat", deviceId: "thermostatID0", descriptionText: "",
198 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
199 thermostatObject.setValue([name: "thermostatOperatingState", value: "vent economizer", deviceId: "thermostatID0", descriptionText: "",
200 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
201 /////
202 /*events*/
203 //
204 -------------------------------------------------------------------------------
205
206
207 //For Switches:
208 String currentSwitch or switchState
209 /*events*/
210 switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
211 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
212 switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
213 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
214 /////
215 /*events*/
216 //
217 -------------------------------------------------------------------------------
218
219
220 //For appTouch:
221 /*events*/
222 appObject.setValue([name: "Touched", value: "touched", deviceId: "appTouchID0", descriptionText: "",
223 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
224 /////
225 /*events*/
226 //
227 -------------------------------------------------------------------------------
228
229
230 //For nfcTouch:
231 /*events*/
232 touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
233 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
234 /////
235 /*events*/
236 //
237 -------------------------------------------------------------------------------
238
239
240 //For aeonKeyFob push button:
241 /*events*/
242 aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "",
243 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
244 aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "",
245 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
246 /////
247 /////
248 /*events*/
249 //
250 -------------------------------------------------------------------------------
251
252
253 //For acceleration sensor:
254 String currentAcceleration or String acceleration
255 /*events*/
256 accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
257 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
258 accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
259 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
260 /////
261 /*events*/
262 //
263 -------------------------------------------------------------------------------
264
265
266 //For battery:
267 int currentBattery or int battery
268 /*events*/
269 batteryObject.setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "",
270 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
271 /*events*/
272 //
273 -------------------------------------------------------------------------------
274
275
276 //For beacon sensor:
277 String currentPresence or String presence
278 /*events*/
279 beaconSensorObject.setValue([name: "presence", value: "present", deviceId: "beaconeSensorID0", descriptionText: "",
280 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
281 beaconSensorObject.setValue([name: "presence", value: "not present", deviceId: "beaconSensorID0", descriptionText: "",
282 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
283 /////
284 /*events*/
285 //
286 -------------------------------------------------------------------------------
287
288
289 //For carbon monoxide:
290 String currentCarbonMonoxideValue or String carbonMonoxide
291 /*events*/
292 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
293 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
294 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
295 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
296 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
297 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
298 /*events*/
299 //
300 -------------------------------------------------------------------------------
301
302
303 //For color control:
304 String color
305 int hue
306 int saturation
307 /*events*/
308 colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "",
309 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
310 colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "",
311 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
312 colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "",
313 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
314 colorControlObject.setValue([name: "level", value: "50", deviceId: "colorControlID0", descriptionText: "",
315 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
316 colorControlObject.setValue([name: "switch", value: "on", deviceId: "colorControlID0", descriptionText: "",
317 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
318 colorControlObject.setValue([name: "switch", value: "off", deviceId: "colorControlID0", descriptionText: "",
319 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
320 colorControlObject.setValue([name: "colorTemperature", value: "50", deviceId: "colorControlID0", descriptionText: "",
321 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
322 /*events*/
323 //
324 -------------------------------------------------------------------------------
325
326
327 //For energy meter:
328 int energy or int currentEnergy
329 /*events*/
330 energyMeterObject.setValue([name: "energy", value: "45"/*A number between 0 to 100 as a charge*/, deviceId: "energyMeterID0", descriptionText: "",
331 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
332 /*events*/
333 //
334 -------------------------------------------------------------------------------
335
336
337 //For illuminance measurement:
338 int illuminance or int currentIlluminance
339 /*events*/
340 illuminanceMeasurementObject.setValue([name: "illuminance", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "",
341 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
342 /*events*/
343 //
344 -------------------------------------------------------------------------------
345
346
347 //For power meter:
348 int power or int currentPower
349 /*events*/
350 powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "",
351 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
352 /*events*/
353 //
354 -------------------------------------------------------------------------------
355
356
357 //For relative humidity measurement:
358 int humidity or int currentHumidity
359 /*events*/
360 humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "",
361 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
362 /*events*/
363 //
364 -------------------------------------------------------------------------------
365
366
367 //For relay switches:
368 String currentSwitch or switchState
369 /*events*/
370 relaySwitchObject.setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "",
371 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
372 relaySwitchObject.setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "",
373 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
374 /////
375 /*events*/
376 //
377 -------------------------------------------------------------------------------
378
379
380 //For sleep sensor:
381 String sleeping
382 /*events*/
383 sleepSensorObject.setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "",
384 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
385 sleepSensorObject.setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "",
386 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
387 /////
388 /*events*/
389 //
390 -------------------------------------------------------------------------------
391
392
393 //For step sensor:
394 int goal
395 int steps
396 /*events*/
397 stepSensorObject.setValue([name: "goal", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
398 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
399 stepSensorObject.setValue([name: "steps", value: "46"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
400 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
401 /////
402 /*events*/
403 //
404 -------------------------------------------------------------------------------
405
406
407 //For switch levels:
408 int level or int rate
409 /*events*/
410 switchLevelObject.setValue([name: "level", value: "45"/*A number between 0 to 100*/, deviceId: "switchLevelID0", descriptionText: "",
411 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
412 switchLevelObject.setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "",
413 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
414 switchLevelObject.setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "",
415 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
416 /////
417 /*events*/
418 //
419 -------------------------------------------------------------------------------
420
421
422 //For temperature measurement:
423 int temperature
424 /*events*/
425 temperatureMeasurementObject.setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "",
426 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
427 /////
428 /*events*/
429 //
430 -------------------------------------------------------------------------------
431
432
433 //For valve:
434 String valve
435 /*events*/
436 valveObject.setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "",
437 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
438 valveObject.setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "",
439 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
440 /////
441 /*events*/
442 //
443 -------------------------------------------------------------------------------
444
445
446 //For water sensor:
447 String water
448 /*events*/
449 waterSensorObject.setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
450 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
451 waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
452 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
453 /////
454 /*events*/
455 //
456 -------------------------------------------------------------------------------
457
458
459 //For color temperature:
460 int colorTemperature
461 String switchState
462 /*events*/
463 colorTemperatureObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
464 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
465 colorTemperatureObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
466 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
467 colorTemperatureObject.setValue([name: "colorTemperature", value: "13000", deviceId: "switchID0", descriptionText: "",
468 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
469 /////
470 /*events*/
471 //
472 -------------------------------------------------------------------------------
473
474
475 //For button:
476 String button
477 /*events*/
478 buttonObject.setValue([name: "button", value: "held", deviceId: "buttonID0", descriptionText: "",
479 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
480 buttonObject.setValue([name: "button", value: "push", deviceId: "buttonID0", descriptionText: "",
481 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
482 /////
483 /*events*/
484 //
485 -------------------------------------------------------------------------------
486
487
488 //For threeAxis:
489 LinkedHashMap threeAxis
490 /*events*/
491 threeAxisObject.setValue([name: "threeAxis", value: '{"x": 1, "y": 2, "z": 3}', deviceId: "threeAxisID0", descriptionText: "",
492 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
493 /////
494 /*events*/
495 //
496