Alexa Routines Run from HA Dashboard Button

Hi,
Is there an easy way to run an Alexa routine from an HA dashboard? I’ve setup HA cloud and Alexa but didn’t realize that is only to expose HA entities to Alexa. I’m also trying the Alexa Media Player without much success.

I should say that the reason I want to do this is because I can’t figure out how to turn on/off multiple devices with one press of a HA Dashboard button.
Thanks!

If you have set up the Alexa Media Player custom integration you can use the media_player.play_media service call to fire Alexa Routines.

Set up a script that turns on the desired devices, then set your button action to turn on the script.

If the entities you wish to control are all the same domain i.e. lights, switches, etc you can create a group helper that includes all the entities and control that from the dashboard button.

1 Like

Alexa also recognises contact sensors as triggers for routines - input_booleans or binary sensors will both work, but binary sensors must be device_class “door”. Both appear in Alexa as “open” or “closed”. Once they’ve been exposed to Alexa, they appear in the “Smart Home” category of device.

Thank you so much for the replies. It’s what makes this forum so helpful.

The only way that worked for me was using Scripts and then calling them in HA Dashboard with Buttons.

Alexa routines work for me because I’ve built them out so much over the years, but my wife won’t use them over voice so giving her a button.

Thanks again!

When using this in ID you basically can put the same message as you would use when verbally asking an Echo device something.
I use this and have a button in my Dashboard that ‘instructs’ my Echo Show devices to show one of my Eufy cameras.

The Custom command function, which emulates voice commands, will not trigger Alexa routines. To trigger routines you have to use routine as the media_content_type and the exact name of the routine as the media_content_id.

Interesting and thanks. I learned something :slight_smile:
This being said, in principle and if all the devices that you have in Alexa are also in HA, you can create a HA automation that emulates a Alexa routine.

I would actually prefer this as my setup has swapped, all my devices in HA but not all in Alexa.

Having a hard time getting my list of actions to work using scenes and automations. When I set them up and call from a button there is a separate popup when pressed that requires me to click “activate”.

What is the best way to actuate a list of devices with the click of a button? I don’t need to see the state of the button etc. For example, when I press my “Awake” button a list of actions happen. When I press my “Bedtime” button a different list of action happen.

Put all your actions in a script, call that script as the button’s action.

This is pretty cool. I would love to have a way of turning on my Home Theatre stuff with just HA, not relying on Alexa, but sadly that seems impossible right now since selecting HDMI Inputs and so on is a no-go right now.
Triggering Alexa Routines and Voice Commands and binding those to physical Zigbee Buttons is pretty cool though. On/Off already works (via Routine) and I will now attempt to emulate the Voice Commands that switch to a certain Input.