The light turns on when somebody enters the apartment and turns off when nobody is at home for more than 10 minutes. Also, there is an option to turn the light on and turn the light off using the app.
The door lock is controlled by the app.
Here are two links where you can see how it works.