3 String currentAlarm or String alarm
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"}'])
15 -------------------------------------------------------------------------------
19 String currentContact or String contactState
22 contactObject.setValue([name: "contact.closed", value: "closed", deviceId: "contactSensorID0", descriptionText: "",
23 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
24 contactObject.setValue([name: "contact.open", value: "open", deviceId: "contactSensorID0", descriptionText: "",
25 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
26 contactObject.setValue([name: "contact", value: "open", deviceId: "contactSensorID0", descriptionText: "",
27 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
28 contactObject.setValue([name: "contact", value: "closed", deviceId: "contactSensorID0", descriptionText: "",
29 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
30 contactObject.setValue([name: "tamper.tampered", value: "open", deviceId: "contactSensorID0", descriptionText: "",
31 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
32 contactObject.setValue([name: "tamper.tampered", value: "closed", deviceId: "contactSensorID0", descriptionText: "",
33 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
37 -------------------------------------------------------------------------------
43 doorControlObject.setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "",
44 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
45 doorControlObject.setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "",
46 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
50 -------------------------------------------------------------------------------
56 locationObject.setValue([name: "Location", value: "away", deviceId: "locationID0", descriptionText: "",
57 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
58 locationObject.setValue([name: "Location", value: "home", deviceId: "locationID0", descriptionText: "",
59 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
60 locationObject.setValue([name: "Location", value: "night", deviceId: "locationID0", descriptionText: "",
61 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
62 locationObject.setValue([name: "mode", value: "away", deviceId: "locationID0", descriptionText: "",
63 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
64 locationObject.setValue([name: "mode", value: "home", deviceId: "locationID0", descriptionText: "",
65 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
66 locationObject.setValue([name: "mode", value: "night", deviceId: "locationID0", descriptionText: "",
67 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
70 -------------------------------------------------------------------------------
74 String currentLock or String lockState
76 lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
77 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
78 lockObject.setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "",
79 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
80 lockObject.setValue([name: "lock", value: "unlocked", deviceId: "lockID0", descriptionText: "",
81 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
85 -------------------------------------------------------------------------------
89 String currentMotion or String motion
91 motionSensorObject.setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "",
92 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
93 motionSensorObject.setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "",
94 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
95 motionSensorObject.setValue([name: "motion.active", value: "active", deviceId: "motionSensorID0", descriptionText: "",
96 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
97 motionSensorObject.setValue([name: "motion.inactive", value: "inactive", deviceId: "motionSensorID0", descriptionText: "",
98 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
102 -------------------------------------------------------------------------------
108 String trackDescription
112 musicPlayerObject.setValue([name: "status", value: "playing", deviceId: "musicPlayerID0", descriptionText: "",
113 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
114 musicPlayerObject.setValue([name: "status", value: "stopped", deviceId: "musicPlayerID0", descriptionText: "",
115 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
116 musicPlayerObject.setValue([name: "status", value: "paused", deviceId: "musicPlayerID0", descriptionText: "",
117 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
118 musicPlayerObject.setValue([name: "level", value: "36"/*A number between 0 to 100 as a charge*/, deviceId: "musicPlayerID0", descriptionText: "",
119 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
120 musicPlayerObject.setValue([name: "trackDescription", value: "someDescriptions", deviceId: "musicPlayerID0", descriptionText: "",
121 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
122 musicPlayerObject.setValue([name: "trackData", value: "someTrack", deviceId: "musicPlayerID0", descriptionText: "",
123 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
124 musicPlayerObject.setValue([name: "mute", value: "unmuted", deviceId: "musicPlayerID0", descriptionText: "",
125 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
126 musicPlayerObject.setValue([name: "mute", value: "muted", deviceId: "musicPlayerID0", descriptionText: "",
127 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
130 -------------------------------------------------------------------------------
133 //For PresenceSensor:
134 String currentPresence or String presenceState
136 presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
137 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
138 presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "",
139 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
140 presenceSensorObject.setValue([name: "presence.present", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
141 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
145 -------------------------------------------------------------------------------
149 String currentSmokeValue or String smoke
151 smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
152 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
153 smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
154 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
155 smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
156 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
157 smokeDetectorObject.setValue([name: "smoke.clear", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
158 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
159 smokeDetectorObject.setValue([name: "smoke.detected", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
160 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
161 smokeDetectorObject.setValue([name: "smoke.tested", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
162 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
163 smokeDetectorObject.setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
164 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
165 smokeDetectorObject.setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
166 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
167 smokeDetectorObject.setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
168 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
169 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
170 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
174 -------------------------------------------------------------------------------
177 //For Thermostats:(we have different features in each line)
178 int heatingSetpoint or currentHeatingSetpoint //heating set point
179 int thermostatSetpoint //normal set point
180 int coolingSetpoint or currentCoolingSetpoint //cooling set point
181 String thermostatOperatingState //operating state
182 String thermostatFanMode //fan mode
183 String thermostatMode or currentThermostatMode //mode
185 thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
186 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
187 thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "",
188 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
189 thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "",
190 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
191 thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "",
192 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
193 thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "",
194 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
195 thermostatObject.setValue([name: "temperature", value: "55", deviceId: "thermostatID0", descriptionText: "",
196 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
197 thermostatObject.setValue([name: "heatingSetpoint", value: "40", deviceId: "thermostatID0", descriptionText: "",
198 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
199 thermostatObject.setValue([name: "coolingSetpoint", value: "60", deviceId: "thermostatID0", descriptionText: "",
200 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
201 thermostatObject.setValue([name: "thermostatSetpoint", value: "50", deviceId: "thermostatID0", descriptionText: "",
202 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
203 thermostatObject.setValue([name: "thermostatFanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
204 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
205 thermostatObject.setValue([name: "thermostatFanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "",
206 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
207 thermostatObject.setValue([name: "thermostatFanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "",
208 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
209 thermostatObject.setValue([name: "thermostatFanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "",
210 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
211 thermostatObject.setValue([name: "thermostatFanMode", value: "on", deviceId: "thermostatID0", descriptionText: "",
212 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
213 thermostatObject.setValue([name: "fanMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
214 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
215 thermostatObject.setValue([name: "fanMode", value: "fanCirculate", deviceId: "thermostatID0", descriptionText: "",
216 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
217 thermostatObject.setValue([name: "fanMode", value: "circulate", deviceId: "thermostatID0", descriptionText: "",
218 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
219 thermostatObject.setValue([name: "fanMode", value: "fanOn", deviceId: "thermostatID0", descriptionText: "",
220 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
221 thermostatObject.setValue([name: "fanMode", value: "on", deviceId: "thermostatID0", descriptionText: "",
222 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
223 thermostatObject.setValue([name: "thermostatOperatingState", value: "cooling", deviceId: "thermostatID0", descriptionText: "",
224 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
225 thermostatObject.setValue([name: "thermostatOperatingState", value: "fan only", deviceId: "thermostatID0", descriptionText: "",
226 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
227 thermostatObject.setValue([name: "thermostatOperatingState", value: "heating", deviceId: "thermostatID0", descriptionText: "",
228 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
229 thermostatObject.setValue([name: "thermostatOperatingState", value: "idle", deviceId: "thermostatID0", descriptionText: "",
230 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
231 thermostatObject.setValue([name: "thermostatOperatingState", value: "pending cool", deviceId: "thermostatID0", descriptionText: "",
232 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
233 thermostatObject.setValue([name: "thermostatOperatingState", value: "pending heat", deviceId: "thermostatID0", descriptionText: "",
234 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
235 thermostatObject.setValue([name: "thermostatOperatingState", value: "vent economizer", deviceId: "thermostatID0", descriptionText: "",
236 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
240 -------------------------------------------------------------------------------
244 String currentSwitch or switchState
246 switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
247 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
248 switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
249 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
253 -------------------------------------------------------------------------------
258 appObject.setValue([name: "Touched", value: "touched", deviceId: "appID0", descriptionText: "",
259 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
263 -------------------------------------------------------------------------------
268 touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
269 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
273 -------------------------------------------------------------------------------
276 //For aeonKeyFob push button:
278 aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "",
279 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
280 aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "",
281 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
286 -------------------------------------------------------------------------------
289 //For acceleration sensor:
290 String currentAcceleration or String acceleration
292 accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
293 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
294 accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
295 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
296 accelerationSensorObject.setValue([name: "acceleration.active", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
297 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
298 accelerationSensorObject.setValue([name: "acceleration.inactive", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
299 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
303 -------------------------------------------------------------------------------
307 int currentBattery or int battery
309 batteryObject.setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "",
310 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
313 -------------------------------------------------------------------------------
317 String currentPresence or String presence
319 beaconSensorObject.setValue([name: "presence", value: "present", deviceId: "beaconeSensorID0", descriptionText: "",
320 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
321 beaconSensorObject.setValue([name: "presence", value: "not present", deviceId: "beaconSensorID0", descriptionText: "",
322 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
326 -------------------------------------------------------------------------------
329 //For carbon monoxide:
330 String currentCarbonMonoxideValue or String carbonMonoxide
332 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
333 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
334 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
335 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
336 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
337 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
338 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
339 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
340 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
341 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
342 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
343 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
346 -------------------------------------------------------------------------------
354 colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "",
355 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
356 colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "",
357 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
358 colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "",
359 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
360 colorControlObject.setValue([name: "level", value: "50", deviceId: "colorControlID0", descriptionText: "",
361 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
362 colorControlObject.setValue([name: "switch", value: "on", deviceId: "colorControlID0", descriptionText: "",
363 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
364 colorControlObject.setValue([name: "switch", value: "off", deviceId: "colorControlID0", descriptionText: "",
365 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
366 colorControlObject.setValue([name: "colorTemperature", value: "50", deviceId: "colorControlID0", descriptionText: "",
367 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
370 -------------------------------------------------------------------------------
374 int energy or int currentEnergy
376 energyMeterObject.setValue([name: "energy", value: "45"/*A number between 0 to 100 as a charge*/, deviceId: "energyMeterID0", descriptionText: "",
377 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
380 -------------------------------------------------------------------------------
383 //For illuminance measurement:
384 int illuminance or int currentIlluminance
386 illuminanceMeasurementObject.setValue([name: "illuminance", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "",
387 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
390 -------------------------------------------------------------------------------
394 int power or int currentPower
396 powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "",
397 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
400 -------------------------------------------------------------------------------
403 //For relative humidity measurement:
404 int humidity or int currentHumidity
406 humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "",
407 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
410 -------------------------------------------------------------------------------
413 //For relay switches:
414 String currentSwitch or switchState
416 relaySwitchObject.setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "",
417 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
418 relaySwitchObject.setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "",
419 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
423 -------------------------------------------------------------------------------
429 sleepSensorObject.setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "",
430 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
431 sleepSensorObject.setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "",
432 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
436 -------------------------------------------------------------------------------
443 stepSensorObject.setValue([name: "goal", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
444 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
445 stepSensorObject.setValue([name: "steps", value: "46"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
446 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
450 -------------------------------------------------------------------------------
454 int level or int rate
456 switchLevelObject.setValue([name: "level", value: "45"/*A number between 0 to 100*/, deviceId: "switchLevelID0", descriptionText: "",
457 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
458 switchLevelObject.setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "",
459 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
460 switchLevelObject.setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "",
461 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
465 -------------------------------------------------------------------------------
468 //For temperature measurement:
471 temperatureMeasurementObject.setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "",
472 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
476 -------------------------------------------------------------------------------
482 valveObject.setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "",
483 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
484 valveObject.setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "",
485 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
489 -------------------------------------------------------------------------------
495 waterSensorObject.setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
496 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
497 waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
498 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
499 waterSensorObject.setValue([name: "water.dry", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
500 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
501 waterSensorObject.setValue([name: "water.wet", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
502 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])