[SOLVED] Led Strip retain the last color

Why does my led strip retain last color insted of the color specified in rule.

rule "Lighting Scene Sleep"
when
	Item Scene_Sleep received command ON
then
	ODSmartSwitch1Channel1.sendCommand(ON)
	ODSmartSwitch1Channel2.sendCommand(OFF)
	ODSmartSwitch1Channel3.sendCommand(OFF)
    ODSmartSwitch1Channel4.sendCommand(OFF)
    ODSmartSwitch1Channel5.sendCommand(OFF)
    ODSmartSwitch1Channel6.sendCommand(ON)
    ODSmartSwitch1Channel7.sendCommand(ON)
    ODSmartSwitch1Channel8.sendCommand(OFF)
	LEDStrip1.postUpdate(24,12,0)	

	Scene_Sleep.postUpdate(OFF)
	 
end

postUpdate will only change the state of the item, if you want to change the actual color, you have to use sendCommand.

SO this should be
LEDStrip1.sendCommand(24,12,0)

Yep.

Thank you all.

Please mark the thread as solved, thanks
hc_292

Solution was from @Udo_Hartmann

I only confirmed what he suggested doing.

Thanks