Add transition time to setRGB($r,$g,$b,$transistiontime=null) and other method in the light class. I will send a pull request soon.