From 12be259779cb705be329b3751b9c3487f65db00a Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Thu, 23 Feb 2017 02:41:20 -0800 Subject: [PATCH] CON-90 fix for wemo dimming issue --- .../smartthings/zigbee-dimmer.src/zigbee-dimmer.groovy | 6 ++++++ 1 file changed, 6 insertions(+) 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)