My recent addtion of multiple hypothesis tracking enables my home automation system
to not only say how many people it thinks are home and which rooms are occupied but also to assign a probability to each
of those numbers. That changes the way it will work as I replace boolean values with probability comparisons to see if it is,
say 95% certain before it acts on a value. It also enableds exciting new scenarios that I'll explore here.
More intelligent lighting control
In the past my home automation relied mostly on time-outs to decide when a room was no longer occupied. After a period of no
activity on any of the sensors in the room (motion, strain-gauge, TV volume control, light switches, or telephones) it would
start dimming the lights in that room and would turn off any audio playing. There were a couple of more complicated scenarios
where it attempted to use logic to reason that someone was still in a room if that room could be closed off. And while my house
does have a lot of sensors this approach really wasn't that much smarter than a cheap PIR motion light switch.
The light state machine makes it seem smarter because it will leave a light on or
off when a user wants to override this relatively dumb behavior and the gradual, imperceptible dim feature makes it a lot more
forgiving (or rather 'forgiven' when it makes a mistake).
Now, however with a probabilistic model of the home based on 'target tracking' it can turn lights off much sooner as it can be almost
certain that the one person in that room just moved to a neighboring room. This will allow it to save even more energy over
my baseline from years ago before any home automation was installed.
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".
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.
Bluetooth sensing for home automation is a great proxy for people counting as it can detect and locate each cellphone in the house. iBeacons attached to tools, cars and pets can provide a 'find my anything' feature too.
Having at least one light sensor is critical for any home automation system that controls lightng. Lights need to be turned on when it's dark not at specific times of day, especially here in Seattle when it can be dark and cloudy at any time of day.
Microwave doppler sensors can be found in some alarm sensors but there are also available very cheaply as a separate component. They offer exceptional range but suffer from false triggers requiring a probailistic approach to people sensing.
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.