- Developing Apps and Accessories for the Home
- Developing with HomeKit
- Accessories
- Manufacturing accessories
- Works with Apple HomeKit
- Get your apps ready for Matter
- HomeKit: Everything You Need to Know
- What is HomeKit?
- What You Can Do With HomeKit
- Setting It Up
- How HomeKit Devices Connect
- Types of HomeKit Devices
- Basic HomeKit Setup Tutorials
- Using the Home App
- Setting Up Remote Access
- HomePod and AirPlay 2
- HomeKit Requirements
- Ways to Control Your HomeKit Devices
- HomeKit Secure Video
- Reviews of HomeKit Accessories
- Lights
- Sensors
- Buttons/Remotes/Switches
- Locks
- Cameras
- Thermostats
- Plugs and Outlets
- Miscellaneous
- Security and Privacy
- Solving HomeKit Connectivity Problems
- Discuss HomeKit
- Guide Feedback
- Apple HomeKit and Home app: What are they and how do they work?
- — HomeKit is Apple’s platform for home automation
- — The Home app also offers easy setup, touch controls
- What is HomeKit and how does it work?
- How can you tell if something is HomeKit compatible?
- Which Apple devices work with HomeKit?
- What is the Home app and how does it work?
- Get started with the Home app
- Add an accessory in Home app
- Editing your devices in the Home app
- Rooms in the Home app
- Automation tab in the Home app
- Customise and group accessories
- Create accessory scenes
- Control your accessories
- Invite others to control your home
Developing Apps and Accessories for the Home
Allow users to communicate with and control connected accessories in their home using your app. With the HomeKit framework, you can provide ways to configure accessories and create actions to control them. Users can even group actions together and trigger them using Siri.
Developing with HomeKit
Whether you’re an app developer, smart home enthusiast, or manufacturer, you can learn how to use HomeKit to create apps and accessories for the home.
Learn how iOS, iPadOS, tvOS, and watchOS apps seamlessly integrate with HomeKit accessories.
Accessories
Learn and explore how to create accessories for your home using the HomeKit Accessory Protocol.
Manufacturing accessories
Works with Apple HomeKit
If you plan to develop or manufacture a HomeKit accessory that will be distributed or sold, your company will need to be enrolled in the MFi Program.
MFi licensees get access to:
- HomeKit Accessory Protocol Specification (commercial version).
- Third-party SDKs for commercial development.
- “Works with Apple HomeKit” certification and tools.
- Logo artwork and identity guidelines.
Get your apps ready for Matter
With iOS 15 SDK beta, you can now start testing your smart home apps with Matter, the unifying open connectivity standard designed to increase the compatibility of smart home accessories so they work seamlessly with your devices. Existing HomeKit APIs automatically work with Matter-enabled accessories, so you don’t need to make any changes to your iOS or iPadOS apps that support HomeKit. Find out more about Matter standard and open source implementation on GitHub.
Источник
HomeKit: Everything You Need to Know
The HomeKit ecosystem may seem daunting and confusing if you’re unfamiliar with smart home products, their functionality, and their benefits, but getting started is actually simple and straightforward. Learning the ins and outs of HomeKit after setup does take a bit of effort, but it’s not a difficult process and having interlinked electronics that can interact with each other and be automated can save time and really streamline your life.
What is HomeKit?
HomeKit is Apple’s smart home platform, which is designed to let you control various internet-connected home devices — ranging from thermostats and plugs to window blinds, light bulbs, and more — with Apple devices.
These days, more and more products are internet connected, which is why you’ve heard the phrase «Internet of Things.» The Internet of Things is a confusing mix of «smart» products that connect to the internet and can be controlled by a range of different platforms, from Amazon’s Alexa to Google Home to Samsung SmartThings.
HomeKit is Apple’s «Internet of Things» solution that connects HomeKit-enabled smart accessories together in a way that lets you operate them using your Apple products.
What You Can Do With HomeKit
HomeKit isn’t a product or software; it’s a framework that links smart home products together and adds new capabilities to devices like lights, locks, cameras, thermostats, plugs, and more. HomeKit lets you control smart home products using apps on your iPhone, iPad, or Mac, or simple Siri voice commands.
While controlling smart home products with Siri or with an iPhone is convenient, the real magic of HomeKit comes when you have multiple HomeKit-enabled products because you can control them all at once using scenes or set up automations so that they activate automatically.
You can, for example, create a «Good night» scene that makes sure the doors are locked, closes the garage, turns off the lights, lowers the thermostat, and then activates a night light whenever motion is detected. With automation, you can set individual HomeKit devices to come on or off at specific times, or you can set entire scenes, like the aforementioned «Good night» scene to come on at a set time.
HomeKit setups, scenes, and automations can be as complex or as simple as you like, and now that HomeKit is in its fifth year of availability, there are all kinds of HomeKit products you can purchase. With a bit of time and some money, you can have a whole smart home ecosystem that’s streamlined, automated, and easy to control.
Setting It Up
Getting started with HomeKit is as simple as purchasing a HomeKit-enabled device, whether it be a smart plug, light bulb, AirPlay 2 speaker, Apple TV, HomePod, HomePod mini, thermostat, or something else.
From there, open up the «Home» app, which comes pre-installed on all iOS devices. Tap on the «Add Accessory» button that’s on the main screen of the Home app, and then follow the steps after it opens up to the rear camera.
All HomeKit products come with a HomeKit QR code on them, which you need to scan with the camera. Scanning the HomeKit code adds a device to the HomeKit framework, and then you can follow a few additional steps to assign it to a room, a necessary step for organizing your HomeKit devices.
How HomeKit Devices Connect
HomeKit devices connect to your HomeKit setup through Bluetooth, Wi-Fi, or a hub, which connects to Wi-Fi. Many HomeKit devices in the United States use WiFi or connect to a hub over WiFi. Hue light bulbs, for example, use a hub, while smart lights from other brands like LIFX use WiFi.
There are some devices that connect over Bluetooth, and with Bluetooth devices, it’s worth noting that you’re going to need home hubs to extend connectivity, otherwise connection range can be rather limited. Home hubs include the Apple TV, the iPad, and the HomePod. There’s also a «Thread» protocol that’s emerging that more seamlessly connects your devices without the need for the delays of WiFi.
Types of HomeKit Devices
There are all kinds of HomeKit devices on the market, some that are more capable than others. The following HomeKit categories are available:
- Lights
- Switches
- Outlets
- Thermostats
- Window Blinds
- Fans
- Air Conditioners
- Humidifiers
- Air Purifiers
- Sensors
- Locks
- Cameras
- Doorbells
- Garage Doors
- Sprinklers
- Speakers
- Routers
- TVs
Apple maintains a full list of HomeKit-compatible devices on its website, complete with links, so this is the best place to get an overview of all of the different HomeKit devices that you can put in your home.
Smart home devices that are compatible with HomeKit will have «Works with Apple Homekit» labeling on the packaging to make it clear that they support HomeKit.
Basic HomeKit Setup Tutorials
Using the Home App
Setting Up Remote Access
HomePod and AirPlay 2
HomeKit Requirements
Using HomeKit requires an iPhone, iPad, or iPod touch running the latest version of iOS, along with at least one HomeKit-enabled device.
Using the Home app on the Mac requires macOS Mojave or later, and to control devices when away from home, an Apple TV, iPad, HomePod, or HomePod mini is required to serve as a Home Hub.
Ways to Control Your HomeKit Devices
The great thing about HomeKit is the myriad ways that you can control your HomeKit compatible devices.
You can use Siri voice commands on the iPhone, iPad, iPod touch, Mac, Apple Watch, HomePod, or Apple TV to ask Siri to complete HomeKit tasks.
Devices can be controlled manually in the Home app, or in the app that comes with the device. Each HomeKit device will have an app downloadable from the iOS App Store that offers a way to control it.
You can also purchase HomeKit-enabled button-type devices that serve as remotes to activate HomeKit scenes physically, and there are switches for controlling HomeKit products such as lights.
HomeKit Secure Video
Apple in iOS 13 introduced HomeKit Secure Video, an API that uses the iPad, Apple TV, or HomePod to analyze video captured by compatible smart home cameras right in your home.
Video feeds are encrypted end-to-end and uploaded to iCloud, which means you alone can see the video footage without the risk of hackers accessing it. Multiple camera manufacturers, including Eufy, Eve, and Logitech have debuted HomeKit Secure Video cameras.
Using HomeKit Secure Video requires a paid iCloud plan, priced starting at $0.99 per month. The 50GB $0.99 plan allows you to connect one HomeKit Secure Video camera, while the $2.99 per month plan allows for up to five cameras. With the $9.99 per month plan, you can connect an unlimited number of HomeKit Secure Video Cameras, and with all of these plans, none of the stored video footage counts against your iCloud storage.
Reviews of HomeKit Accessories
Lights
Sensors
Buttons/Remotes/Switches
Locks
Cameras
Thermostats
Plugs and Outlets
Miscellaneous
Security and Privacy
Security and privacy are topics that Apple takes seriously, and thus every manufacturer that creates a HomeKit-compatible device has to follow Apple’s security guidelines, better ensuring your devices are safe from hackers.
Apple’s commitment to privacy and demand that HomeKit products be secure is reassuring at a time when our homes are filled with smart devices that can hear us and see us.
For a long time, Apple required all HomeKit products to include a hardware-based HomeKit authentication coprocessor for HomeKit certification, and many HomeKit devices continue to offer this. In 2017, Apple began allowing manufacturers to obtain HomeKit certification with software-based authentication, but HomeKit is no less secure as a result.
All HomeKit devices use the same security features, including end-to-end encryption, non-reusable encryption keys, and two-way authentication (Apple verifies your HomeKit device and your HomeKit device verifies your Apple device) when connecting to a HomeKit setup.
A HomeKit camera, for example, sends video and audio streams directly to an iOS device and those streams are encrypted using randomly generated keys to prevent someone from intercepting your video feed.
All HomeKit data stored on your devices is fully encrypted, and HomeKit syncing between devices is done via iCloud and iCloud Keychain, both of which have their own security. Apple also must approve each and every device that gets the HomeKit labeling. In a nutshell, Apple has worked to make HomeKit a secure smart home platform that people can trust.
HomeKit is not without its bugs, though, and there have been some security snafus. In December 2017, there was a bug that left HomeKit accessories vulnerable to unauthorized access, but Apple was quick to fix it.
For those interested, the nitty gritty details about HomeKit security are available in Apple’s iOS Security Guide and are well worth checking out if you have security concerns about using smart home devices. [PDF]
Solving HomeKit Connectivity Problems
When using HomeKit devices, you might sometimes see an error that a device is unreachable in the Home app or have other problems connecting to a HomeKit product.
The Home app, and most HomeKit apps that accompany HomeKit products, provide very little info on why a HomeKit product isn’t working properly or connecting to your network, which can make troubleshooting HomeKit issues frustrating.
There are a few basic steps you can follow that will sometimes solve connectivity issues.
- Make sure the HomeKit device has power, is turned on, and is in range of your router if it’s a Wi-Fi device.
- Turn the HomeKit device off, wait a good 10 seconds, and turn it back on. Do the same thing with your iPhone or other device you’re attempting to use with HomeKit.
- Check the Wi-Fi connection and reset your router. Make sure your iOS device is up to date, connected to the internet, and that you’re signed into iCloud.
- Make sure your HomeKit device is on the right Wi-Fi band. There are a lot of HomeKit devices that are 2.4GHz while most devices connect to 5GHz networks, and that can sometimes cause problems. If you have a 2.4GHz accessory, make sure it’s on the 2.4GHz network. Steps for this will vary based on your setup.
- Remove the device from HomeKit in the Home app and then re-add it by scanning it. For some HomeKit products, this is probably a last resort step because it eliminates scenes and automations.
- Remove the device from HomeKit and reset it. This is a step that’s necessary when removing some HomeKit devices from a HomeKit setup. You’re going to need to consult the manual of your device because resetting is different on every product.
If none of these steps work, you’re going to want to contact the support staff for whichever product you’re having problems with to get further information on what to do for troubleshooting purposes.
Many HomeKit manufacturers have online troubleshooting databases, so in some cases, you can just Google for a solution.
There are more drastic steps to take, such as logging in and out of iCloud or resetting your entire HomeKit setup, but we recommend contacting a manufacturer before trying these last resort options just because of the hassle involved.
Discuss HomeKit
Have a setup question or a HomeKit issue you just can’t figure out? You might want to check out the HomeKit forums on the MacRumors site for additional help. There are quite a few HomeKit users on the forums, and most people are happy to help.
Guide Feedback
Want to offer feedback on this guide, ask for feature additions, or point out an error? Send us an email here.
Источник
Apple HomeKit and Home app: What are they and how do they work?
— HomeKit is Apple’s platform for home automation
— The Home app also offers easy setup, touch controls
(Pocket-lint) — Apple HomeKit is designed to make it easier for you to set up and control the smart home gear in your home.
These include devices like Philips Hue lights, Wink lights, and other smart speakers, thermostats, detectors, plugs, blinds, locks, sensors and so on.
HomeKit-enabled smart accessories are secure, easy to use, and work with iPhone, iPad, Apple Watch, Apple TV, and HomePod. Any manufacturer can implement HomeKit into their smart accessories.
You can use the Home app for iPhone, iPad, and Apple Watch to set up all your HomeKit-enabled smart accessories, and then you can use Siri to ultimately control them via voice commands.
It’s worth pointing out that while HomeKit itself isn’t compatible with smart home ecosystems like Amazon Alexa or Google Assistant the individual devices might work with several.
What is HomeKit and how does it work?
So, you’re probably wondering to yourself: I’ve long owned smart lights and controlled them with their own separate iOS apps, so why is HomeKit necessary? Well, imagine that you also own smart blinds.
Without HomeKit, your smart lights can’t communicate with your smart blinds, meaning you can’t hook them up together, control them with a single interface, or set them to perform actions together.
Imagine being able to make your lights automatically to turn off while simultaneously making your window blinds close at 9pm every night.
Until HomeKit and the Home app, you had to manually control each accessory with their own separate apps, and you’d have to set every one to do a specific task at a certain time in order to give the appearance that they worked together. That’s all rather tedious, right?
HomeKit-enabled smart accessories, however, can speak to each other, and best of all, you can control them using voice commands through Siri.
You can use Siri on your iPhone (say things like, “Turn on the lights in the garage” or “Good morning”) to trigger a bunch of actions. You can make your smart accessories turn on and do their thing. For instance, maybe your coffee can brew while your doors unlock.
Every HomeKit-enabled smart accessory automatically works with Siri once you set it up through its HomeKit-enabled app.
Siri is just the unified interface you use to bark voice commands to the smart accessories. You still need to use their separate apps, which every smart accessory has, to gain full access to settings, touch controls, and more.
Now, the last thing you need to know about HomeKit is that it can enforce end-to-end encryption between all smart accessories and your Apple devices. That means hackers can’t steal your data, work their way into your communications, or take control of your home.
How can you tell if something is HomeKit compatible?
Manufacturers can add support for HomeKit into their smart accessories, but they need to get their smart accessories approved by Apple in order to make them HomeKit compatible.
HomeKit-enabled smart accessories are marked with a “Works with Apple HomeKit” badge on their product packaging. If you own a smart accessory without that, it won’t work with HomeKit.
Which Apple devices work with HomeKit?
The following Apple devices work with HomeKit:
- Apple iPhone, iPad, or iPod touch (running iOS 10 or later)
- Apple Watch (running WatchOS 3 or later)
- Apple TV (fourth generation)
- Apple HomePod/HomePod mini
- Macs with macOS 10.14 Mojave or later
What is the Home app and how does it work?
Apple launched its Home app in 2016 and it’s available for iOS/iPadOS as well as Macs running macOS 10.14 Mojave or later. It serves as a centralised hub for managing Apple HomeKit-enabled accessories. These are devices that have been specifically certified by Apple.
Many HomeKit-enabled smart accessories have their own separate apps, but the advantage of using the Home app is that you can access and control all of them from one centralised location.
With the new Home app, it’s now easy to set up and manage all your HomeKit-enabled smart accessories. The app features integration with Control Center, 3D Touch quick actions, and of course, support for Siri.
The app’s settings are also synced through Apple’s iCloud storage service, so any iCloud-enabled Apple device — whether that be an iPhone or iPad — can be used to control your Home.
Get started with the Home app
There is a pecking order when it comes to using the Home app, which is essential to understanding how the app functions: Home > Rooms > Accessories > (Groups, Scenes, and Automation). Those last bits — groups, scenes, and automation — is optional, but we’ll get into that later. Once you launch the Home app, and you’ll be greeted with a “Welcome Home” screen that explains the Home app.
Tap the Get Started button to proceed. The initial smart accessory setup process in the Home app is easy to follow. By default you’ll see a new “My Home” screen, which allows you to start adding locks, lights, thermostats, etc. You can change the name of your Home, change the background wallpaper, and more. Also, notice that the Home app has three main tabs: Home, Rooms, and Automation.
But before we get into all that, add your first accessory.
Add an accessory in Home app
Tap the Add Accessory button. The Home app will then scan your Home network to find any HomeKit-enabled smart accessory. For this step to work, both your Apple device and your HomeKit-enabled device need to be connected to the same local network (like your home Wi-Fi).
Tap the accessory, and then you’ll be asked to enter an 8-digit setup code that’s either on the accessory or its packaging. The Home app will show a camera frame so that you can capture the HomeKit code without having to manually enter in the code.
Some HomeKit accessory packaging also has a HomeKit code (a bit like a QR code) that you can scan and use to add accessories.
Once done, the Home app will pair with the HomeKit-enabled smart accessory and reroute you to the Add Accessory screen to complete the pairing process.
To rename your accessories, tap in the name box and adjust it. You can set a location for the accessory; Bedroom, Dining Room, and Living Room, are provided by default.
To create your own location, tap the Create New button. You can also use the Include in Favourites option at the bottom of the Add Accessory screen to pin your accessory to the Control Center in iOS 10 and Home tab in the Home app.
It’s important to note that some smart accessories need you to use their own separate apps for software updates and so on.
Editing your devices in the Home app
In the Home app you should see your paired accessories listed on the Home tab. From here, you can also customise the Home tab. You can also see your key devices on the Action Center in iOS/iPadOS, too. That’s the easist way to access them.
You can have more than one Home configured in the app. You can additional homes by tapping the Add Home button in the top corner.
To add a new accessory to a home, tap the ‘+’ button in the corner while on the Home tab, and then tap Add Accessory. Of course, when adding a new accessory, you’ll be thrown back into the initial setup process we covered.
Rooms in the Home app
Once you’ve added and configured an accessory, the Home app adds a room by default. The Rooms tab can be adjusted to include multiple rooms within a Home. We recommend using rooms that reflect the actual rooms in your home. So, if you have a Philips Hue light in your living room, create a room called Living Room. Just tap the List button in the corner to edit the room, change its name or room wallpaper, etc.
You can take a picture of the room, for instance, and add it as your room wallpaper. Now, to add an additional room, tap the Add Room button in the corner of the Rooms tab. Once you’ve added all your rooms, you can swipe between them on the Rooms tab. To add a new accessory to a room, tap the + button in the corner, then tap Add Accessory, and you’ll be thrown into that initial setup process again.
Automation tab in the Home app
The Automation tab enables you to automate accessory actions based on triggers like location or time. However, it requires a fourth-generation Apple TV, an iPad running iOS 10 or later, or a HomePod. When away from home, either of these can provide remote access and let you take advantage of the Home app’s Automation feature, which automates accessories based on the following triggers:
- My location changes
- A time of day occurs
- An accessory is controlled
- A sensor detects something
To create a new Automated task, tap the Automation tab in the corner of the Home app, then tap Create new Automation, and select one of the four automation triggers on the New Automation screen. Once you select a trigger, you can select the scenes and accessories to automate. You can play around with scenes to build a truly custom automated task, then tap the Done, and your automated task will be saved.
An example of an automated task would be having your living room lights turn on at sunset. You could have them turn on at a specific brightness level or colour even. The granular controls available to you of course depend on your smart accessory.
Customise and group accessories
Now that you’ve created rooms for each room in your home that contains a HomeKit-enabled smart accessory, you’ll also want to give your accessory a name to make it easier for you to access it. Just long-press on an accessory tile in the Home app, then tap the Details button at the bottom, and from the accessory customisation screen, you can rename it, set its location, include it in favourites, etc.
On this accessory customisation screen, you can also group an accessory with other HomeKit-enabled smart devices. This will make all the devices work together as a singular device. That also means you can control all your grouped smart accessories at once — an automation. However, accessories can be controlled in many different ways, which we explain in more detail below.
Create accessory scenes
But, first: scenes. These are actions that involve two or more accessories. You can create a scene called “Good Morning” that turns on all the lights in a room in the morning. Scenes are different from groups because each can still be controlled individually. You can invoke different actions for each device, so maybe one light will turn on and another will turn off. It all just depends on you and your preferences.
On the Home or Rooms tab, tap the + button in the corner, followed by Add Scene. You’ll then see a New Scene screen. Apple includes four suggested scenes to start with: Arrive Home, Good Morning, Good Night, Leave Home. You can of course create a custom scene, with a custom icon and name. Just tap Custom at the bottom of the New Scene page. You can also customise Apple’s suggested scenes.
Shortcuts to scenes will be available in the Control Center on your iOS device. You can also choose it to Show in Favourites, which is enabled by default. Scenes added to favourites will appear on the Home tab in the Home app and have 3D Touch quick action options.
Control your accessories
You can control a smart accessory through the Home app. So, if you want to turn your light on or off, simply tap on the accessory tile. Or, you can long-press on the tile will reveal additional options, such as a dimmer interface or maybe a colour-changing slider. This is different for every accessory, so it’s important to play around a bit to discover the type of granular controls available.
You can also control accessories through the Apple Watch. The Home app comes with an Apple Watch complication, which is a shortcut to the Home app. You can also add the Home app to your Dock in the Apple Watch.
And in iOS/iPad on iPhone or iPad, the Home app has its own spot in the Control Center. Just swipe up from your Home Screen to access the Control Center and then swipe all the way to the right.
You will then see all of your favourite HomeKit accessories and can tap on an accessory tile to toggle it on or off without having to launch the Home app. Once again, a long-press on an accessory tile in the Control Center will serve up more options. The Home section of Control Center also lets you select favourite scenes. Just tap the Scenes/Accessories button in the corner of the Home section.
Siri control is probably the easiest method. Just say something like “Turn on kitchen light” or «Turn my bedroom light purple» or to «Turn my office light brightness up to 90 per cent.» Siri is smart enough to recognise all your accessories, rooms, and scenes. Just keep in mind you can only control HomeKit devices on your home Wi-Fi network, unless you have a hub like an Apple TV or iPad.
To use off-network remote access, make sure your devices are logged into the same iCloud account. You can see a list of your Home Hubs by opening the Home app, tapping the Home tab, and tapping the Compass button in the corner.
Invite others to control your home
You can share access to your automated home and its accessories with anyone who has an iOS 10 device with an iCloud account. To invite people to control your home, tap the + button in the top corner of the Home app’s Home tab. Then go to Add People. You can find people in your contacts or by typing in their email address.
Be sure to tap the Send Invite button to send the invitation. Invited users will receive a push notification about the invitation. They will need to accept the invitation to gain access to the accessories your home Home. Just tap on any invited person’s avatar to manage their permissions. You can also revoke invites by tapping the Remove Person button at the bottom of a person’s screen. Easy.
Источник