How to Create HomeKit Automations

Apple's HomeKit allows you to create home automations for your accessories so that you can have the lights automatically turn off when you leave, for example, or trigger a scene when you unlock the front door.


The Home app makes creating these automations simple and allows you to trigger them based on the time of day, your location, motion detection, and more.

Before you can create automations, you need to add HomeKit accessories to the Home app. You also need to designate a device as a home hub, which remains powered on and connected at your home when you're away. Click on one of the links below to learn how to set up an Apple device as a home hub.

Create an Automation for an Accessory Action


  1. Launch the Home app on your iPhone or iPad.

  2. Tap the Automation tab in the bottom right corner of the screen.

  3. Tap the plus (+) button in the top-right corner.

  4. Tap An Accessory is Controlled (or tap A Sensor Detects Something, if you have a motion device).

  5. Select the accessory that you want to start the automation.

  6. Tap Next.

  7. Choose the action that triggers the automation, such as if the device turns on or off. (On this screen, you can also choose a time of day when the automation is active, or base it on when someone is home or not.)

  8. Tap Next.

  9. Select the accessories and/or scenes that are activated in response to the action.

  10. Tap Next.

  11. Tap Done.
These kind of automations are useful if you want to do something like have all of your lights come on when your HomeKit-enabled camera or motion sensor detects motion.

Automations for People Arriving or Leaving


  1. Launch the Home app on your iPhone or iPad.

  2. Tap the Automation tab in the bottom right corner of the screen.

  3. Tap the plus (+) button in the top-right corner.

  4. Select whether you want the automation to occur when People Arrive or People Leave your home.

  5. Select when A Person Leaves or when Anyone Leaves. You can choose a specific person to start the automation by tapping the circled 'i' icon. You can also control the time and location of the automation from this screen.

  6. Tap Next.

  7. Select the accessories and/or scenes that are activated in response to arriving or leaving.

  8. Tap Next.

  9. Tap Done.
Automations that are based on when a person leaves or arrives at the home use location-based geofencing to enable the automations. When your iPhone detects that your location is at your house, it'll trigger the automation.

Automations Based on Time of Day


  1. Launch the Home app on your iPhone or iPad.

  2. Tap the Automation tab in the bottom right corner of the screen.

  3. Tap the plus (+) button in the top-right corner.

  4. Tap A Time of Day Occurs.

  5. Choose a time and day of the week from the onscreen options. You can also tap People to make the automation occur at specific times when someone is home.

  6. Tap Next.

  7. Select the scenes and accessories you want to automate.

  8. Tap Next.

  9. Tap Done.
Time-based automations will do things like turn your lights on at a specific time. You can also use these to turn down the thermostat automatically at night and turn it up during the day, along with other similar actions.

How to Turn Off or Delete an Automation


Disabling an automation is easy – simply tap the Automation tab, select the automation, and then toggle the switch next to Enable This Automation.


To delete an automation in the Automation tab, just slide your finger across it and tap on the Delete option.