Update gideon-smart-home.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 5 Aug 2019 20:47:01 +0000 (13:47 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 5 Aug 2019 20:47:01 +0000 (13:47 -0700)
official/gideon-smart-home.groovy

index a4a6a67c0b71b99b386de01de753de9e0cba3918..439793ef3adb90a9926763ea8a8fe2e939aa09c2 100755 (executable)
@@ -307,74 +307,6 @@ def getAllDevices() {
     return outlets_list + kelvin_list + colors_list + switchlevels_list + smokes_list + contact_list + water_sensors_list + shades_list + garage_list + locks_list + presences_list + motions_list + switches_list + temp_list + meters_list + battery_list
 }
 
-//thermostat
-/*
-def setCoolTemp() {
-       def device = thermostats.find { it.id == params.id }
-        if (!device) {
-            httpError(404, "Device not found")
-        } else {
-            if(device.hasCommand("setCoolingSetpoint")) {
-               device.setCoolingSetpoint(params.temp.toInteger());
-                return [result_action: "200"]
-            }
-            else {
-               httpError(510, "Not supported!")
-            }
-       }
-}
-def setHeatTemp() {
-       def device = thermostats.find { it.id == params.id }
-        if (!device) {
-            httpError(404, "Device not found")
-        } else {
-            if(device.hasCommand("setHeatingSetpoint")) {
-               device.setHeatingSetpoint(params.temp.toInteger());
-                return [result_action: "200"]
-            }
-            else {
-               httpError(510, "Not supported!")
-            }
-       }
-}
-def setFanMode() {
-       def device = thermostats.find { it.id == params.id }
-        if (!device) {
-            httpError(404, "Device not found")
-        } else {
-        if(device.hasCommand("setThermostatFanMode")) {
-               device.setThermostatFanMode(params.mode);
-                return [result_action: "200"]
-            }
-            else {
-               httpError(510, "Not supported!")
-            }
-       }
-}
-def setThermostatMode() {
-       def device = thermostats.find { it.id == params.id }
-        if (!device) {
-            httpError(404, "Device not found")
-        } else {
-        if(device.hasCommand("setThermostatMode")) {
-               device.setThermostatMode(params.mode);
-                return [result_action: "200"]
-            }
-            else {
-               httpError(510, "Not supported!")
-            }
-       }
-}
-def getThermostatStatus() {
-       def device = thermostats.find{ it.id == params.id }
-    if (!device) {
-            httpError(404, "Device not found")
-        } else {
-               return [ThermostatOperatingState: device.currentValue('thermostatOperatingState'), ThermostatSetpoint: device.currentValue('thermostatSetpoint'), 
-                               ThermostatFanMode: device.currentValue('thermostatFanMode'), ThermostatMode: device.currentValue('thermostatMode')]
-               }
-}
-*/
 //light
 def turnOnLight() {
     def device = switches.find { it.id == params.id }