I find that creating a regime and structure is the only way to be able to work remotely in a sustainable way.
I have work hours and none work hours. I have a work out routine that makes me wake up early in the morning, which in turn makes me sleep at a reasonable time
I give myself lunch breaks that I use to go to the grocery store buy ingredients and cook good food.
I make plans for my after work hours to see friends, attend meetups..etc.
Working in an office setting you are forced into a structure, with working remotely you have to create your own structure.