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
This commit is contained in:
Zach Varberg
2017-02-03 11:55:45 -06:00
parent c27904acfb
commit 1800ea2bad

View File

@@ -97,7 +97,7 @@ def on() {
} }
def setLevel(value) { def setLevel(value) {
zigbee.setLevel(value) zigbee.setLevel(value) + (value?.ToInteger() > 0 ? zigbee.on() : [])
} }
/** /**