#Trigger HA Automation from Alexa

1 messages · Page 1 of 1 (latest)

autumn ruin
#

I'm playing with both the HA VoicePE and Alexa for voice control of my HA system. I would like to be able to trigger an HA automation to execute with an Alexa voice command. One way I've thought of doing this is to:

  1. Create a virtual HA switch and enable Alexa control of it
  2. Create an Alexa routine triggered by a specific phrase that turns the switch on/off
  3. Create an automation that is triggered when the switch turns on.

While this will work, the downside is that Alexa gets cluttered with a bunch of virtual switches that someone could accidentally trigger through a voice command (i.e. "turn on the virtual switch") or through the UI on an Echo Show.

I'm curious if anyone has a better way of accomplishing this?

Thanks in advance for your help

onyx heron
#

Make a script and expose the script to Alexa

autumn ruin
#

Thanks @onyx heron . I understand making a script. Can you please elaborate on how to expose the Script to Alexa. Thanks again for your help

onyx heron
autumn ruin
#

Thanks @onyx heron . I'll dig into that.

#

Are you saying that I need to build a custom Alexa skill or am I missing something? Thanks

onyx heron
#

Or just use HA cloud

#

The first paragraph...

#

Your step #1 mentioned enabling 'Alexa control' of a switch, so I figured you already knew how to do that

autumn ruin
#

I figured it out. I was just being dense. There are always at least 3 ways to do something in HA and, of course, I was looking at the wrong one😀 . Thanks again for your help