This method is used to switch off the smart LED (software managed off).

            :param effect: if the change is made suddenly or smoothly
            :param transition_time: in case the change is made smoothly, time in ms that change last

            :type effect: str
            :type transition_time : int

def turn_off(self, effect=EFFECT_SUDDEN, transition_time=MIN_TRANSITION_TIME):
        """
            This method is used to switch off the smart LED (software managed off).

            :param effect: if the change is made suddenly or smoothly
            :param transition_time: in case the change is made smoothly, time in ms that change last

            :type effect: str
            :type transition_time : int
        """
        # Check bulb state
        if self.is_off():
            return
        else:
            # Input validation
            schema = Schema(
                {'effect': Any(self.EFFECT_SUDDEN, self.EFFECT_SMOOTH), 'transition_time': All(int, Range(min=30))})
            schema({'effect': effect, 'transition_time': transition_time})
            # Send command
            params = ["off", effect, transition_time]
            self.api_call.operate_on_bulb("set_power", params)
            # Update property
            self.property[self.PROPERTY_NAME_POWER] = self.POWER_OFF