Home automation with Arp request

Wendell, you talked about it for about 15 seconds on the Net Neutrality Tek episode. How would one go about setting this up? to make home automation possible through my phone joining the Wifi network.

If you set static ip addresses to your devices at home, you could use simple scripts to do things when you are home. take this psuedocode for example:

while :

 do

    if ping 192.168.xxx.xxx = true;

     set thermostat=70

   else

     set thermostat=60

done

 

Or you could even do it backwards, so your server knows when you are gone, by returning a false on the ping, to keep the climate control to a minimum, or the lights off.

Yeah but how, I mean is america some magical future land where all your devices have wifi capable computers? I dunno, I live in New Zealand and don't see how this can be done...

Only the router would need to be wireless. Once it knows you are there (or not there) it can send the appropriate commands through ethernet to the devices (raspberry pi, odroid, ardruino, whatever) which then tell the thermostat, coffee maker, or anything else what to do through the gpio pin outs. 

there is a lot more too this than just simply pressing a button.

but arp requests is not the take home here, all an arp request is a router asking for an address to be resolved.

what would be more useful would be to discuss magic packets to wake home LAN devices, and the difficulties in 'safely' allowing a magic packet through your WAN connection to wake up a device before you come home or such like...

AFAIK a magic packet is UDP so could get lost and you wouldn't know

 

Well of course you would need to do a lot of extra work on your home devices to make them work with Ethernet or WiFi... Seems like a fun idea if you don't factor in all the planning and work. I guess I'll just wait for some company to do it for me, but feel free to offer more solutions.

If you're using pfsense as your dhcp server, you can also script your dhcpserver to do things based on mac address. when your phone hops on the wifi, even if the lease hasn't expired, it'll shake hands with the dhcp server just to confirm. That might be more better, slightly. I'm partial to honeywell for sensors like motion, fire, door, etc but genuinely surprised there is no open source implementation of the wireless honeywell protocol. still, the wired sensors are easy enough to interface with an arduino.