One idea to try (maybe).
Create a space that is a No coffee space. That way you also do not smoke in that space ;)
The choose something you really like spending time doing (drinking coffee not included) and do it in that space. You will spend more time doing than smoking.