I've worked from how for years. My tips
Get a dedicated office space, be it a spare room or office at the bottom of the garden. Good office chair, headset, treat it as an office and have it set up as one.
Thermos flask although sometimes getting up and down for tea means I have a break and get up from my desk
Get organised and take breaks, dinner break especially - go for a walk, watch telly or read a book
My dc and dh know not to come into my office. If I'm free I'll come out and say hello
Housework etc comes second best to work, some weeks I get loads done, others nothing
Go into the office for team meetings and if you can, stay over. It's important to have a relationship with colleagues. I'm lucky I'm close to two of my colleagues and we have private WhatsApp group and will have virtual lunches every week or so. I also schedule telephone calls with my friends during the week too. Book out an hour in my diary and ring them.