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", 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"}'])
29 -------------------------------------------------------------------------------
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"}'])
42 -------------------------------------------------------------------------------
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"}'])
60 -------------------------------------------------------------------------------
64 String currentLock or String lockState
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"}'])
73 -------------------------------------------------------------------------------
77 String currentMotion or String motion
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"}'])
86 -------------------------------------------------------------------------------
92 String trackDescription
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"}'])
114 -------------------------------------------------------------------------------
117 //For PresenceSensor:
118 String currentPresence or String presenceState
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"}'])
127 -------------------------------------------------------------------------------
131 String currentSmokeValue or String smoke
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"}'])
144 -------------------------------------------------------------------------------
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
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"}'])
200 -------------------------------------------------------------------------------
204 String currentSwitch or switchState
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"}'])
213 -------------------------------------------------------------------------------
218 appObject.setValue([name: "Touched", value: "touched", deviceId: "appTouchID0", descriptionText: "",
219 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
223 -------------------------------------------------------------------------------
228 touchSensorObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
229 displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
233 -------------------------------------------------------------------------------
236 //For aeonKeyFob push button:
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"}'])
246 -------------------------------------------------------------------------------
249 //For acceleration sensor:
250 String currentAcceleration or String acceleration
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"}'])
259 -------------------------------------------------------------------------------
263 int currentBattery or int battery
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"}'])
269 -------------------------------------------------------------------------------
273 String currentPresence or String presence
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"}'])
282 -------------------------------------------------------------------------------
285 //For carbon monoxide:
286 String currentCarbonMonoxideValue or String carbonMonoxide
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"}'])
296 -------------------------------------------------------------------------------
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"}'])
320 -------------------------------------------------------------------------------
324 int energy or int currentEnergy
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"}'])
330 -------------------------------------------------------------------------------
333 //For illuminance measurement:
334 int illuminance or int currentIlluminance
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"}'])
340 -------------------------------------------------------------------------------
344 int power or int currentPower
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"}'])
350 -------------------------------------------------------------------------------
353 //For relative humidity measurement:
354 int humidity or int currentHumidity
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"}'])
360 -------------------------------------------------------------------------------
363 //For relay switches:
364 String currentSwitch or switchState
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"}'])
373 -------------------------------------------------------------------------------
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"}'])
386 -------------------------------------------------------------------------------
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"}'])
400 -------------------------------------------------------------------------------
404 int level or int rate
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"}'])
415 -------------------------------------------------------------------------------
418 //For temperature measurement:
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"}'])
426 -------------------------------------------------------------------------------
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"}'])
439 -------------------------------------------------------------------------------
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"}'])
452 -------------------------------------------------------------------------------
455 //For color temperature:
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"}'])
468 -------------------------------------------------------------------------------
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}'])