I have also been playing around with using ping on smartphones to determine if anyone is at home.
But as timur said, i find it a bit too unreliable to use.
There are a lot of times the phone does not seem to connect to the wifi, or ditches it's connection.