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,8 +114,10 @@ def refresh() {
}
def installed() {
if ((device.getDataValue("manufacturer") == "MRVL") && (device.getDataValue("model") == "MZ100")) {
sendEvent(name: "level", value: 100)
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)
}
}
}