Turn on motion sensing only when I'm not home

I have a Homebase, Video Doorbell and 2 x 2C cameras. I only want to be alerted of motion detections only when I am not home. Is it possible to enable and disable motion sensing depending on devices connected to the same network (ie. turn on motion detection when my phone disconnects from the Wifi network)?