Don't worry about turning off the lights when you leave, as they will now automatically do so when you lock your door.
This Trigger fires every time your lock is locked by a specific person.
This Action will turn off your hue lights.