Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Introduction to HomeKit framework by Rameswar Prasad

An Introduction to HomeKit framework by Rameswar Prasad

Abstract: Apple introduced HomeKit framework along with iOS 8 in 2014. This triggered lot of innovative IoT-based home electronics for the consumer market. In this session, I will provide an overview of the HomeKit framework and how to get started with your first HomeKit application.

Bio: Having close to 3 and half years experience in iOS technology, I am working with Swift since it turned 1.0. Currently, I’m working at PurpleTalk on IoT, IIoT, and BLE-based applications. When I’m not developing apps, you can find me either Travelling or talking about traveling.


Swift India

May 13, 2017


  1. An Introduction to HomeKit by Rameswar Prasad

  2. Topics • Why HomeKit? • How HomeKit works? • How

    to setup HomeKit accessories? • Things to keep in mind
  3. Why HomeKit? • Common Protocol • Data Persistence • Remote

    Access • Multiple Users • Siri Interface • Security (Out of the box)
  4. A Real World Home Layout

  5. How HomeKit Works Database (Common) HomeKit App 1 App 2

    App 3
  6. None
  7. Important Classes in HomeKit Framework • HMHomeManager • HMHome •

    HMRoom • HMAccessoryBrowser • HMAccessory • HMCharacteristic
  8. Important Protocols in HomeKit Framework • HMHomeManagerDelegate • HMHomeDelegate •

    HMAccessoryBrowserDelegate • HMAccessoryDelegate
  9. Things to keep in mind • App has to be

    in foreground • Must include ‘NSHomeKitUsageDescription’ key in info.plist, above iOS 10 • The app that initiates calls will get only completion handler callback not delegate callback • Names are unique in their own namespace, but it’s case insensitive i.e ‘Home1’ and ‘Home 1’ are same
  10. Get in Touch • github.com/rameswar54 • facebook.com/rameswar54 • linkedIn.com/in/rameswar54 •

    email — howzaattt@gmail.com • Join swift enthusiasts @ swiftindia.slack.com