Has anyone found a simple way for Indigo to detect when an iPhone connects to (and disconnects from) the local Wi-Fi network? Being able to do this would enable something like a proximity switch in Indigo. When I arrive home do... and When I leave do...
I figured I can have an applescript continually (say every 5 seconds) ping the device's IP Address (assuming I have it hard-coded on the device or in my DHCP server) and then change an Indigo variable. It would probably also be a good idea to wait for a few failures in a row before assuming the iPhone "has left the building" to avoid false "disconnects."
However, I would really prefer something a little more deterministic. My problem is, I can't figure out anyway a Mac could see, or be told about a Wi-Fi connection between a Wi-Fi hub and an arbitrary device. I know I could trigger on the iPhone client connection, but that is not automatic.
Ideas? Has anyone else tried this?
Richard