Chapter 7Web-Enabled Light Switch

Imagine coming home after a long day at work and being able to power on lights, televisions, and appliances simultaneously from a native control application running on your mobile phone. Any electrical device with a standard power plug can be a part of this vision.

We’re going to make that vision a reality with the help of a networked computer, a Ruby on Rails web application, a native Android phone application, and an older home automation technology known as X10. We will build a native remote light switch Android application that can turn lights on and off with the touch of an onscreen toggle switch (Figure 21, Easily control your home's lighting and electrical appliances). When we’re finished, we’ll ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.