Morning group, running into some issues which should be simple here. I'm looking to add a simple virtual switch and virtual motion detector to set off a routine in the Alexa app. Problem is, I can't seem to find the virtual switch or virtual motion detector in the Alexa app. I've given it enough time and tried to search manually and have Alexa "discover devices." Am I missing something simple here?
I think the trick you need is to use a virtual contact switch.
I wrote a custom switch that ties open/closed contact to on/off which works perfect for me.
Yeah I've already added the virtual contact switch, just can't seem to discover it on Alexa. I've got numerous physical devices that cross over from Habitat to Alexa, this is my first attempt with a virtual device.
The strategy of using a virtual contact with switch (or virtual motion with switch) has been around for years as the standard answer for making an event on the Hubitat side trigger an Alexa routine.
I and others have discussed in another thread that Alexa lately has occasionally been unreliable in triggering when it is a dual capability device like that. As I've encountered these, I've changed them to be just a virtual contact and they haven't failed since. That said, I still have a few contact/switch ones that have never failed either. Go figure.