diff --git a/devicetypes/smartthings/zigbee-dimmer.src/zigbee-dimmer.groovy b/devicetypes/smartthings/zigbee-dimmer.src/zigbee-dimmer.groovy index 460f6bc..54bf8dd 100644 --- a/devicetypes/smartthings/zigbee-dimmer.src/zigbee-dimmer.groovy +++ b/devicetypes/smartthings/zigbee-dimmer.src/zigbee-dimmer.groovy @@ -113,6 +113,12 @@ def refresh() { zigbee.onOffRefresh() + zigbee.levelRefresh() } +def installed() { + if ((device.getDataValue("manufacturer") == "MRVL") && (device.getDataValue("model") == "MZ100")) { + sendEvent(name: "level", value: 100) + } +} + def configure() { log.debug "Configuring Reporting and Bindings." // Device-Watch allows 2 check-in misses from device + ping (plus 1 min lag time)