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"}'])
250 switchObject.setValue([name: "switch.off", value: "off", deviceId: "switchID0", descriptionText: "",
251 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
252 switchObject.setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "",
253 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
257 -------------------------------------------------------------------------------
262 appObject.setValue([name: "Touched", value: "touched", deviceId: "appID0", descriptionText: "",
263 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
267 -------------------------------------------------------------------------------
272 touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
273 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
277 -------------------------------------------------------------------------------
280 //For aeonKeyFob push button:
282 aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "",
283 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
284 aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "",
285 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
290 -------------------------------------------------------------------------------
293 //For acceleration sensor:
294 String currentAcceleration or String acceleration
296 accelerationSensorObject.setValue([name: "acceleration", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
297 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
298 accelerationSensorObject.setValue([name: "acceleration", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
299 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
300 accelerationSensorObject.setValue([name: "acceleration.active", value: "active", deviceId: "accelerationSensorID0", descriptionText: "",
301 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
302 accelerationSensorObject.setValue([name: "acceleration.inactive", value: "inactive", deviceId: "accelerationSensorID0", descriptionText: "",
303 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
307 -------------------------------------------------------------------------------
311 int currentBattery or int battery
313 batteryObject.setValue([name: "battery", value: "50"/*number between 0 to 100 as a string*/, deviceId: "batteryID0", descriptionText: "",
314 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
317 -------------------------------------------------------------------------------
321 String currentPresence or String presence
323 beaconSensorObject.setValue([name: "presence", value: "present", deviceId: "beaconeSensorID0", descriptionText: "",
324 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"1","dni":"mobile0"}'])
325 beaconSensorObject.setValue([name: "presence", value: "not present", deviceId: "beaconSensorID0", descriptionText: "",
326 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"presence":"0","dni":"mobile0"}'])
330 -------------------------------------------------------------------------------
333 //For carbon monoxide:
334 String currentCarbonMonoxideValue or String carbonMonoxide
336 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
337 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
338 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
339 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
340 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
341 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
342 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.clear", value: "clear", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
343 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
344 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.detected", value: "detected", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
345 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
346 carbonMonoxideDetectorObject.setValue([name: "carbonMonoxide.tested", value: "tested", deviceId: "carbonMonoxideDetectorID0", descriptionText: "",
347 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
350 -------------------------------------------------------------------------------
358 colorControlObject.setValue([name: "color", value: "red", deviceId: "colorControlID0", descriptionText: "",
359 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
360 colorControlObject.setValue([name: "hue", value: "50", deviceId: "colorControlID0", descriptionText: "",
361 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
362 colorControlObject.setValue([name: "saturation", value: "50", deviceId: "colorControlID0", descriptionText: "",
363 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
364 colorControlObject.setValue([name: "level", value: "50", deviceId: "colorControlID0", descriptionText: "",
365 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
366 colorControlObject.setValue([name: "switch", value: "on", deviceId: "colorControlID0", descriptionText: "",
367 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
368 colorControlObject.setValue([name: "switch", value: "off", deviceId: "colorControlID0", descriptionText: "",
369 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
370 colorControlObject.setValue([name: "switch.on", value: "on", deviceId: "colorControlID0", descriptionText: "",
371 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
372 colorControlObject.setValue([name: "switch.off", value: "off", deviceId: "colorControlID0", descriptionText: "",
373 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
374 colorControlObject.setValue([name: "colorTemperature", value: "50", deviceId: "colorControlID0", descriptionText: "",
375 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
378 -------------------------------------------------------------------------------
382 int energy or int currentEnergy
384 energyMeterObject.setValue([name: "energy", value: "45"/*A number between 0 to 100 as a charge*/, deviceId: "energyMeterID0", descriptionText: "",
385 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
388 -------------------------------------------------------------------------------
391 //For illuminance measurement:
392 int illuminance or int currentIlluminance
394 illuminanceMeasurementObject.setValue([name: "illuminance", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "illuminanceMeasurementID0", descriptionText: "",
395 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
398 -------------------------------------------------------------------------------
402 int power or int currentPower
404 powerMeterObject.setValue([name: "power", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "powerMeterID0", descriptionText: "",
405 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
408 -------------------------------------------------------------------------------
411 //For relative humidity measurement:
412 int humidity or int currentHumidity
414 humidityMeasurementObject.setValue([name: "humidity", value: "70"/*A number between 0 to 100 as a charge*/, deviceId: "humidityMeasurementID0", descriptionText: "",
415 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
418 -------------------------------------------------------------------------------
421 //For relay switches:
422 String currentSwitch or switchState
424 relaySwitchObject.setValue([name: "switch", value: "off", deviceId: "relaySwitchID0", descriptionText: "",
425 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
426 relaySwitchObject.setValue([name: "switch", value: "on", deviceId: "relaySwitchID0", descriptionText: "",
427 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
428 relaySwitchObject.setValue([name: "switch.off", value: "off", deviceId: "relaySwitchID0", descriptionText: "",
429 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
430 relaySwitchObject.setValue([name: "switch.on", value: "on", deviceId: "relaySwitchID0", descriptionText: "",
431 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
435 -------------------------------------------------------------------------------
441 sleepSensorObject.setValue([name: "sleeping", value: "sleeping", deviceId: "sleepSensorID0", descriptionText: "",
442 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
443 sleepSensorObject.setValue([name: "sleeping", value: "not sleeping", deviceId: "sleepSensorID0", descriptionText: "",
444 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
448 -------------------------------------------------------------------------------
455 stepSensorObject.setValue([name: "goal", value: "100"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
456 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
457 stepSensorObject.setValue([name: "steps", value: "46"/*A number*/, deviceId: "stepSensorID0", descriptionText: "",
458 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
462 -------------------------------------------------------------------------------
466 int level or int rate
468 switchLevelObject.setValue([name: "level", value: "45"/*A number between 0 to 100*/, deviceId: "switchLevelID0", descriptionText: "",
469 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
470 switchLevelObject.setValue([name: "switch", value: "on", deviceId: "switchLevelID0", descriptionText: "",
471 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
472 switchLevelObject.setValue([name: "switch", value: "off", deviceId: "switchLevelID0", descriptionText: "",
473 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
474 switchLevelObject.setValue([name: "switch.on", value: "on", deviceId: "switchLevelID0", descriptionText: "",
475 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
476 switchLevelObject.setValue([name: "switch.off", value: "off", deviceId: "switchLevelID0", descriptionText: "",
477 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
481 -------------------------------------------------------------------------------
484 //For temperature measurement:
487 temperatureMeasurementObject.setValue([name: "temperature", value: "45"/*A number between 0 to 100*/, deviceId: "temperatureMeasurementID0", descriptionText: "",
488 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
492 -------------------------------------------------------------------------------
498 valveObject.setValue([name: "contact", value: "closed", deviceId: "valveID0", descriptionText: "",
499 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
500 valveObject.setValue([name: "contact", value: "open", deviceId: "valveID0", descriptionText: "",
501 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
505 -------------------------------------------------------------------------------
511 waterSensorObject.setValue([name: "water", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
512 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
513 waterSensorObject.setValue([name: "water", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
514 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
515 waterSensorObject.setValue([name: "water.dry", value: "dry", deviceId: "waterSensorID0", descriptionText: "",
516 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
517 waterSensorObject.setValue([name: "water.wet", value: "wet", deviceId: "waterSensorID0", descriptionText: "",
518 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
522 -------------------------------------------------------------------------------
525 //For color temperature:
529 colorTemperatureObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
530 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
531 colorTemperatureObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
532 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
533 colorTemperatureObject.setValue([name: "switch.off", value: "off", deviceId: "switchID0", descriptionText: "",
534 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
535 colorTemperatureObject.setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "",
536 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
537 colorTemperatureObject.setValue([name: "colorTemperature", value: "13000", deviceId: "switchID0", descriptionText: "",
538 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
542 -------------------------------------------------------------------------------
548 buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
549 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
550 buttonObject.setValue([name: "button", value: "push", deviceId: "switchID0", descriptionText: "",
551 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])