Send set command to alexa on rule machine

I have a lock that doesn't really work with Hubitat but it does work with alexa by voice voice to unlock it so I was wondering it there's anyway to create a action that would send that command to alexa so it can open.
Something as the trigger being a button being pushed then I could write the command I want and that would be sent to alexa? I've read a few things about making alexa routine but that work for me as the lock only works with voice.
I tried just going into my alexa devices in hubitat and set the command and it works so just need to figure out an way to do that as an action on Rule machine. Thanks

You would need the custom user app Echo Speaks to send command to Alexa directly.

Are you sure there is no way to create a routine in Alexa to lock/unlock? Seems like that should be available unless they excluded locks for security reasons.

2 Likes

Yeah I'd say ia for security reason as if I set a command to it asks me for my pin and only unlocks after pin. Works with voice and also tested with set command here and it work so I was wondering if there was an easy to make this work

You could have a virtual contact on the Hubitat side, shared to Alexa. In Alexa have a routine such that when contact opens, issue custom action. If I recall, it may give you a warning if it thinks you are unlocking a lock, but you can still do it.

1 Like

Yeah that's my problem. Trying to use for a lock and will ask me for my pin so that's why I ws thinking I could do something with rule machine where I could set the command to open the lock then set another command with the pin. I've tried here using the set command option and it worked just can't figure out a way to do it in rule machine.

You can use custom commands in RM under the "Custom Actions" menu.

By the way already have the app and was able to set the command through there and worked. Just don't know how to make it work as a rule in rule machine.

This works:

Here is a rule I use to send voice commands to Alexa.

When you change the hub variable (EchoCommand) the rule sends that command to a echo device.

I have it tiered through several devices in case any are offline. I was having some issues with that at one point so I added some backup. The first device is out in my garage, so if there is a response it doesn't bother anyone.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.