mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-14 21:03:19 +00:00
updated with more devices
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user