def set_state(self, light_id, **kwargs):
        '''
        Sets state on the light, can be used like this:

        .. code-block:: python

            set_state(1, xy=[1,2])
        '''
        light = self.get_light(light_id)
        url = '/api/%s/lights/%s/state' % (self.username, light.light_id)
        response = self.make_request('PUT', url, kwargs)
        setting_count = len(kwargs.items())
        success_count = 0

        for data in response:
            if 'success' in data:
                success_count += 1

        if success_count == setting_count:
            return True
        else:
            return False
Sets state on the light, can be used like this:

        .. code-block:: python

            set_state(1, xy=[1,2])