"I do have One Weird Trick that I have found incredibly useful to re-enter flow and continue working on large problems: Before stepping away, leave the code in a state where it is Obviously Broken, but Easy to Fix."
I do the same with writing. Leave a paragraph unfinished. The next morning, I _have_ to complete it... and I get back into the work.