mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-28 05:13:07 +00:00
Modifying 'Publish a SmartApp for OpenT2T - Update sensor and subscriptions.'
This commit is contained in:
@@ -108,6 +108,12 @@ mappings {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def installed() {
|
||||||
|
log.debug "Installing with settings: ${settings}"
|
||||||
|
initialize()
|
||||||
|
}
|
||||||
|
|
||||||
def updated() {
|
def updated() {
|
||||||
log.debug "Updating with settings: ${settings}"
|
log.debug "Updating with settings: ${settings}"
|
||||||
if(state.deviceSubscriptionMap == null){
|
if(state.deviceSubscriptionMap == null){
|
||||||
@@ -320,6 +326,7 @@ def locationEventHandler(evt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*** Device Query/Update Functions ***/
|
/*** Device Query/Update Functions ***/
|
||||||
|
|
||||||
//Endpoints function: return all device data in json format
|
//Endpoints function: return all device data in json format
|
||||||
|
|||||||
Reference in New Issue
Block a user