I'd recommend doing similar to what you did- having a substitution for your craving. Perhaps not the one that you chose but something healthier (or a smaller version of the thing you crave). For example yesterday I was craving a big bag of chips- fortunately I didn't have any in the house and I was too ill to leave it. So I made myself some boiled potato with tomato and a little cheese on top. It doesn't sound very similar, but it was salty and it satisfied the craving I had at that moment. (I think for this purpose I'm fortunate that I don't have a car- I have to walk to places to get food that isn't in the house, although there is a very nice Indian takeaway just down the road from me)
I'd also consider, if I were you, the merits of including treats in your diet. Different things work for different people, but I personally know that if I just say to myself "that's it, no more chocolate until you've lost that whole 15kg", not only will I not make it, at some stage I'll binge spectacularly and reverse a lot of the good that I've done. So I plan to incorporate small, controlled treats into my diet at regular intervals (one's coming up, I have a block of chocolate in my fridge for Easter, which I will try to eat very slowly, within my calorie allowance, and make it last). This won't work for everyone, but it's the right thing for me and worth considering for you.
I don't have a television, which is another thing that helps me, but what about muting the television during the commercials? That used to help me.