Often when working remotely, it is important to have a dedicated workspace… or, at least a dedicated work schedule.
The key is to be able to ensure you can focus on your work when you need to and having a dedicated space where others know you are remote working; or, an explicit work schedule to let others know when you are working. Both of these create a sense of respectable boundaries where you can feel comfortable you will not be easily disrupted by some outside influence.
Sure, make a comfortable bed for your best four-footed friend to hang out while you work; let the “kids” know they need to try to be respectfully quieter during “working hours”; and, let your partner know that although your schedule does offer some great flexibility when remote working the whole point is you still need to be working and meeting those expectations.
Setting boundaries helps everyone that is affected by remote working, especially when first entering that type of environment. Try to make sure they are clear while also being respectful of others and you should be good to go… and remember to follow those “rules” yourself — the beach isn’t going anywhere.