Have just written a script to see if my mobile phone is present within the house. My router is configured to only issue it the same IP address. So a regular ping ... if it fails I will assume I am out, and start the Zoneminder service to capture CCTV footage.
It's one of those projects where all the pieces were there, just needed joining up.