definition(
name: "Average Temperatures",
namespace: "hubitat",
author: "Bruce Ravenel",
description: "Average some temperature sensors",
category: "Convenience",
iconUrl: "",
iconX2Url: "")
preferences {
page(name: "mainPage")
}
def mainPage() {
dynamicPage(name: "mainPage", title: " ", install: true, uninstall: true) {
section {
input "thisName", "text", title: "Name this temperature averager", submitOnChange: true
if(thisName) app.updateLabel("$thisName")
input "tempSensors", "capability.temperatureMeasurement", title: "Select Temperature Sensors", submitOnChange: true, required: true, multiple: true
if(tempSensors) paragraph "Current average is ${averageTemp()}°"
This file has been truncated. show original