First of all, apologies, as this must have been asked before and I can’t seem to find what I need. I could also be in the wrong section of the Forum.
I am looking for a virtual switch that I can detect in an Alexa a routine and I don’t seem to be getting anywhere.
All of this I’ve done mainly on the website, rather than the IOS App.
I’ve created a Device under the MyDevices section of the website and allocated it a type of Virtual Switch.
When I try and use an Alexa Routine (IOS App) I can’t find it as a trigger in the SmartHome section.
I’ve used this code to create a virtual device : https://github.com/bjpierron/SmartThings-Alexa/blob/master/devicetypes/bjpierron/simulated-alexa-switch.src/simulated-alexa-switch.groovy
I’ve published to myself - I can then assign it to the device I created earlier.
On the SmartThings IOS app it changes type and I can see it shows a contact sensor which behaves correctly as I turn the switch off and on in the app.
On Alexa I’ve removed the original device and added the modifies app.
When I try and create a routine I can now find the device as a trigger under SmartHome, however when I go to select this it the Alexa app tells me “Error. This device is not currently supported.”
I’ve read a few recipes out there and also tried this code to create a device : https://raw.githubusercontent.com/MichaelStruck/SmartThingsPublic/master/devicetypes/michaelstruck/alexa-switch.src/alexa-switch.groovy
This didn’t create a device in Routines I could use to trigger a routine.
If I’m missing something obvious could you please point me in the correct direction or link to a discussion on here that would help me out.
I’ve had many years experience in developing, just not with SmartThings.