This is obviously a luxury, but I've found having a separate room helps a lot. Putting my laptop to sleep and turning off the light acts as a transition.
If you don't have a separate room, you could also plug your computer in somewhere, and go on a short walk every day.