Trying to have a "master switch" (sensor for external temperature) so in case of exceeding certain number to auto disable child apps.
Unfortunately, everything else appears but the devices "list".
What am I doing wrong (the " input suppressSensor" below does not visualize sensors list to choose from)?
def suppressSensor = [
name: "suppressSensor",
type: "capability.sensor",
title: "Suppress Sensor",
description: "The suppress sensor, should measure outside temperature.",
multiple: false,
required: true
]
preferences {
page name: "mainPage", title: "", install: true, uninstall: true
}
def mainPage() {
dynamicPage(name: "mainPage") {
installCheck()
if (state.appInstalled == 'COMPLETE') {
//section(getFormat("title", "${app.label}")) {
section(getFormat("title", "Smart Termostat")) {
paragraph "<i>Follow below step-by-step to correctly setup this app.</i>"
paragraph getFormat("tickline")
}
section("<h3 style='color:#663399;font-weight: bold'>Manual Master Switch:</h3>") {
input "masterSwitch", "bool", defaultValue: true, title: "All child rules execution active."
paragraph getFormat("tickline")
}
section("<h3 style='color:#663399;font-weight: bold'>Auto Suppress Switch:</h3>") {
input "suppressSwitch", "bool", title: "Suppress switch for outside temperature active.", defaultValue: true
input "suppressTemp", "float", title: "Tepmerature to suppress heater when above it:", defaultValue: 19.0f
input suppressSensor
paragraph getFormat("tickline")
}
section ("<h3 style='color:#663399;font-weight: bold'>Temperatures</h3> Define temperatures upon Away and not-Away confitions.") {
input "minTempAway", "float", title: "Minimum temperature when Away:", defaultValue: 19.0f
input "maxTempAway", "float", title: "Maximum temperature when Away:", defaultValue: 21.0f
input "minTempHere", "float", title: "Minimum temperature when Here:", defaultValue: 24.0f
input "maxTempHere", "float", title: "Maximum temperature when Here:", defaultValue: 26.0f
paragraph getFormat("tickline")
}
section("<h3 style='color:#663399;font-weight: bold'>Zoneficator</h3> Define connections of type \"sensor(s) <-> heater(s)\".") {
app(name: "anyOpenApp", appName: "Smart Termostat - Zoneficator", namespace: "teotod", title: "<strong>Add new or edit following connections:</strong>", multiple: true)
paragraph getFormat("line")
}
//footer
section() {
paragraph getFormat("tickline")
paragraph "<div style='color:#663399;text-align:center'> for more... <br> <a href='https://github.com/TeoTod/Hubitat' target='_blank'> Click here for my GitHub Hubitat space </a> </div>"
}
}
}
}