IKEA Trådfri Gateway

Just discovered a little ‘snag’ when trying to set both the brightness and color temperature from within a rule.
A delay between the two commands makes it work.

sendCommand(TradfriP2Bright, 90)        			
Thread::sleep(600)
sendCommand(TradfriP2Temp, 50)        			

Without the delay, the first command is interrupted by the second, and the second one ‘wins’ leaving the brightness in its old state.

2 Likes