Make Dimming the light on non blocking

This code is not tested on hardware