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

Dropbox 193.4.5594 - Cloud backup and sy...
Dropbox is a file hosting service that provides cloud storage, file synchronization, personal cloud, and client software. It is a modern workspace that allows you to get to all of your files, manage... Read more
Google Chrome 122.0.6261.57 - Modern and...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
Skype 8.113.0.210 - Voice-over-internet...
Skype is a telecommunications app that provides HD video calls, instant messaging, calling to any phone number or landline, and Skype for Business for productive cooperation on the projects. This... Read more
Tor Browser 13.0.10 - Anonymize Web brow...
Using Tor Browser you can protect yourself against tracking, surveillance, and censorship. Tor was originally designed, implemented, and deployed as a third-generation onion-routing project of the U.... Read more
Deeper 3.0.4 - Enable hidden features in...
Deeper is a personalization utility for macOS which allows you to enable and disable the hidden functions of the Finder, Dock, QuickTime, Safari, iTunes, login window, Spotlight, and many of Apple's... Read more
OnyX 4.5.5 - Maintenance and optimizatio...
OnyX is a multifunction utility that you can use to verify the startup disk and the structure of its system files, to run miscellaneous maintenance and cleaning tasks, to configure parameters in the... Read more
Hopper Disassembler 5.14.1 - Binary disa...
Hopper Disassembler is a binary disassembler, decompiler, and debugger for 32- and 64-bit executables. It will let you disassemble any binary you want, and provide you all the information about its... Read more

Latest Forum Discussions

See All

Zenless Zone Zero opens entries for its...
miHoYo, aka HoYoverse, has become such a big name in mobile gaming that it's hard to believe that arguably their flagship title, Genshin Impact, is only three and a half years old. Now, they continue the road to the next title in their world, with... | Read more »
Live, Playdate, Live! – The TouchArcade...
In this week’s episode of The TouchArcade Show we kick things off by talking about all the games I splurged on during the recent Playdate Catalog one-year anniversary sale, including the new Lucas Pope jam Mars After Midnight. We haven’t played any... | Read more »
TouchArcade Game of the Week: ‘Vroomies’
So here’s a thing: Vroomies from developer Alex Taber aka Unordered Games is the Game of the Week! Except… Vroomies came out an entire month ago. It wasn’t on my radar until this week, which is why I included it in our weekly new games round-up, but... | Read more »
SwitchArcade Round-Up: ‘MLB The Show 24’...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for March 15th, 2024. We’re closing out the week with a bunch of new games, with Sony’s baseball franchise MLB The Show up to bat yet again. There are several other interesting games to... | Read more »
Steam Deck Weekly: WWE 2K24 and Summerho...
Welcome to this week’s edition of the Steam Deck Weekly. The busy season has begun with games we’ve been looking forward to playing including Dragon’s Dogma 2, Horizon Forbidden West Complete Edition, and also console exclusives like Rise of the... | Read more »
Steam Spring Sale 2024 – The 10 Best Ste...
The Steam Spring Sale 2024 began last night, and while it isn’t as big of a deal as say the Steam Winter Sale, you may as well take advantage of it to save money on some games you were planning to buy. I obviously recommend checking out your own... | Read more »
New ‘SaGa Emerald Beyond’ Gameplay Showc...
Last month, Square Enix posted a Let’s Play video featuring SaGa Localization Director Neil Broadley who showcased the worlds, companions, and more from the upcoming and highly-anticipated RPG SaGa Emerald Beyond. | Read more »
Choose Your Side in the Latest ‘Marvel S...
Last month, Marvel Snap (Free) held its very first “imbalance" event in honor of Valentine’s Day. For a limited time, certain well-known couples were given special boosts when conditions were right. It must have gone over well, because we’ve got a... | Read more »
Warframe welcomes the arrival of a new s...
As a Warframe player one of the best things about it launching on iOS, despite it being arguably the best way to play the game if you have a controller, is that I can now be paid to talk about it. To whit, we are gearing up to receive the first... | Read more »
Apple Arcade Weekly Round-Up: Updates an...
Following the new releases earlier in the month and April 2024’s games being revealed by Apple, this week has seen some notable game updates and events go live for Apple Arcade. What The Golf? has an April Fool’s Day celebration event going live “... | Read more »

