Hacking Routines to run with a virtual devices

The first step would probably be to look someplace other than the developers category. :wink: Around here the “hackers” are mostly very serious coders.

Anyway, it depends whether you want to just put the unlock in a routine, which is what I do, or something trickier where you can actually tie that specific lock to a switch so you can use it in other smartapps as well.

If you put it in a routine, it’s super easy. Just use the FAQ for having Alexa run a routine. But then you’re going to need one virtual switch to lock, and a different virtual switch to unlock. That works fine for me because my door is on autolock anyway, I only need to unlock (from inside)

If you want to assign the lock to a virtual switch so you can do both lock and unlock on the same switch , you’ll need an additional smart app. To find the instructions for that, start with the Alexa FAQ and just read about using it with locks: