Trigger events through Echo based on user unlock codes

I love the ability to receive notification when my kids get home and if it is at night, have one of the lights in the house turn on after they unlock the door.