Commit e9b8690 1 parent f76e6fa commit e9b8690 Copy full SHA for e9b8690
File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -245,28 +245,24 @@ def setColor(value) {
245
245
myblue= value. blue>= 128 ? 255 : 0
246
246
}
247
247
cmds << " 200100"
248
- cmds << " delay 250"
249
248
if (myred!= 0 ) {
250
249
cmds << " 33060002FF"
251
- // cmds << "delay 150"
252
250
cmds << " 330702"
253
251
}
254
252
if (mygreen!= 0 ) {
255
253
cmds << " 33060003FF"
256
- // cmds << "delay 150"
257
254
cmds << " 330703"
258
255
}
259
256
if (myblue!= 0 ) {
260
257
cmds << " 3306000400"
261
- // cmds << "delay 150"
262
258
cmds << " 330704"
263
259
}
264
- cmds << " delay 100 "
265
- cmds << zwave. basicV1. basicGet()
260
+
261
+ cmds << command( zwave. basicV1. basicGet() )
266
262
267
263
hexValue = rgbToHex([r :myred, g :mygreen, b :myblue])
268
264
if (hexValue) sendEvent(name : " color" , value : hexValue, displayed : true )
269
- commands(cmds)
265
+ commands(cmds, 300 )
270
266
}
271
267
272
268
def zwaveEvent (hubitat.zwave.Command cmd ) {
You can’t perform that action at this time.
0 commit comments