HomeKit uses automations to control accessories when an event happens. Following events are available in HomeKit
- Time of day (8.30 AM)
- Altitude of the sun (sunrise)
- Characteristic value of an accessory (Light gets turned on)
- Entering or leaving a location (Somebody leaves the home)
Automations also supports conditions.
- Nobody is at home
- Time is between
- 10AM and 3PM
- sunset and sunrise
- Light is turned on
- Day of the week is either saturday or sunday
If an event happens and the conditions are met, some actions are executed. Actions do change the characteristic value of accessories. For example the light is turned on or the target temperature of the thermostat is set to 73°F.
Which device is responsible for executing automations?
Your Home Hub (Apple TV, HomePod, iPad) is responsible for executing automations. If your iPhone or iPad is turned off, your automations still work.
HomeKit automatically synchronised the data with your Home Hub in the background. How you can configure a Home Hub is described in this article.