#How to trigger alexa routine with Home Assistant?

1 messages · Page 1 of 1 (latest)

tawdry lance
#

I want to trigger an alexa routine trough home assistant but can't find a way to.
I've tried Alexa Media Player with a script but gives me an error everytime

"Unable to determine action @ data['sequence'][0]"

This is the script:

script:
radioparadise:
alias: Desligar as luzes
icon: "mdi:play"
sequence:
- service: media_player.play_media
data:
media_content_id: "Desligar as luzes" # Match exactly with Alexa routine name
media_content_type: "routine"
target:
entity_id: media_player.daniel_s_echo_dot
mode: single

https://github.com/alandtse/alexa_media_player/wiki#alexa-routines

GitHub

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API. - alandtse/alexa_media_player

sinful mango
#

Alexa recognises input_booleans as triggers for routines.

long roost
#

If you want to use the UI, when you click “add action” you can select “media player: play media” from the dropdown. Then pick your echo dot entity and type in the content ID and content type in the provided input areas.