Skip to content

Commit

Permalink
Merge pull request #1 from bassrock/feature/thermostats
Browse files Browse the repository at this point in the history
Adding Thermostat temperature ability
  • Loading branch information
alexking committed Jan 19, 2014
2 parents 6eff152 + de1d855 commit 5e6bc8b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ preferences {
section("Settings") {
input "switches", "capability.switch", title : "Switches", multiple : true, required : true
input "temperatures", "capability.temperatureMeasurement", title : "Temperature", multiple : true, required : true
input "thermostats", "capability.thermostat", title : "Thermostats", multiple : true, required : true

}
}

Expand Down Expand Up @@ -47,6 +49,11 @@ def updateItemsAndTemperatures()
{
temperatureItems << [ 'id' : temperature.id, 'name' : temperature.displayName, 'value' : temperature.currentValue('temperature') ]
}

for (temperature in thermostats)
{
temperatureItems << [ 'id' : temperature.id, 'name' : temperature.displayName, 'value' : temperature.currentValue('temperature') ]
}

[ 'temperatures' : temperatureItems , 'items' : items ]

Expand Down Expand Up @@ -82,4 +89,4 @@ def itemChangeToState()

def installed() { }

def updated() { }
def updated() { }

0 comments on commit 5e6bc8b

Please sign in to comment.