TweetFollow Us on Twitter

Automate Your Place, part 1

Volume Number: 23 (2007)
Issue Number: 01
Column Tag: Home Automation

Automate Your Place, part 1

Have your Mac brew your coffee and take care of the lights on your way out

By Andrew Turner

Introduction

Like any good developer or power-user, you've been using the great tools that come with Mac OS X to automate much of your workflow. Applescript and Automator together allow you to rid yourself of repetitive tasks. You import, backup, convert, and markup your photos automatically. Data backups happen once per week, with incremental backups in between.

However, despite all this effort to make your computer work more efficient, safe, and hassle free you probably haven't really considered how much your Mac could be doing for you. Why restrict your automation to just the virtual desktop, why not also automate your real desk. While you're at it automate your office, house, store, garage, shop, or any other place where you have a Mac!

Seem a little too Sci-Fi? Just imagine that in the morning your alarm goes off. As you get out of bed your coffee maker begins brewing a fresh pot of coffee, your Mac wakes up, starts downloading your email, updates your news RSS feeds, opens iCal to the day's agenda, and plays some soothing morning music. Half-an-hour later your coffee maker automatically shuts off. As you pull out of your driveway your computer performs a backup of your files then goes to sleep. When you come home at night, your house knows that it's dark outside and turns on the porch and hallway lights for you. When you're ready to watch a movie you pull up FrontRow and the living room lights dim, the stereo turns on and your video starts playing. You could do the same thing to your shop, office, or garage. Save energy by turning off unused lights, know the state of your security system via a web-browser from your house, or get notified by email when someone enters your driveway. These are just some of the possibilities of an automation system powered by your Mac.

In this article we will introduce you to the current field of Location Automation in the Apple world, it's not just about your house anymore. Automation software has become more advanced, hardware more prevalent and robust, and the community has grown. We will show you how to get started, setup your environment, and connect to the community. In future articles, we will cover more in-depth topics such as writing complex scripts, web interfaces, homemade sensors, and notifications on your cellphone, email, or Skype.

A Whole World of Options

There are two main components of the automation system: automation devices, and the management software that will connect to all these devices and allow you to create your scripts and settings.

Hardware

When home automation became really popular several years ago, everywhere you looked there were ads for X-10 devices. More often than not, the advertised systems were camera systems that had little to do with the X10 standard associated with automation systems. However, the ads made the term X10 known to most computer users. X10 is a standard communication system developed in 1975 for remote control of devices in a home or building. This standard is known for sometimes being unreliable as the communication between the controlling computer and the devices is dependent on the quality of the wiring in the building.

Recently, several more robust standard have begun to emerge to address the frustrations and shortcomings of X10. Most are still in the standards formulation and beta release stage. These include Zigbee, UPB, WiMax, Z-Wave, and HomeRF.

One technology that very has been recently released and gained widespread use and support is INSTEON, which was developed by SmartLabs Technology. INSTEON couples the traditional powerline communications with redundant mesh-networking to speed up response times as well as add state verification. These techniques are implemented to provide users with a hopefully more enjoyable and reliable automation system.

A benefit of the new INSTEON system is that it is backwards compatible with the older X10 devices. This allows current users to slowly upgrade their existing X10 automation systems to INSTEON, and new users purchase the newer INSTEON controller and then purchase INSTEON or inexpensive X10 modules as necessary for your location. For this reason, in this article we will design our automation system using the INSTEON modules. Readers can apply the same techniques to older X10 components.

There are 3 key hardware pieces required for the simplest automation system: controller, signalinc receivers/repeaters, and a device module. We suggest you look at buying starter packages from a vendor (see Resources) to start off your automation system. An INSTEON starter package will cost about $130 USD.

The controller connects to your Mac via USB and plugs into an electrical socket on the other end. The controller will send and receive signals from the INSTEON devices at your location. If you're on a budget, you can stick with an X10 controller like the PowerLinc 1132CU, which is USB and therefore doesn't require a USB to Serial cable. The PowerLinc also has good support with most of the available Mac software packages.

The SignaLinc receiver/repeater are new devices that provide the INSTEON signal repeating and mesh-networking redundancy. The Signalincs come in a pair, and plug into wall sockets around your location. They also have small antennas and will need to be setup so that the pair can communicate wirelessly through your walls.

The device module can be a lamp dimmer or appliance controller (on/off). These modules plug into a wall socket, and then you plug the lamp or appliance into the module. You can then turn the device on by using the appliance's own power switch, by using your Mac, a control pad, or INSTEON switch. Additionally, a device module can be a sensor such as a motion detector or window sensor. For a less apparent automation system, instead of an external module, you can get a wall socket that will replace your current socket.

Other typical pieces of an automation system are switches, button controllers and control pads. These devices have the benefit of looking and operating like normal wall switches and power controllers while also hooking into your automation system. A control pad plugs into a wall socket via a cable, or communicates wirelessly. It is a good idea to have at least one control pad that provides direct control of your hardware devices. That way if your Mac is turned off, out of commission, or you need to debug your home automation system, you can use the control pad.

