How to get rid of coffee addiction? I drink 5-8-10 cups of coffee a day prepared on automatic coffee machine. 

My problem is that I don't have a stimulating effect from coffee. So I usually feel if I must drink coffee or I feel tired If I don't.

I have tried to get rid of this addiction several times. I can easily stop drinking it for a couple of days (or weeks). First 1-2 days I have a headache and I'm tired; but after that I feel normal. After 2 weeks I tell to myself why not to have 1 coffee, then 2 coffee and very soon I'm again on 5-8 cups a day.

Update:
After one year nothing has changed. I'm still on 5-8 cups of strong coffee. I simply like how it smells, I like how it taste.
First, the effects you observe are known as caffeine withdrawal and discussed here.

Coffee addiction is previously discussed here.

However, it is not discussed how to get rid of a coffee addiction. First, you should understand if overcoming this addiction is necessary. I assume, most people who are members of Coffee SE are not likely to think that.

Here is a general link that explains how to get rid of any addiction in three steps:


Decide to quit. (Think positive future effects, write a commitment to yourself,
etc.)
Make a plan to quit. (Set a date, set your environment, overcome the triggers, seek professional help, etc.)
Handle withdrawal. (Fill your time with new habits, keep clear of triggers, don't find rationalizations to start again, celebrate accomplishments, etc.)