DVCSMP-1597 Philips HUE: Bloom and Strip lights need temperature control removed

-Added new device type for Hue lights that have color control but no temperature control (Bloom/Strip)
-Add missing event to setLevel
This commit is contained in:
Lars Finander
2016-03-28 09:32:19 -07:00
parent 6ac174c2f3
commit 0c5840087b
4 changed files with 278 additions and 15 deletions

View File

@@ -1,6 +1,8 @@
/**
* Hue Bulb
*
* Philips Hue Type "Extended Color Light"
*
* Author: SmartThings
*/
@@ -69,11 +71,13 @@ metadata {
def parse(description) {
log.debug "parse() - $description"
def results = []
def map = description
if (description instanceof String) {
log.debug "Hue Bulb stringToMap - ${map}"
map = stringToMap(description)
}
if (map?.name && map?.value) {
results << createEvent(name: "${map?.name}", value: "${map?.value}")
}
@@ -229,4 +233,4 @@ def verifyPercent(percent) {
log.warn "$percent is not 0-100"
return false
}
}
}