def actuator_off(self, location_id, actuator_id, is_remote_switch, duration=None):
    'Turn off actuator.'
    try:
        if is_remote_switch:
            self._smappy.actuator_off(location_id, actuator_id, duration)
            self._smappy.actuator_off(location_id, actuator_id, duration)
        else:
            self._localsmappy.off_command_control(actuator_id)
            self._localsmappy.off_command_control(actuator_id)
    except RequestException as error:
        _LOGGER.error('Error turning actuator on. (%s)', error)
        return False
    return True
Turn off actuator.
def actuator_off(self, location_id, actuator_id, is_remote_switch, duration=None):
    
    try:
        if is_remote_switch:
            self._smappy.actuator_off(location_id, actuator_id, duration)
            self._smappy.actuator_off(location_id, actuator_id, duration)
        else:
            self._localsmappy.off_command_control(actuator_id)
            self._localsmappy.off_command_control(actuator_id)
    except RequestException as error:
        _LOGGER.error('Error turning actuator on. (%s)', error)
        return False
    return True