Skip to content

Commit e9b8690

Browse files
authored
Fix for delay not getting formatted correctly.
1 parent f76e6fa commit e9b8690

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Drivers/ezmultipli.src/ezmultipli.groovy

+3-7
Original file line numberDiff line numberDiff line change
@@ -245,28 +245,24 @@ def setColor(value) {
245245
myblue=value.blue>=128 ? 255 : 0
246246
}
247247
cmds << "200100"
248-
cmds << "delay 250"
249248
if (myred!=0) {
250249
cmds << "33060002FF"
251-
//cmds << "delay 150"
252250
cmds << "330702"
253251
}
254252
if (mygreen!=0) {
255253
cmds << "33060003FF"
256-
//cmds << "delay 150"
257254
cmds << "330703"
258255
}
259256
if (myblue!=0) {
260257
cmds << "3306000400"
261-
//cmds << "delay 150"
262258
cmds << "330704"
263259
}
264-
cmds << "delay 100"
265-
cmds << zwave.basicV1.basicGet()
260+
261+
cmds << command(zwave.basicV1.basicGet())
266262

267263
hexValue = rgbToHex([r:myred, g:mygreen, b:myblue])
268264
if(hexValue) sendEvent(name: "color", value: hexValue, displayed: true)
269-
commands(cmds)
265+
commands(cmds, 300)
270266
}
271267

272268
def zwaveEvent(hubitat.zwave.Command cmd) {

0 commit comments

Comments
 (0)