I had this lifestyle when I worked from an office, and at home, in both individual contributor and leadership engineering roles. I also travel quite a bit.
Just set expectations with others and it works just fine either way. Only thing in the way is cognitive dissonance for most people.
In my case people absolutely forgive not being able to reach me every second of every day because I am a productivity machine due to being able to actually focus.