How to trigger Alexa routines from Home Assistant

My solution above does not require a SmartThings Hub, only the free SmartThings cloud account.

I am having the same issue where the Alexa app reports the status of sensors fine, but fails to trigger routines. Did anyone find the cause of this?

(I’ve set Send Alexa Events = True and renabled the skill)

Have you tried the smarthome debug tool? Check here this post for how to: How to trigger Alexa routines from Home Assistant

Are you using the cloud component (Nabu Casa) if so its not supported…yet.

On that note - there was no mention of any support in the release notes on home assistant new release yesterday. I suspect we need to feature request this from Paulus as its a feature to be added cloud side as opposed to on our home assistant installs right?

Yes. This should be on his TODO list.

you can use this to trigger alexa routines

I am a new user here but I have set up Hassio with DuckDNS to trigger Alexa automations by using the free SmartThings cloud service with a virtual switch/sensor that some people call an Alexa Switch.

No SmartThing hub is needed for this. I trigger sunrise & sunset automations as well as time automations to control an Amazon smart plug.

Alexa could already see sensors, even before proactive mode was implemented.

What do you normally say to the alexa to to give the value of a sensor? ‘Alexa what is garage door status’ gives me a ‘garage door doesn’t support that’ response.

If you have a sensor named “Garage Door”, you can ask “Is garage door open?”.
Also, if I associate a temp sensor with a room (in the Alexa’s app), I can ask “what is the temperature in the living room?”.

Thanks, “Garage Door” is my HA cover device, I’ll have to rename it and rename my binary sensor also, I’ll give it another try.

My binary sensors are showing up in Alexa as ‘on’ or ‘off’ however, even tho I’ve set the class to garage door.

Does anyone know if this is working with the Nabu Casa cloud component as yet? In previous post it was mentioned that the Nabu Casa cloud component did not support active reporting.
Is the “Enable State Reporting” option not the same thing?

1 Like

Yes. The “Enable State Reporting” option enables this.

Thanks @abmantis - I exposed one of my temperature sensors to Alexa (via Nabu Casa) and added it to a room in Aelxa. Now, when I ask Alexa what the temperature is in the kitchen, she responds with the same temperature I’m seeing in Home Assistant (so the state reporting definitely working).

I am now struggling to create a routine that can be triggered from Home Assistant :frowning:

I have created a template sensor (which I can choose as the trigger when creating the routine), but when I try and save the routine I get the following error: “There was a problem creating this Routine.”

Here is a video of me trying to create the routine. Any ideas what the problem could be?

I get the same error, have checked the sensor, deleted it from Alexa re discovered it, still get the same error
the sensor is a door type and works fine in HA

Same here @foxlees - I have tried removing all devices from Alexa and discovering them again. I have tried the Alexa app on my iPhone, and iPad and an Android phone. And lastly I even created a new Amazon account from scratch, linked everything up there and it still does not work.

No idea why we can’t save the routine :frowning: Other routines can be saved though, but not a routine where I use the sensor as the trigger :frowning:

I just updated the Alexa app on my iPhone (to 2.2.2913750.0) and now the Routine is being saved properly!! YEAH!! :smiley:

I updated mine as well now saves which is great but for some reason Alexa not seeing the state changes of the sensor so routine not activating, have re discovered after deleting the sensor from Alexa, re sync on the cloud Alexa card, still no luck

@foxlees, is your State Reporting on as mentioned here?

Yes that is all correct, I actually got it to work, I was doing a change in my configuration.yaml, and restarted hassio, when it came back up, Alexa burst into voice and pronounced my respi cues from the sensor I was setting up, so looks like all it needed was a reboot.

So success all working :blush:

Awesome @foxlees!! Enjoy :slight_smile: