'Instruct the light to turn on.
After adding "self._light_data.hexcolor is not None"
for ATTR_RGB_COLOR, this also supports Philips Hue bulbs.'

def turn_on(self, **kwargs):

    if (ATTR_BRIGHTNESS in kwargs):
        self._light_control.set_dimmer(kwargs[ATTR_BRIGHTNESS])
    else:
        self._light_control.set_state(True)
    if ((ATTR_RGB_COLOR in kwargs) and (self._light_data.hex_color is not None)):
        self._light.light_control.set_hex_color(color_util.color_rgb_to_hex(*kwargs[ATTR_RGB_COLOR]))
    elif ((ATTR_COLOR_TEMP in kwargs) and (self._light_data.hex_color is not None) and self._ok_temps):
        kelvin = color_util.color_temperature_mired_to_kelvin(kwargs[ATTR_COLOR_TEMP])
        kelvin = min(self._ok_temps.keys(), key=(lambda x: abs((x - kelvin))))
        self._light_control.set_hex_color(self._ok_temps[kelvin])
