I have worked alone at home for over 20 years, discipline and routine is what makes this possible., as well as the rise of truly portable computing. I currently live in Cyprus with my 70+ clients mostly in the UK but some in the US and Europe. I commute back to the UK regularly, where my partner has a flat as she is currently looking after her elderly mother.
I make sure I am up at 6:30 at the latest, and out of the house and in the coffee shop by 9am. This gives me a “commute” I have a five minute walk along the seafront, once I arrive in the main town which clears my head.
Coffee shop work is the routine tasks, planning, the admin, and the easier coding stuff. I usually spend a couple of hours on this then head home. The afternoon is the heavier coding and dev work. Then an evening wind up routine checking tasks not done.
I am lucky, I live opposite the beach, so working at home with the views and clean air is pretty good, although without trips out it is easy to go 'stir crazy"
What I struggle with? The heat at the moment, it’s in the high 30’s so it is tempting to sleep in the afternoon. I go to coffee shops, 1. because it gives me some social interaction, and 2. its cheaper to pay for coffee and use their air conditioning than to run my own I suppose I am lucky in that I am not an overly sociable person mostly happy with my own company or with my partner.
What I would say is give yourself a realistic set of tasks to try and do on any day. it does not matter when you do them as long as you do, I sometimes start a job at 10pm (it’s cooler)