I’ve been working from home for 8 years and I’ve had to relearn how to do it during this pandemic as well.
My normal trick is to walk to a local coffee shop in the morning. After a few hours I’ll go to a coworking space or similar. Same thing in the afternoon.
For me, part of that is just having a routine. So instead of working at the coffee shop, I’ve been taking a walk in the morning to get a coffee to go and just walking back home.
I think any activity that involves getting out of your house — even just a walk around the block — can be a good reset before or after work.