projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Infrastructure compatible with swiches
[smartthings-infrastructure.git]
/
SmartThing
/
SmartThings.groovy
diff --git
a/SmartThing/SmartThings.groovy
b/SmartThing/SmartThings.groovy
index aa54b7e533c65c70d54570fa4a232d2594ee545f..f2cc9e70a7e7010ffe8330be86bd3ce6f14c3862 100644
(file)
--- a/
SmartThing/SmartThings.groovy
+++ b/
SmartThing/SmartThings.groovy
@@
-1,10
+1,7
@@
//Create a class for SmartThings
package SmartThing
//Create a class for SmartThings
package SmartThing
-//Importing mutable integer class
-import MutableInteger.MutableInteger
-
-class SmartThings {
+public class SmartThings {
List smartThings = new ArrayList()
// Methods for closures
List smartThings = new ArrayList()
// Methods for closures
@@
-33,6
+30,10
@@
class SmartThings {
}
// Methods to handle events
}
// Methods to handle events
+ def eventsSince(Date dateObj, LinkedHashMap info) {
+ return smartThings[0].eventsSince()
+ }
+
def eventsSince(Date dateObj) {
return smartThings[0].eventsSince()
}
def eventsSince(Date dateObj) {
return smartThings[0].eventsSince()
}
@@
-42,6
+43,14
@@
class SmartThings {
}
// Methods to return states of the devices
}
// Methods to return states of the devices
+ def propertyMissing(String currentProperty) {
+ if (smartThings[0] == null)
+ return
+ List tmpValues = new ArrayList()
+ tmpValues.add(smartThings[0].propertyMissing(currentProperty))
+ return tmpValues
+ }
+
def currentState(String deviceFeature) {
List tmpValues = new ArrayList()
tmpValues.add(smartThings[0].currentState(deviceFeature))
def currentState(String deviceFeature) {
List tmpValues = new ArrayList()
tmpValues.add(smartThings[0].currentState(deviceFeature))