def set_light_state(self, hue, saturation, brightness, kelvin,<EOL>bulb=ALL_BULBS, timeout=None):
raw_hue = int((hue % <NUM_LIT>) / <NUM_LIT> * <NUM_LIT>) & <NUM_LIT><EOL>raw_sat = int(saturation * <NUM_LIT>) & <NUM_LIT><EOL>raw_bright = int(brightness * <NUM_LIT>) & <NUM_LIT><EOL>return self.set_light_state_raw(raw_hue, raw_sat, raw_bright, kelvin,<EOL>bulb, timeout)<EOL>
Sets the light state of one or more bulbs.

Hue is a float from 0 to 360, saturation and brightness are floats from
0 to 1, and kelvin is an integer.