From 25ae1306c40da7077aea4087b1e1c25d7ac500b9 Mon Sep 17 00:00:00 2001 From: Yaima Valdivia Date: Mon, 14 Mar 2016 12:30:03 -0700 Subject: [PATCH] Ecobee - mode/ fan mode --- .../ecobee-thermostat.src/ecobee-thermostat.groovy | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy b/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy index d51b45a..7b08b14 100644 --- a/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy +++ b/devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy @@ -379,14 +379,16 @@ def getDataByName(String name) { state[name] ?: device.getDataValue(name) } -def setThermostatMode(String value) { - log.debug "setThermostatMode({$value})" - switchToMode(value) +def setThermostatMode(String mode) { + log.debug "setThermostatMode($mode)" + mode = mode.toLowerCase() + switchToMode(mode) } -def setThermostatFanMode(String value) { - log.debug "setThermostatFanMode({$value})" - switchToFanMode(value) +def setThermostatFanMode(String mode) { + log.debug "setThermostatFanMode($mode)" + mode = mode.toLowerCase() + switchToFanMode(mode) } def generateModeEvent(mode) {