Run HA Automation from Alexa

I am trying to use Alexa to run an automation

YAML

alias: 6 Music Kitchen
description: ""
trigger:
  - alias: Six Music
    platform: conversation
    command:
      - Amp Six Music
condition: []
action:
  - service: media_player.play_media
    target:
      entity_id: media_player.amp
    data:
      media_content_id: media-source://radio_browser/5cb4a4cb-c811-43e2-8531-36e13bf48828
      media_content_type: audio/aac
    metadata:
      title: BBC Radio 6 Music
      thumbnail: https://i.imgur.com/zLvHc5k.png
      media_class: music
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: app
          media_content_id: media-source://radio_browser
        - media_content_type: music
          media_content_id: media-source://radio_browser/country/GB
mode: single

The automation works when I run it from HA, I’ve exposed it to Alexa but I use the phrase with Alexa nothing happens, what I am I missing?

Mike

Are you sure it’s exposed? Have you checked to see if it shows up in either your devices or scenes in the Alexa app?

I didn’t think that automations could be exposed to Alexa, only scripts. And they show up as “scenes”.

I think…unless something has changed.

1 Like

By clicking on the gear for the automation, I can expose it

I can find it in Alexa, the app only wants to show me devices not scenes…

I’ve also spotted this in the voice assistant section of HA

HA has exposed it but I must be missing something in the Alexa setup

I’ve created a script too and noticed the notification on the Alexa app to say that it has been added a scene

Scripts and scenes in Alexa expose as buttons since the are momentary. Alexa calls it a scene (since scenes are also momentary in Alexa), but you should be able to execute it as a button press or voice command.

Also, don’t bother with exposing automations to Alexa. I’ve never had one work right, ever. Just use scripts and expose those. The benefit is that if you need an automation in HA separate from Alexa, you just call the same script from your automation.