mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-05-12 06:16:03 +01: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() {
|
||||
log.debug "Updating with settings: ${settings}"
|
||||
if(state.deviceSubscriptionMap == null){
|
||||
@@ -320,6 +326,7 @@ def locationEventHandler(evt) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*** Device Query/Update Functions ***/
|
||||
|
||||
//Endpoints function: return all device data in json format
|
||||
|
||||
Reference in New Issue
Block a user