mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-05 14:23:09 +01:00
merged and made some slight adjustments
This commit is contained in:
@@ -102,9 +102,6 @@ def subscribeToEvents() {
|
|||||||
if (contacts != null) {
|
if (contacts != null) {
|
||||||
subscribe(contacts, "contact", genericHandler)
|
subscribe(contacts, "contact", genericHandler)
|
||||||
}
|
}
|
||||||
if (doorsControllers != null) {
|
|
||||||
subscribe(doorsControllers, "door", genericHandler)
|
|
||||||
}
|
|
||||||
if (energyMeters != null) {
|
if (energyMeters != null) {
|
||||||
subscribe(energyMeters, "energy", genericHandler)
|
subscribe(energyMeters, "energy", genericHandler)
|
||||||
}
|
}
|
||||||
@@ -182,7 +179,6 @@ def getAccessKey() {
|
|||||||
httpError(404, "Access Key Not Found")
|
httpError(404, "Access Key Not Found")
|
||||||
} else {
|
} else {
|
||||||
[
|
[
|
||||||
grokerRootUrl: atomicState.grokerRootUrl,
|
|
||||||
accessKey: atomicState.accessKey
|
accessKey: atomicState.accessKey
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -275,8 +271,7 @@ def createBucket() {
|
|||||||
uri: "https://${atomicState.grokerSubdomain}.initialstate.com/api/buckets",
|
uri: "https://${atomicState.grokerSubdomain}.initialstate.com/api/buckets",
|
||||||
headers: [
|
headers: [
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-IS-AccessKey": accessKey,
|
"X-IS-AccessKey": accessKey
|
||||||
"Accept-Version": "0.0.1"
|
|
||||||
],
|
],
|
||||||
body: bucketCreateBody
|
body: bucketCreateBody
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user