I’m using an Amazon Echo which now integrates with SmartThings but doesn’t support controlling Locks. It can however control switches. In response, I wrote a very simple application that will link the on/off and locked/unlocked state between a switch device and a lock device. Specifically, this means:
- Locking the lock will turn on the switch
- Unlocking the lock will turn off the switch
- Turning on the switch will lock the lock
- Turning off the switch will unlock the lock
The result is that SmartApps or device integrations which are able to control a switch device can now control a lock device too.
To use, create a new device with the “On/Off Button Tile” type. Install this app and select your new Button Tile virtual device and a Lock device. This will link the on/off state of the Button Tile to the locked/unlocked state of the lock. Now you can use Amazon Echo to say “Alexa, turn on the garage door lock” which will turn on the Button Tile, which in turn will lock the specified lock.