Price Scanner via MacPrices.net

Apple Education is offering $100 discounts on...
If you’re a student, teacher, or staff member at any educational institution, you can use your .edu email address when ordering at Apple Education to take $100 off the price of a new M3 MacBook Air.... Read more
Apple Watch Ultra 2 with Blood Oxygen feature...
Best Buy is offering Apple Watch Ultra 2 models for $50 off MSRP on their online store this week. Sale prices available for online orders only, in-store prices may vary. Order online, and choose... Read more
New promo at Sams Club: Apple HomePods for $2...
Sams Club has Apple HomePods on sale for $259 through March 31, 2024. Their price is $40 off Apple’s MSRP, and both Space Gray and White colors are available. Sale price is for online orders only, in... Read more
Get Apple’s 2nd generation Apple Pencil for $...
Apple’s Pencil (2nd generation) works with the 12″ iPad Pro (3rd, 4th, 5th, and 6th generation), 11″ iPad Pro (1st, 2nd, 3rd, and 4th generation), iPad Air (4th and 5th generation), and iPad mini (... Read more
10th generation Apple iPads on sale for $100...
Best Buy has Apple’s 10th-generation WiFi iPads back on sale for $100 off MSRP on their online store, starting at only $349. With the discount, Best Buy’s prices are the lowest currently available... Read more
iPad Airs on sale again starting at $449 on B...
Best Buy has 10.9″ M1 WiFi iPad Airs on record-low sale prices again for $150 off Apple’s MSRP, starting at $449. Sale prices for online orders only, in-store price may vary. Order online, and choose... Read more
Best Buy is blowing out clearance 13-inch M1...
Best Buy is blowing out clearance Apple 13″ M1 MacBook Airs this weekend for only $649.99, or $350 off Apple’s original MSRP. Sale prices for online orders only, in-store prices may vary. Order... Read more
Low price alert! You can now get a 13-inch M1...
Walmart has, for the first time, begun offering new Apple MacBooks for sale on their online store, albeit clearance previous-generation models. They now have the 13″ M1 MacBook Air (8GB RAM, 256GB... Read more
Best Apple MacBook deal this weekend: Get the...
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
New 15-inch M3 MacBook Air (Midnight) on sale...
Amazon has the new 15″ M3 MacBook Air (8GB RAM/256GB SSD/Midnight) in stock and on sale today for $1249.99 including free shipping. Their price is $50 off MSRP, and it’s the lowest price currently... Read more

Jobs Board

Early Preschool Teacher - Glenda Drive/ *Appl...
Early Preschool Teacher - Glenda Drive/ Apple ValleyTeacher Share by Email Share on LinkedIn Share on Twitter Read more
Senior Software Engineer - *Apple* Fundamen...
…center of Microsoft's efforts to empower our users to do more. The Apple Fundamentals team focused on defining and improving the end-to-end developer experience in Read more
Relationship Banker *Apple* Valley Main - W...
…Alcohol Policy to learn more. **Company:** WELLS FARGO BANK **Req Number:** R-350696 **Updated:** Mon Mar 11 00:00:00 UTC 2024 **Location:** APPLE VALLEY,California Read more
Medical Assistant - Surgical Oncology- *Apple...
Medical Assistant - Surgical Oncology- Apple Hill WellSpan Medical Group, York, PA | Nursing | Nursing Support | FTE: 1 | Regular | Tracking Code: 200555 Apply Now Read more
Early Preschool Teacher - Glenda Drive/ *Appl...
Early Preschool Teacher - Glenda Drive/ Apple ValleyTeacher Share by Email Share on LinkedIn Share on Twitter Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.