/**
* Copyright 2020 Markus Liljergren (https://oh-lalabs.com)
*
* Version: v1.1.1.1123T
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* NOTE: This is an auto-generated file and most comments have been removed!
*
*/
// BEGIN:getDefaultImports()
import groovy.json.JsonSlurper
import groovy.json.JsonOutput
import java.security.MessageDigest
// END: getDefaultImports()
metadata {
definition (name: "Tasmota - Universal Bulb/Light (Child)", namespace: "tasmota", author: "Markus Liljergren", filename: "tasmota-universal-bulb-light-child", importUrl: "https://raw.githubusercontent.com/markus-li/Hubitat/release/drivers/expanded/tasmota-universal-bulb-light-child-expanded.groovy") {
capability "Actuator"
capability "Switch"
capability "Light"
capability "Refresh"
command "toggle"
// BEGIN:getMinimumChildAttributes()
attribute "driver", "string"
// END: getMinimumChildAttributes()
}
preferences {
// BEGIN:getDefaultMetadataPreferences()
input(name: "debugLogging", type: "bool", title: styling_getLogo() + styling_addTitleDiv("Enable debug logging"), description: "" , defaultValue: false, submitOnChange: true, displayDuringSetup: false, required: false)
input(name: "infoLogging", type: "bool", title: styling_addTitleDiv("Enable info logging"), description: "", defaultValue: true, submitOnChange: true, displayDuringSetup: false, required: false)
// END: getDefaultMetadataPreferences()
}
// BEGIN:getMetadataCustomizationMethods()
metaDataExporter()
if(isCSSDisabled() == false) {
preferences {
input(name: "hiddenSetting", description: "" + getDriverCSSWrapper(), title: "None", displayDuringSetup: false, type: "paragraph", element: "paragraph")
}
}
// END: getMetadataCustomizationMethods()
}
// BEGIN:getDeviceInfoFunction()
String getDeviceInfoByName(infoName) {
Map deviceInfo = ['name': 'Tasmota - Universal Bulb/Light (Child)', 'namespace': 'tasmota', 'author': 'Markus Liljergren', 'filename': 'tasmota-universal-bulb-light-child', 'importUrl': 'https://raw.githubusercontent.com/markus-li/Hubitat/release/drivers/expanded/tasmota-universal-bulb-light-child-expanded.groovy']
return(deviceInfo[infoName])
}
// END: getDeviceInfoFunction()
/* These functions are unique to each driver */
void parse(List