From f84e21d83ae69f6fe4074b25034d93c4a1ce9893 Mon Sep 17 00:00:00 2001 From: Yaima Valdivia Date: Mon, 22 Feb 2016 14:55:15 -0800 Subject: [PATCH] Added colors for degrees in Celsius Emergency heat mapped to auxHeatOnly --- .../ecobee-thermostat.groovy | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy b/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy index 944b93a..802449c 100644 --- a/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy +++ b/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy @@ -45,7 +45,16 @@ metadata { valueTile("temperature", "device.temperature", width: 2, height: 2) { state("temperature", label:'${currentValue}°', unit:"F", backgroundColors:[ - [value: 31, color: "#153591"], + // Celsius + [value: 0, color: "#153591"], + [value: 7, color: "#1e9cbb"], + [value: 15, color: "#90d2a7"], + [value: 23, color: "#44b621"], + [value: 28, color: "#f1d801"], + [value: 35, color: "#d04e00"], + [value: 37, color: "#bc2323"], + // Fahrenheit + [value: 40, color: "#153591"], [value: 44, color: "#1e9cbb"], [value: 59, color: "#90d2a7"], [value: 74, color: "#44b621"], @@ -421,6 +430,10 @@ def heat() { generateStatusEvent() } +def emergencyHeat() { + auxHeatOnly() +} + def auxHeatOnly() { log.debug "auxHeatOnly" def deviceId = device.deviceNetworkId.split(/\./).last()