A close friend has worked from home for a decade and has four kids. One routine that really works is he gets dressed for work every day. Just by adding a collared shirt, usually. Gets him in (and out of) the headspace and the kids get a clear signal that he's "working."