mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-24 13:14:10 +00:00
Merge pull request #1732 from SmartThingsCommunity/staging
Rolling down staging hotfix to master
This commit is contained in:
@@ -154,3 +154,11 @@ def setSaturation(value) {
|
|||||||
def scaledSatValue = zigbee.convertToHexString(Math.round(value * 0xfe / 100.0), 2)
|
def scaledSatValue = zigbee.convertToHexString(Math.round(value * 0xfe / 100.0), 2)
|
||||||
zigbee.command(COLOR_CONTROL_CLUSTER, SATURATION_COMMAND, scaledSatValue, "0500") + "delay 1000" + zigbee.readAttribute(COLOR_CONTROL_CLUSTER, ATTRIBUTE_SATURATION)
|
zigbee.command(COLOR_CONTROL_CLUSTER, SATURATION_COMMAND, scaledSatValue, "0500") + "delay 1000" + zigbee.readAttribute(COLOR_CONTROL_CLUSTER, ATTRIBUTE_SATURATION)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def installed() {
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -194,3 +194,11 @@ def setSaturation(value) {
|
|||||||
def scaledSatValue = zigbee.convertToHexString(Math.round(value * 0xfe / 100.0), 2)
|
def scaledSatValue = zigbee.convertToHexString(Math.round(value * 0xfe / 100.0), 2)
|
||||||
zigbee.command(COLOR_CONTROL_CLUSTER, SATURATION_COMMAND, scaledSatValue, "0500") + "delay 1000" + zigbee.readAttribute(COLOR_CONTROL_CLUSTER, ATTRIBUTE_SATURATION)
|
zigbee.command(COLOR_CONTROL_CLUSTER, SATURATION_COMMAND, scaledSatValue, "0500") + "delay 1000" + zigbee.readAttribute(COLOR_CONTROL_CLUSTER, ATTRIBUTE_SATURATION)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def installed() {
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -157,3 +157,11 @@ def setGenericName(value){
|
|||||||
sendEvent(name: "colorName", value: genericName)
|
sendEvent(name: "colorName", value: genericName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def installed() {
|
||||||
|
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