In addition to the basic devices discussed above, it is possible to tie in a HVAC (heating ventilation and air conditioning) controller, security systems, sprinklers, house sensors, theater systems, and cameras.

For wireless interface, it is possible to get a wireless transceiver. Utilizing a wireless transceiver, you can turn control devices or send commands to your Mac using key fobs and small control pads. Additionally, the wireless interface will detect commands from motion detectors and magnetic switches like the DS10A, and they will show up like X10 devices.

The W800-RF32 is a well-supported wireless interface that plugs into your Mac. Because the W800 is a serial device, you will need a Serial-to-USB converter. The Keyspan adapter is an affordable and very well supported option. Using the W800 you can receive signals from wireless door sensors, or wireless remotes inside and around a house or office.

Look at an online automation vendor for other device options. Also, X10 has been sold under a variety of other branding labels, and these devices are often found inexpensively online or local stores. In particular, the Black & Decker Freewire system provides outdoor X10 plugs, and a wireless remote interface that is great for controlling holiday lights or other external devices. Radio Shack also carries home automation devices that work with X10, and therefore INSTEON systems as well. This can be a great place to quickly pick up devices rather than waiting for that box in the mail.

Software

Once you have your hardware in hand, you will need a way to control and read all your devices. Automation software runs on your Mac computer and allows you to setup triggers, groups, and scripts to give some intelligence to your automation system. Without a software controller you are limited to simple control of devices and small groups of devices.

There are currently 5 software options on the Mac: Perceptive Automation's Indigo, Sand Hill Engineering's XTension, AlwaysThinking's ThinkingHome, Findley Studios' HomeRun, and the open-source MisterHouse.

MisterHouse is an open-source option that is built on Perl. It runs on all the major OS's: MS Windows, Linux, and Mac OS X. The scriptability of MisterHouse is very powerful, and the entire underlying system is exposed for the user to tweak as desired. However, the learning curve is somewhat high, and INSTEON support is starting to emerge, but not solid yet.


Figure 1: MisterHouse offers a lot of features and configurability, but has a steep learning curve.

XTension has long been a well supported and very reliable Mac automation solution. It has been developed and supported for over 10 years, and includes many interesting features. In addition to the normal configuration and control of devices, XTension allows users to configure their own layouts and switches in the client views, and the ability for multiple XTension instances to communicate with one another over a network. It also offers a unique capability to utilize multiple controllers, which is useful for dealing with bridging different power legs in buildings. Lastly, XTension has a large AppleScript dictionary for users to write their own logic, and good integration with web cameras.

The developers of Xtension, Sand Hill, evaluate new technologies before necessarily implementing them. Their philosophy is that a critical component of the automation system is reliability. Therefore, their releases and feature updates are less frequent than other automation software options. Sand Hill also maintains a very extensive list of tutorials and information on automation systems and is definitely worth reading for learning more about the subject.

Perceptive Automation's Indigo was upgraded recently to a version 2.0 with a large list of new features, including, foremost, that it is a Universal Binary, so it will run natively on your new Intel-based Mac. Indigo supports X10 and INSTEON controllers, utilizes Client/Server architecture, so it's easy to control your automation system from a remote computer running just an Indigo client. For additional remote control, there is a very configurable web interface, and Dashboard widget, and very active community and forums to help you set it all up. Using the web interface, you can quickly control your automation system from anywhere in the world (disclaimer: the author developed the web interface and widget, and the source code is available under an open-source license). Indigo is available as an unrestricted 30-day demo available at Perceptive Automation's website.

ThinkingHome, and HomeRun all provide adequate interface to X10 controllers, with varying levels of scriptability, interface, and overall features. Unfortunately, these three options don't appear to be actively updated, though they're still available for trial. They're also only available for PPC and not as Universal Binaries.

This was a quick run down of the various automation software solutions available on the Mac. Due to the active development and support of Indigo, as well as the ease of use, support of Mac technologies, and impressive list of features, we will be discussing Indigo in more depth in our next article.

Putting it Together: Designing your Automation System

Now that we've covered the different pieces you will need to automate your place, lets design a system. For the purposes of this example, we will use a small office (homes are typically used, so lets turn it around). Besides, the example could easily be inverted and applied to a home, workshop, or home office.

First thing to do is to list the devices you will want to control with your automation system. Lets say: coffee maker, overhead lights, desk lamp, door and window closures, and a stereo system. Additionally, we want to integrate the system with our existing switches to keep the transition to an automation system transparent to other members of the office. Just like SAF (Spouse Approval Factor) there is such as thing as Co-worker Approval Factor (CAF). Based on this list, we will need to determine our "Bill of Materials" to order from an automation store. We will also use this list to record the device addresses of our modules for later programming into Indigo.

Table 1: Components for a Sample Office Automation System
Component Device
Computer Interface PowerLinc/SignalLincs
Coffee Maker
ApplianceLinc
Overhead light switch (2)
SwitchLinc
Desk Lamp LampLinc
Stereo ApplianceLinc
Doors, windows (6) Powerflash or DS10A
Wireless transceiver W800-RF32

