mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-05-20 06:08:49 +01:00
updating name
This commit is contained in:
+14
-14
@@ -5,18 +5,18 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
definition(
|
definition(
|
||||||
name: "LIFX",
|
name: "LIFX (Connect)",
|
||||||
namespace: "lifx",
|
namespace: "smartthings",
|
||||||
author: "LIFX",
|
author: "LIFX",
|
||||||
description: "Allows you to use LIFX smart light bulbs with SmartThings.",
|
description: "Allows you to use LIFX smart light bulbs with SmartThings.",
|
||||||
category: "Convenience",
|
category: "Convenience",
|
||||||
iconUrl: "https://cloud.lifx.com/images/lifx.png",
|
iconUrl: "https://cloud.lifx.com/images/lifx.png",
|
||||||
iconX2Url: "https://cloud.lifx.com/images/lifx.png",
|
iconX2Url: "https://cloud.lifx.com/images/lifx.png",
|
||||||
iconX3Url: "https://cloud.lifx.com/images/lifx.png",
|
iconX3Url: "https://cloud.lifx.com/images/lifx.png",
|
||||||
oauth: true) {
|
oauth: true) {
|
||||||
appSetting "clientId"
|
appSetting "clientId"
|
||||||
appSetting "clientSecret"
|
appSetting "clientSecret"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
preferences {
|
preferences {
|
||||||
@@ -110,7 +110,7 @@ def oauthCallback() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def oauthReceiveToken(redirectUrl = null) {
|
def oauthReceiveToken(redirectUrl = null) {
|
||||||
// no idea what redirectUrl is for
|
|
||||||
log.debug "receiveToken - params: ${params}"
|
log.debug "receiveToken - params: ${params}"
|
||||||
def oauthParams = [ client_id: "${appSettings.clientId}", client_secret: "${appSettings.clientSecret}", grant_type: "authorization_code", code: params.code, scope: params.scope ] // how is params.code valid here?
|
def oauthParams = [ client_id: "${appSettings.clientId}", client_secret: "${appSettings.clientSecret}", grant_type: "authorization_code", code: params.code, scope: params.scope ] // how is params.code valid here?
|
||||||
def params = [
|
def params = [
|
||||||
@@ -338,7 +338,7 @@ def devicesList(selector = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Map locationOptions() {
|
Map locationOptions() {
|
||||||
// poll() // why do we call here?
|
|
||||||
def options = [:]
|
def options = [:]
|
||||||
def devices = devicesList()
|
def devices = devicesList()
|
||||||
devices.each { device ->
|
devices.each { device ->
|
||||||
Reference in New Issue
Block a user