3 String currentAlarm or String alarm
5 //No events based on this device
8 -------------------------------------------------------------------------------
12 String currentContact or String contactState
16 contactObject.setValue([name: "contact.closed", value: "closed", deviceId: "contactSensorID0", descriptionText: "",
17 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
20 contactObject.setValue([name: "contact.open", value: "open", deviceId: "contactSensorID0", descriptionText: "",
21 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
25 -------------------------------------------------------------------------------
31 door closed event using doorControl:
32 doorControlObject.setValue([name: "doorState", value: "closed", deviceId: "doorControlID0", descriptionText: "",
33 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
35 door open event using doorControl:
36 doorControlObject.setValue([name: "doorState", value: "open", deviceId: "doorControlID0", descriptionText: "",
37 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
41 -------------------------------------------------------------------------------
47 location changes event:
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"]])
56 -------------------------------------------------------------------------------
60 String currentLock or String lockState
63 lockObject.setValue([name: "lock", value: "locked", deviceId: "lockID0", descriptionText: "",
64 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
67 lockObject.setValue([name: "unlock", value: "unlocked ", deviceId: "lockID0", descriptionText: "",
68 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
72 -------------------------------------------------------------------------------
76 String currentMotion or String motion
78 Motion sensor event: motion detected:
79 doorControlObject.setValue([name: "motion", value: "active", deviceId: "motionSensorID0", descriptionText: "",
80 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
82 Motion sensor event: motion not detected:
83 doorControlObject.setValue([name: "motion", value: "inactive", deviceId: "motionSensorID0", descriptionText: "",
84 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
88 -------------------------------------------------------------------------------
94 //No events based on this device
97 -------------------------------------------------------------------------------
100 //For PresenceSensor:
101 String currentPresence or String presenceState
103 presence sensor, present event:
104 presenceSensorObject.setValue([name: "presence", value: "present", deviceId: "presenceSensorID0", descriptionText: "",
105 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
107 presence sensor, left event:
108 presenceSensorObject.setValue([name: "presence", value: "not present", deviceId: "presenceSensorID0", descriptionText: "",
109 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
113 -------------------------------------------------------------------------------
117 String currentSmokeValue or String smoke
119 smoke is clear event:
120 smokeDetectorObject.setValue([name: "smoke", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
121 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
123 smoke is detected event:
124 smokeDetectorObject.setValue([name: "smoke", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
125 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
127 smoke is tested event:
128 smokeDetectorObject.setValue([name: "smoke", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
129 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
131 carbonMonoxide is clear event:
132 smokeDetectorObject.setValue([name: "carbonMonoxide", value: "clear", deviceId: "smokeDetectorID0", descriptionText: "",
133 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
135 carbonMonoxide is detected event:
136 smokeDetectorObject.setValue([name: "carbonMonoxide", value: "detected", deviceId: "smokeDetectorID0", descriptionText: "",
137 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
139 carbonMonoxide is tested event:
140 smokeDetectorObject.setValue([name: "carbonMonoxide", value: "tested", deviceId: "smokeDetectorID0", descriptionText: "",
141 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
143 battery charge value event:
144 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
145 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
147 battery charge value event:
148 smokeDetectorObject.setValue([name: "battery", value: "5"/*A number between 0 to 100 as a charge*/, deviceId: "smokeDetectorID0", descriptionText: "",
149 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
153 -------------------------------------------------------------------------------
156 //For Thermostats:(we have different features in each line)
157 String heatingSetpoint or currentHeatingSetpoint //heating set point
158 String thermostatSetpoint //normal set point
159 String coolingSetpoint or currentCoolingSetpoint //cooling set point
160 String thermostatOperatingState //operating state
161 String thermostatFanMode //fan mode
162 String thermostatMode or currentThermostatMode //mode
164 thermostad mode change event: to auto
165 thermostatObject.setValue([name: "thermostatMode", value: "auto", deviceId: "thermostatID0", descriptionText: "",
166 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
168 thermostad mode change event: to cool
169 thermostatObject.setValue([name: "thermostatMode", value: "cool", deviceId: "thermostatID0", descriptionText: "",
170 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
172 thermostad mode change event: to emergencyHeat
173 thermostatObject.setValue([name: "thermostatMode", value: "emergencyHeat", deviceId: "thermostatID0", descriptionText: "",
174 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
176 thermostad mode change event: to heat
177 thermostatObject.setValue([name: "thermostatMode", value: "heat", deviceId: "thermostatID0", descriptionText: "",
178 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
180 thermostad mode change event: to off
181 thermostatObject.setValue([name: "thermostatMode", value: "off", deviceId: "thermostatID0", descriptionText: "",
182 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
186 -------------------------------------------------------------------------------
190 String currentSwitch or switchState
192 switch changes to off:
193 switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
194 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
196 switch changes to on:
197 switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
198 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
202 -------------------------------------------------------------------------------
207 appObject.setValue([name: "Touched", value: "touched", deviceId: "touchedSensorID0", descriptionText: "",
208 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
212 -------------------------------------------------------------------------------
218 appObject.setValue([name: "nfcTouch", value: "touched", deviceId: "nfcSensorID0", descriptionText: "",
219 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
223 -------------------------------------------------------------------------------
226 //For aeonKeyFob push button:
229 aeonKeyFobObject.setValue([name: "button", value: "pushed", deviceId: "aeonKeyFobID0", descriptionText: "",
230 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
233 aeonKeyFobObject.setValue([name: "button", value: "held", deviceId: "aeonKeyFobID0", descriptionText: "",
234 displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])