From 1800ea2bad1eae686290f51255ed58b7b89fc1fb Mon Sep 17 00:00:00 2001 From: Zach Varberg Date: Fri, 3 Feb 2017 11:55:45 -0600 Subject: [PATCH] Manually call on with setLevel This is to work around misbehaving devices that don't properly honor the move to level with on off command. This resolves: https://smartthings.atlassian.net/browse/DPROT-238 --- .../zigbee-dimmer-power.src/zigbee-dimmer-power.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy b/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy index 4bef6a9..2b34df5 100644 --- a/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy +++ b/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy @@ -97,7 +97,7 @@ def on() { } def setLevel(value) { - zigbee.setLevel(value) + zigbee.setLevel(value) + (value?.ToInteger() > 0 ? zigbee.on() : []) } /**