The Blog of Ian Mercer.

Smart home tracks network devices by mac address

Smart home tracks network
devices

One surprisingly useful component of my home automation system is its ability to track every device that ever connects to the router at home by mac address.

Every few minutes my smart home scans the local subnet looking for connected devices. It does this by pinging each IP address in the local address range and whenever it finds a device it gets its mac address and compares it to a list of known mac addresses. Once it's found a device it pings it more frequently to check that it's still connected to the network.

Whenever it finds a new device (for example, a friend visiting with a cell phone or laptop that connect to Wifi) it can ask for that device to be identified (using the chat interface) and can track its comings and goings from then on. If you happen to enter the house with a smart phone with Wifi turned on you have just become an unwitting part of my experiment and your phone's mac address will be tracked from here on out.

Many consumer electronic devices now connect to the internet and each is thus tracked by the home automation system to determine how long it has been on for each day. This is used to calculate the instantaneous power consumption of the home along with the lights and other devices that the home automation can control or monitor.

Aside from estimating power consumption and tracking visitors to the house, one of the most useful aspects of this feature is that it's great for finding lost devices. Did your child lose their iPod touch at home or is it at a friend's house? A quick look at the log shows when it was last seen in the house confirming that it's still inside somewhere. Ultimately it might be able to cross-reference which rooms were occupied with when the device was last seen and thus give you an idea which couch or bedroom to go search (future feature), but for now, at least you know you aren't searching in vain. Ideally I'd have three access points with firmware that can track the signal strength of each device in the home so I can locate it more precisely but I haven't found a router offering that capability yet. My laptop can track and report how far away from the router it is but that's not as useful as being able to track individual devices from the router.

Another possible use for this is tracking screen time - how many hours did your kids spend watching TV or playing on the XBox when they were in fact meant to be working on their homework? etc. etc. Of course at some point this may all become a bit too Orwellian but as I've mentioned before, part of the experiment I've been conducting with my home automation is 'technical' but the larger portion is 'social' - which features are genuinely useful and which are just too much.

Related Stories

Home Automation

I've been working on home automation for over 15 years and I'm close to achieving my goal which is a house that understands where everyone is at all times, can predict where you are going next and can control lighting, heating and other systems without you having to do or say anything. That's a true "smart home".

Ian Mercer
Ian Mercer

Home Automation Sensors

An overview of the many sensors I've experimented with for home automation including my favorite under-floor strain gauge, through all the usual PIR, beam and contact sensors to some more esoteric devices like an 8x8 thermal camera.

Ian Mercer
Ian Mercer

ATAN curve for probabilities

In a home automation system we often want to convert a measurement into a probability. The ATAN curve is one of my favorite curves for this as it's easy to map overything onto a 0.0-1.0 range.

Ian Mercer
Ian Mercer

Probabilistic Home Automation

A probabilistic approach to home automation models the probability that each room is occupied and how many people are in that room.

Ian Mercer
Ian Mercer

Multiple hypothesis tracking

A statistical approach to understanding which rooms are occupied in a smart house

Ian Mercer
Ian Mercer

A state machine for lighting control

An if-this-then-that style rules machine is insufficient for lighting control. This state machine accomplishes 90% of the correct behavior for a light that is controlled automatically and manually in a home automation system.

Ian Mercer
Ian Mercer

Home Automation States

Understanding the many different 'states' a house can have is critical to creating great home automation

Ian Mercer
Ian Mercer

Graphing gigabytes of home automation data with tableau

Some interesting charts from the gigabytes of data my home automation system produces

Ian Mercer
Ian Mercer

iBeacons for Home Automation

My investigations into using iBeacons for home automation

Ian Mercer
Ian Mercer

iBeacon meetup in Seattle - January 2015

My notes on the iBeacon meetup in Seattle held in January 2015

Ian Mercer
Ian Mercer

Home Automation Systems as a Graph

Using nodes and links to represent a home and all the devices in it

Ian Mercer
Ian Mercer

N-Gram Analysis of Sensor Events in Home Automation

Using n-gram analysis to spot patterns in sensor activations

Ian Mercer
Ian Mercer

Xamarin Forms Application For Home Automation

Building a Xamarin Forms application to control my home automation system

Ian Mercer
Ian Mercer

The Internet of Hubs (and things)

Maybe it should be called the Internet of Hubs instead

Ian Mercer
Ian Mercer

Showing home status with just a single RGB LED

Multicolored LEDs can convey a lot of information in a small space

Ian Mercer
Ian Mercer

A wireless sensor network using Moteino boards

The diminutive Arduino boards include a powerful transmitter/receiver

Ian Mercer
Ian Mercer

The home as a user interface

Ian Mercer
Ian Mercer

A RESTful API for sensor data

POSTing data to a home automation system from Arduino devices

Ian Mercer
Ian Mercer

The Internet of Boilers

An experiment to measure every aspect of an HVAC / boiler system

Ian Mercer
Ian Mercer

VariableWithHistory - making persistence invisible, making history visible

A novel approach to adding history to variables in a programming language

Ian Mercer
Ian Mercer

A Quantified House - My Talk to the Seattle Quantified Self Meetup

My talk to the Seattle Quantified Self meetup

Ian Mercer
Ian Mercer

Integrating an Android phone into my home automation system

Some new features for my home automation using an Android phone

Ian Mercer
Ian Mercer

The Internet of Dogs

Connecting our dog into the home automation

Ian Mercer
Ian Mercer

GreenGoose Review

A review of the now defunct GreenGoose sensor system

Ian Mercer
Ian Mercer

Home power meters revisited

Ian Mercer
Ian Mercer

Home Automation Calendar Integration

Ian Mercer
Ian Mercer

Smart home energy savings - update for 2010

Ian Mercer
Ian Mercer

A smart power strip

Ian Mercer
Ian Mercer

What does a Smart House do at Halloween?

My favorite home automation features for Halloween

Ian Mercer
Ian Mercer

Home Automation Top Features

Ian Mercer
Ian Mercer

Weather Forecasting for Home Automation

Ian Mercer
Ian Mercer

How can I tell if my house is smart?

Ian Mercer
Ian Mercer

Home Automation Block Diagram

Ian Mercer
Ian Mercer

World's Smartest House Demonstration

Ian Mercer
Ian Mercer

Future proof your home with a new conduit system?

Running conduit can be expensive but maybe you don't need one to every room

Ian Mercer
Ian Mercer

New Home Automation Server

Ian Mercer
Ian Mercer

World's Smartest House

Over 15 years of experimentation with home automation

Ian Mercer
Ian Mercer

World's Smartest House Videos

A collection of videos about my smart home efforts

Ian Mercer
Ian Mercer