updated with more devices

This commit is contained in:
Vinay Rao
2017-02-23 11:31:49 -08:00
parent 12be259779
commit e787afd165

View File

@@ -114,10 +114,12 @@ def refresh() {
} }
def installed() { def installed() {
if ((device.getDataValue("manufacturer") == "MRVL") && (device.getDataValue("model") == "MZ100")) { if (((device.getDataValue("manufacturer") == "MRVL") && (device.getDataValue("model") == "MZ100")) || (device.getDataValue("manufacturer") == "OSRAM SYLVANIA") || (device.getDataValue("manufacturer") == "OSRAM")) {
if ((device.currentState("level")?.value == null) || (device.currentState("level")?.value == 0)) {
sendEvent(name: "level", value: 100) sendEvent(name: "level", value: 100)
} }
} }
}
def configure() { def configure() {
log.debug "Configuring Reporting and Bindings." log.debug "Configuring Reporting and Bindings."