alias: Test Routine Play
sequence:
- data:
media_content_id: testroutine
media_content_type: routine
service: media_player.play_media
target:
entity_id: media_player.office_echo
mode: single
The script runs, but the routine never fires. I can fire it manually from Alexa and it works just fine. I’m obviously missing something here but can’t figure out exactly what. I’m able to send TTS or have her play music from Spotify, but routines never fire.
If that is how your script is actually formatted, there is not wonder it doesn’t work. In YAML the formatting and spacing needs to be correct or it will not work. Below is a properly formatted script example that runs a routine on an echo.
### scripts.yaml
turn_on_as_amazon_plug:
alias: Turn On A's Amazon Plug
sequence:
- service: media_player.play_media
data:
media_content_id: AS turn on A's lamp
media_content_type: routine
target:
entity_id: media_player.bedroom_dot
Note that the media_content_id must match the name of the routine in the Alexa app exactly… capitals, spaces, punctuation must all be the same.
In looking at the history on Alexa, it doesn’t even look like the event is getting to Amazon. Is there a log file I can look through to see what is actually happening?