Virtual Switch for Alexa Devices

Just a side note. Alexa is sometimes inconsistent in the order in which she tries to understand a phrase. For example, I'd love to have "Alexa, open the pod bay door" open my garage door, but she has a canned response to that phrase that she prefers, but not all the time.

Similarly, if you say "open the garage door" and you have a routine that is triggered by that phrase, it may work some of the time. Or she may say she couldn't find a device named "garage door" or, if you have any devices with those words in them, she may say "There are several devices named door. Which one do you want?" Moral of the story: Avoid words in the trigger phrase that may also appear in smart home devices, or are verbs commonly used for smart home devices (e.g. turn on, open, etc.).

I've given up and now have two NSFW phrases that tell Alexa what she can do. One opens the garage door. One closes it. She has no idea what she's doing.

1 Like

Yeah, I’ve got a few phrases that tell Alexa what she can do, too. And she then tells me to watch my language.

1 Like

Using a custom Alexa routine you can actually have Alexa tell Alexa to “turn on the Garage” in response to telling her “open the Garage”..

1 Like

Hmmm - so I've implemented the above and alexa seems to run the routine properly when I ask her to open or close the garage door. For the time being, she's doing that rather than trying to open the contact switch. I swapped over my Sonoff zigbee device on the garage door and it seems to be working much better than the other one so it's probably a hardware fault. I can now see open/close status in the alexa app but when I ask alexa "is the garage door open or closed" she says "the device doesn't support that". Even though there it is, right in front of her, fricken showing open or closed! Guess now you've mentioned the inconsistency with routines above I will have to change the routine from "open/close the garage door" to "beam me up/down scotty" or something ridiculous... Sigh

Actually come to think of it the other zigbee devices that the Alexa HE app are presenting to Alexa are doing the same thing: Live status showing up in the Alexa app, but when I ask her if the damn thing is open or closed "that's not supported yet". Seriously FFS!!

I remember a few years back when I was on ST there were a series of smart apps (Ask Alexa?) that gave Alexa some status reporting capability, but IIRC it was a rather tricky install with a lot of moving parts.

Hi Newbie here from smartthings. just getting started.

I was able to control alexa devices from smartthings but can't seem to do that in hubitat. for example, I own an alexa outlet. want to control on/off and receive status in hubitat but that seems pretty complicated and not directly supported.
Likewise I could create a rule in smartthings that would announce in alexa (e.g. door opened) but can't figure that out.
So many devices (my TV, etc.) have native Alexa a/o Google integration and was expecting to be able to integrate them in hubitat.
I know that home assistant can do this...

Check out Echo speaks.

Not sure what you mean by controlling Alexa devices. Do you mean controlling Echos and Dots? I suspect you actually meant to control devices that Alexa can also control. As far as I know, there’s no such thing as an Alexa outlet.

Anything that Alexa can do can be done with Hubitat. The trick is to use a virtual switch with contact (or with motion) and control that via Hubitat. On the Alexa side, create a routine to take the desired action.

As far as getting status from Alexa-controlled devices .. if Alexa can see it, she can flip a virtual switch, which in turn Hubitat can use as a trigger.

Thanks. Sorry for the late reply. I have an outlet for example (also have others) that only works with Alexa. I'd like to use hubitat to control it (virtual switch) and also see it's status (not sure about that).
I can see how to create a virtual switch and understand creating the routine. Do I need echo speaks for any of this integration?

No if you just want to turn on a virtual switch with Alexa then Echo speaks is not necessary. Just the Amazon Echo skill, that gives Alexa control over the virtual switch, and an Alexa routine, this activates said switch with your voice comamnd..

1 Like

The key to the puzzle is a virtual switch with contact in Hubitat (see the early comments in this thread). The reason for the dual identity device is that Alexa routines cannot at this time be triggered when a switch changes. So on the Alexa routine side, she thinks a contact opened and that is the trigger in a routine to turn on the smart plug. Similarly, create a routine so that when the contact closes, she turns off the plug.

3 Likes