Removing more third-party apps; fixing more bugs.
[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: "playing", deviceId: "musicPlayerID0", descriptionText: "",
97 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
98 musicPlayerObject.setValue([name: "status", value: "stopped", deviceId: "musicPlayerID0", descriptionText: "",
99 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
100 musicPlayerObject.setValue([name: "status", value: "paused", deviceId: "musicPlayerID0", descriptionText: "",
101 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
102 musicPlayerObject.setValue([name: "level", value: "36"/*A number between 0 to 100 as a charge*/, deviceId: "musicPlayerID0", descriptionText: "",
103 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
104 musicPlayerObject.setValue([name: "trackDescription", value: "someDescriptions", deviceId: "musicPlayerID0", descriptionText: "",
105 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
106 musicPlayerObject.setValue([name: "trackData", value: "someTrack", deviceId: "musicPlayerID0", descriptionText: "",
107 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
108 musicPlayerObject.setValue([name: "mute", value: "unmuted", deviceId: "musicPlayerID0", descriptionText: "",
109 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
110 musicPlayerObject.setValue([name: "mute", value: "muted", deviceId: "musicPlayerID0", descriptionText: "",
111 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
112 /*events*/
113 //
114 -------------------------------------------------------------------------------
115
116
117 //For PresenceSensor:
118 String currentPresence or String presenceState
119 /*events*/
120 presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
121 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
122 presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "",
123 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
124 /////
125 /*events*/
126 //
127 -------------------------------------------------------------------------------
128
129
130 //For SmokeDetector:
131 String currentSmokeValue or String smoke
132 /*events*/
133 smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
134 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
135 smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
136 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
137 smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
138 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
139 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
140 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
141 /////
142 /*events*/
143 //
144 -------------------------------------------------------------------------------
145
146
147 //For Thermostats:(we have different features in each line)
148 int heatingSetpoint or currentHeatingSetpoint //heating set point
149 int thermostatSetpoint //normal set point
150 int coolingSetpoint or currentCoolingSetpoint //cooling set point
151 String thermostatOperatingState //operating state
152 String thermostatFanMode //fan mode
153 String thermostatMode or currentThermostatMode //mode
154 /*events*/
155 thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
156 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
157 thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "",
158 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
159 thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "",
160 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
161 thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "",
162 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
163 thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "",
164 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
165 thermostatObject.setValue([name: "temperature", value: "55", deviceId: "thermostatID0", descriptionText: "",
166 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
167 thermostatObject.setValue([name: "heatingSetpoint", value: "40", deviceId: "thermostatID0", descriptionText: "",
168 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
169 thermostatObject.setValue([name: "coolingSetpoint", value: "60", deviceId: "thermostatID0", descriptionText: "",
170 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
171 thermostatObject.setValue([name: "thermostatSetpoint", value: "50", deviceId: "thermostatID0", descriptionText: "",
172 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
173 thermostatObject.setValue([name: "thermostatFanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
174 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
175 thermostatObject.setValue([name: "thermostatFanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "",
176 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
177 thermostatObject.setValue([name: "thermostatFanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "",
178 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
179 thermostatObject.setValue([name: "thermostatFanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "",
180 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
181 thermostatObject.setValue([name: "thermostatFanMode", value: "on", deviceId: "thermostatID0", descriptionText: "",
182 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
183 thermostatObject.setValue([name: "thermostatOperatingState", value: "cooling", deviceId: "thermostatID0", descriptionText: "",
184 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
185 thermostatObject.setValue([name: "thermostatOperatingState", value: "fan only", deviceId: "thermostatID0", descriptionText: "",
186 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
187 thermostatObject.setValue([name: "thermostatOperatingState", value: "heating", deviceId: "thermostatID0", descriptionText: "",
188 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
189 thermostatObject.setValue([name: "thermostatOperatingState", value: "idle", deviceId: "thermostatID0", descriptionText: "",
190 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
191 thermostatObject.setValue([name: "thermostatOperatingState", value: "pending cool", deviceId: "thermostatID0", descriptionText: "",
192 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
193 thermostatObject.setValue([name: "thermostatOperatingState", value: "pending heat", deviceId: "thermostatID0", descriptionText: "",
194 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
195 thermostatObject.setValue([name: "thermostatOperatingState", value: "vent economizer", deviceId: "thermostatID0", descriptionText: "",
196 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
197 /////
198 /*events*/
199 //
200 -------------------------------------------------------------------------------
201
202
203 //For Switches:
204 String currentSwitch or switchState
205 /*events*/
206 switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
207 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
208 switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
209 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
210 /////
211 /*events*/
212 //
213 -------------------------------------------------------------------------------
214
215
216 //For appTouch:
217 /*events*/
218 appObject.setValue([name: "Touched", value: "touched", deviceId: "appTouchID0", descriptionText: "",
219 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
220 /////
221 /*events*/
222 //
223 -------------------------------------------------------------------------------
224
225
226 //For nfcTouch:
227 /*events*/
228 touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
229 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
230 /////
231 /*events*/
232 //
233 -------------------------------------------------------------------------------
234
235
236 //For aeonKeyFob push button:
237 /*events*/
238 aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "",
239 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
240 aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "",
241 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
242 /////
243 /////
244 /*events*/
245 //
246 -------------------------------------------------------------------------------
247
248
249 //For acceleration sensor:
250 String currentAcceleration or String acceleration
251 /*events*/
252 accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
253 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
254 accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
255 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
256 /////
257 /*events*/
258 //
259 -------------------------------------------------------------------------------
260
261
262 //For battery:
263 int currentBattery or int battery
264 /*events*/
265 batteryObject.setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "",
266 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
267 /*events*/
268 //
269 -------------------------------------------------------------------------------
270
271
272 //For beacon sensor:
273 String currentPresence or String presence
274 /*events*/
275 beaconSensorObject.setValue([name: "presence", value: "present", deviceId: "beaconeSensorID0", descriptionText: "",
276 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
277 beaconSensorObject.setValue([name: "presence", value: "not present", deviceId: "beaconSensorID0", descriptionText: "",
278 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
279 /////
280 /*events*/
281 //
282 -------------------------------------------------------------------------------
283
284
285 //For carbon monoxide:
286 String currentCarbonMonoxideValue or String carbonMonoxide
287 /*events*/
288 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
289 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
290 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
291 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
292 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
293 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
294 /*events*/
295 //
296 -------------------------------------------------------------------------------
297
298
299 //For color control:
300 String color
301 int hue
302 int saturation
303 /*events*/
304 colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "",
305 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
306 colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "",
307 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
308 colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "",
309 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
310 colorControlObject.setValue([name: "level", value: "50", deviceId: "colorControlID0", descriptionText: "",
311 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
312 colorControlObject.setValue([name: "switch", value: "on", deviceId: "colorControlID0", descriptionText: "",
313 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
314 colorControlObject.setValue([name: "switch", value: "off", deviceId: "colorControlID0", descriptionText: "",
315 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
316 colorControlObject.setValue([name: "colorTemperature", value: "50", deviceId: "colorControlID0", descriptionText: "",
317 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
318 /*events*/
319 //
320 -------------------------------------------------------------------------------
321
322
323 //For energy meter:
324 int energy or int currentEnergy
325 /*events*/
326 energyMeterObject.setValue([name: "energy", value: "45"/*A number between 0 to 100 as a charge*/, deviceId: "energyMeterID0", descriptionText: "",
327 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
328 /*events*/
329 //
330 -------------------------------------------------------------------------------
331
332
333 //For illuminance measurement:
334 int illuminance or int currentIlluminance
335 /*events*/
336 illuminanceMeasurementObject.setValue([name: "illuminance", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "",
337 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
338 /*events*/
339 //
340 -------------------------------------------------------------------------------
341
342
343 //For power meter:
344 int power or int currentPower
345 /*events*/
346 powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "",
347 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
348 /*events*/
349 //
350 -------------------------------------------------------------------------------
351
352
353 //For relative humidity measurement:
354 int humidity or int currentHumidity
355 /*events*/
356 humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "",
357 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
358 /*events*/
359 //
360 -------------------------------------------------------------------------------
361
362
363 //For relay switches:
364 String currentSwitch or switchState
365 /*events*/
366 relaySwitchObject.setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "",
367 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
368 relaySwitchObject.setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "",
369 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
370 /////
371 /*events*/
372 //
373 -------------------------------------------------------------------------------
374
375
376 //For sleep sensor:
377 String sleeping
378 /*events*/
379 sleepSensorObject.setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "",
380 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
381 sleepSensorObject.setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "",
382 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
383 /////
384 /*events*/
385 //
386 -------------------------------------------------------------------------------
387
388
389 //For step sensor:
390 int goal
391 int steps
392 /*events*/
393 stepSensorObject.setValue([name: "goal", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
394 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
395 stepSensorObject.setValue([name: "steps", value: "46"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
396 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
397 /////
398 /*events*/
399 //
400 -------------------------------------------------------------------------------
401
402
403 //For switch levels:
404 int level or int rate
405 /*events*/
406 switchLevelObject.setValue([name: "level", value: "45"/*A number between 0 to 100*/, deviceId: "switchLevelID0", descriptionText: "",
407 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
408 switchLevelObject.setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "",
409 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
410 switchLevelObject.setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "",
411 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
412 /////
413 /*events*/
414 //
415 -------------------------------------------------------------------------------
416
417
418 //For temperature measurement:
419 int temperature
420 /*events*/
421 temperatureMeasurementObject.setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "",
422 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
423 /////
424 /*events*/
425 //
426 -------------------------------------------------------------------------------
427
428
429 //For valve:
430 String valve
431 /*events*/
432 valveObject.setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "",
433 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
434 valveObject.setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "",
435 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
436 /////
437 /*events*/
438 //
439 -------------------------------------------------------------------------------
440
441
442 //For water sensor:
443 String water
444 /*events*/
445 waterSensorObject.setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
446 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
447 waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
448 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
449 /////
450 /*events*/
451 //
452 -------------------------------------------------------------------------------
453
454
455 //For color temperature:
456 int colorTemperature
457 String switchState
458 /*events*/
459 colorTemperatureObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
460 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
461 colorTemperatureObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
462 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
463 colorTemperatureObject.setValue([name: "colorTemperature", value: "13000", deviceId: "switchID0", descriptionText: "",
464 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
465 /////
466 /*events*/
467 //
468 -------------------------------------------------------------------------------
469
470
471 //For button:
472 String button
473 /*events*/
474 buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
475 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
476 buttonObject.setValue([name: "button", value: "push", deviceId: "switchID0", descriptionText: "",
477 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
478 /////
479 /*events*/
480 //
481