When adding the lights, you will see an interesting dialog, as presented in the image to the right.
The Home app presents a dialog to ‘Turn On the Light when I arrive home’ and ‘Turn it Off when I leave’.
Great idea for the Ceiling light in the living room. You could choose both.
This is an example of an automation, using your phone to decide whether you are home or not.
There are different types of automations:
These automations are really handy too in scenes.