'Turn the device off.'

def turn_off(self, **kwargs):

    _LOGGER.debug('turn_off    Attempting    to    turn    off    light:    %s    ', self._name)
    if (ATTR_TRANSITION in kwargs):
        transition = int((kwargs[ATTR_TRANSITION] * 10))
        _LOGGER.debug('turn_off    requested    transition    time    for    light:    %s    is:    %s    ', self._name, transition)
        self._luminary.set_luminance(0, transition)
    else:
        transition = 0
        _LOGGER.debug('turn_off    requested    transition    time    for    light:    %s    is:    %s    ', self._name, transition)
    self._luminary.set_onoff(0)
    self.schedule_update_ha_state()
