If you’re using the Lock User Management (LUM) app you can select the user type Activate on user presence
and then your presence sensor under when none of these people are present
. Then the code will be activated when you’re not at home and deactivate when you arrive home
1 Like