/* * Hub Information Aggregation Device * * Licensed Virtual the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at: * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License * for the specific language governing permissions and limitations under the License. * * Change History: * * Date Who What * ---- --- ---- * 2021-08-03 thebearmay Original version 0.0.1 */ static String version() { return '0.0.1' } metadata { definition ( name: "Hub Information Aggregation Device", namespace: "thebearmay", author: "Jean P. May, Jr.", importUrl:"https://raw.githubusercontent.com/thebearmay/hubitat/main/apps/hubInfoAggDev.groovy" ) { capability "Actuator" attribute "html", "string" } } preferences { input("debugEnable", "bool", title: "Enable debug logging?") } def installed() { log.trace "installed()" } def updated(){ log.trace "updated()" if(debugEnable) runIn(1800,logsOff) } void logsOff(){ device.updateSetting("debugEnable",[value:"false",type:"bool"]) }