Make a routine. In your routine you can have it lock the doors. I use in my Good Night Routine. I use Ask Alexa to trigger routines, but is is complicated to set up (need Amazon Web Services)
On October 1, 2016, Amazon added the ability to turn on a " routine" from Alexa. If you want to use that method, see the official support article.
https://support.smartthings.com/hc/en-us/articles/210204906-Amazon-Alexa-SmartThings-Routines
Note that the official method will not allow you to use echo to run any routine that includes a lock or a Smart Home Monitor armed state change or another device class that Alexa does not know. The method described below in this FAQ will, but it does require that you create a virtual switch.
Although at present echo can only request that smartthings turn devices on, off or dim, by using a virtual switch, you can tell echo to turn that switch on or off, and then have all kinds of things happen in smartthings. For example, if you want to have echo tu…
2 Likes