In the Home app, you can run automations based on the time of day, your location, the activation of a sensor, or the action of an accessory. You can use preconfigured automations included with the Home app, or create automations of your own.
Go to the Home app , then add, enable, or disable automations.
Go to the Home app Set up accessories with Home on iPadSet up security cameras in Home on iPad