Home Automation Project
With the Internet of Things (IoT) space surging and new products being added daily, it seemed fitting to explore how to use Apple’s version of home automation. HomeKit can be thought of as many things: a label on products to assure consumers of compatibility, a set of software frameworks to create HomeKit apps, and even a hardware set of specifications if you’re developing hardware under the MFi program. For this section, we’ll start by using the HomeKit framework to create a simple, on-off toggle of an AC outlet to control a disco ball (Figure 16-1). Why a disco ball? Well, why not? Seriously, though, you can use any AC-powered device; a desk or table lamp, for example, works just as well.