This is just a suggested system, and you're free to choose and configure the devices as you see fit. Our example office is just a general example of a simple system that utilizes the principal parts of an automation system.

Summary

We just covered the basics and options of an automation system with your Mac. The automation software available for your Mac allows unlimited customization, and hardware and interfaces are plentiful for whatever you want to control or sense. In our next article, we will setup an automation system for a small office/workshop, setup modes, a web interface, and notifications.

Resources

Vendors

SmartHome - http://www.smarthome.com

FunForGeeks - http://funforgeeks.com

Software

Indigo - http://www.perceptiveautomation.com

XTension - http://www.shed.com/

MisterHouse - http://misterhouse.sourceforge.net/

ThinkingHome - http://www.alwaysthinking.com

HomeRun - http://www.findleystudios.com/homerun

Resources

XTension Mailing List - http://lists.shed.com/mailman/listinfo/xtensionlist

Indigo Forums - http://www.perceptiveautomation.com/phpBB2/index.php

comp.home.automation - http://groups.google.com/group/comp.home.automation


Andrew Turner is an independent software developer and technology integrator who has built robotic airships, automated his house, designed spacecraft, and in general looks for any excuse to hack together cool technology. You can read more about his projects at www.highearthorbit.com.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Bound through time on the hunt for sneak...
Have you ever sat down and wondered what would happen if Dr Who and Sherlock Holmes went on an adventure? Well, besides probably being the best mash-up of English fiction, you'd get the Hidden Through Time series, and now Rogueside has announced... | Read more »
The secrets of Penacony might soon come...
Version 2.2 of Honkai: Star Rail is on the horizon and brings the culmination of the Penacony adventure after quite the escalation in the latest story quests. To help you through this new expansion is the introduction of two powerful new... | Read more »
The Legend of Heroes: Trails of Cold Ste...
I adore game series that have connecting lore and stories, which of course means the Legend of Heroes is very dear to me, Trails lore has been building for two decades. Excitedly, the next stage is upon us as Userjoy has announced the upcoming... | Read more »
Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »

Price Scanner via MacPrices.net

Apple AirPods Pro with USB-C return to all-ti...
Amazon has Apple’s AirPods Pro with USB-C in stock and on sale for $179.99 including free shipping. Their price is $70 (28%) off MSRP, and it’s currently the lowest price available for new AirPods... Read more
Apple Magic Keyboards for iPads are on sale f...
Amazon has Apple Magic Keyboards for iPads on sale today for up to $70 off MSRP, shipping included: – Magic Keyboard for 10th-generation Apple iPad: $199, save $50 – Magic Keyboard for 11″ iPad Pro/... Read more
Apple’s 13-inch M2 MacBook Airs return to rec...
Apple retailers have 13″ MacBook Airs with M2 CPUs in stock and on sale this weekend starting at only $849 in Space Gray, Silver, Starlight, and Midnight colors. These are the lowest prices currently... Read more
Best Buy is clearing out iPad Airs for up to...
In advance of next week’s probably release of new and updated iPad Airs, Best Buy has 10.9″ M1 WiFi iPad Airs on record-low sale prices for up to $200 off Apple’s MSRP, starting at $399. Sale prices... Read more
Every version of Apple Pencil is on sale toda...
Best Buy has all Apple Pencils on sale today for $79, ranging up to 39% off MSRP for some models. Sale prices for online orders only, in-store prices may vary. Order online and choose free shipping... Read more
Sunday Sale: Apple Studio Display with Standa...
Amazon has the standard-glass Apple Studio Display on sale for $300 off MSRP for a limited time. Shipping is free: – Studio Display (Standard glass): $1299.97 $300 off MSRP For the latest prices and... Read more
Apple is offering significant discounts on 16...
Apple has a full line of 16″ M3 Pro and M3 Max MacBook Pros available, Certified Refurbished, starting at $2119 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free... Read more
Apple HomePods on sale for $30-$50 off MSRP t...
Best Buy is offering a $30-$50 discount on Apple HomePods this weekend on their online store. The HomePod mini is on sale for $69.99, $30 off MSRP, while Best Buy has the full-size HomePod on sale... Read more
Limited-time sale: 13-inch M3 MacBook Airs fo...
Amazon has the base 13″ M3 MacBook Air (8GB/256GB) in stock and on sale for a limited time for $989 shipped. That’s $110 off MSRP, and it’s the lowest price we’ve seen so far for an M3-powered... Read more
13-inch M2 MacBook Airs in stock today at App...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more

Jobs Board

Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
*Apple* Software Engineer - HP Inc. (United...
…Mobile, Windows and Mac applications. We are seeking a high energy Senior Apple mobile engineer who can lead and drive application development while also enabling Read more
Licensed Practical Nurse - Womens Imaging *A...
Licensed Practical Nurse - Womens Imaging Apple Hill - PRN Location: York Hospital, York, PA Schedule: PRN/Per Diem Sign-On Bonus Eligible Remote/Hybrid Regular Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.