Sorry if this was asked and I missed it:
I’ve added a virtual device to SmartThings and the Amazon Alexa app recognizes it as lock, but Alexa shows gets error when it tries to get status both in the app and via voice command.
Also, devices tied to the device handler show up on the SmartThings home screen under Home Solutions -> Smart Locks as always unlocked.
Is it possible to get Alexa to get the lock status?
Thanks for the device handler.
FYI, I have a work around for Alexa and here is the case I’m using:
I was able to get a single door status in Alexa by just using a Simulated Lock virtual device and the Enhanced Auto Lock Door automation tied to a single door sensor. This works well and Alexa can tell me if the door or window is locked (really closed) or unlocked (open).
I wanted a single “Lock” to check if all the doors/windows are closed, but the auto lock door routine only takes 1 sensor and while other automation functions like the Smart Lighting can take multiple sensors they only turn a switch on/off and not toggle the state of a sensor. This device handler is a good bridge because it accepts the switch commands as inputs and reports out a sensor status.
With this device handler I created a virtual device “AD” (all doors).
Then I added a “Smart Lighting” automation so that if any of the doors is opened (door sensors), then “AD” is switched to open/on/unlocked. When a door is closed, the routine closes “AD”.
Alexa can see the device but it doesn’t see the status right.
The work around is to add another virtual device (a Simulated Lock) and the automation “Enhanced Auto Lock Door”. The automation takes a contact sensor (which can be “AD”) and changes the status on the Simulated Lock. If Alexa sees the correct status from AD, I could junk the extra simulated lock.
Also, I need to find or write a different automation routine to combine multiple sensors into 1 state. The desired state is to shows open if ANY of the doors is open and closed only if ALL of the doors are closed.
Right now if I open 2 doors an close 1 “All Doors” shows closed, which isn’t desired.