Using less Verify calls for Thermostats.groovy.
authorrtrimana <rtrimana@uci.edu>
Mon, 5 Aug 2019 00:55:01 +0000 (17:55 -0700)
committerrtrimana <rtrimana@uci.edu>
Mon, 5 Aug 2019 00:55:01 +0000 (17:55 -0700)
Thermostat/Thermostats.groovy

index b2abdcb..59d6bca 100644 (file)
@@ -46,19 +46,19 @@ public class Thermostats{
                this.deviceNumbers = deviceNumbers
                this.thermostats = []
 
-               /*def initTemperature = Verify.getIntFromList(60, 66, 70)
+               def initTemperature = Verify.getIntFromList(60, 66)
                this.temperature = initTemperature
                this.currentTemperature = initTemperature
                
-               def initCoolingSetpoint = Verify.getIntFromList(70, 80, 90)
+               def initCoolingSetpoint = Verify.getIntFromList(70, 80)
                this.currentCoolingSetpoint = initCoolingSetpoint
                this.coolingSetpoint = initCoolingSetpoint
                
-               def initHeatingSetpoint = Verify.getIntFromList(20, 35, 50)
+               def initHeatingSetpoint = Verify.getIntFromList(35, 50)
                this.currentHeatingSetpoint = initHeatingSetpoint
                this.heatingSetpoint = initHeatingSetpoint
                
-               def initThermostatSetpoint = Verify.getIntFromList(50, 60, 70)
+               def initThermostatSetpoint = Verify.getIntFromList(50, 60)
                this.thermostatSetpoint = initThermostatSetpoint
                
                def initFanMode = Verify.getInt(0,4)
@@ -100,7 +100,7 @@ public class Thermostats{
                        this.thermostatMode = "off"
                        this.currentThermostatMode = "off"
                        this.thermostatLatestMode = "off"
-               }*/
+               }
 
                thermostats.add(new Thermostat(sendEvent, id, label, displayName, this.temperature, this.currentCoolingSetpoint, 
                                                this.currentHeatingSetpoint, this.coolingSetpoint, this.thermostatSetpoint, this.heatingSetpoint, this.coolingSetpointRange,