I'm hoping you can help. I am trying to set up a routine with Alexa running a HE virtual switch. My hub is linked with Alexa and the virtual switch is added to the app. Here is my issue:
In the Alexa app, I locate my switch and hit "create routine". I tap the + button in the upper right corner to create a new routine. I name the routine and hit the + in the "When this happens" portion.I chose "smart home" and it tells me "no devices found. to start a routine with a smart home device, add one in the Devices section of the Alex app". I am going around in circle.s What am I doing wrong? Any help would be so appreciated!
Alexa doesn't permit switches to act as triggers for routines. Only sensors (contact, motion, leak) and locks.
So you could make a virtual contact sensor in Hubitat and expose it to Alexa. And use activation of the contact sensor as the trigger for your routine. You could also use a simple virtual contact/switch driver like the one listed below, which can be triggered as a switch in Hubitat and use as a contact sensor to trigger an Alexa routine.
I like using “combo” sensor/switches for this purpose. There are now two available as part of the hub, a Motion with switch and a presence with switch. Either will work for this purpose.