Controlling devices through Alexa from HA

I have some devices that Alexa can control, but HA cannot.

Is anyone aware of a way Home Assistant (e.g. in an automation script) could control these devices through the Amazon API? I would assume this would be something like a way to programmatically send a “voice” command to Alexa such that it reacted as if someone had actually spoken those commands to Alexa. Or maybe something in an Amazon API somewhere allows more straightforward of devices Alexa can see?

Any thoughts on how/if this could be done?

1 Like

If you set up a routine in Alexa then Alexa media player can trigger the routine by sending the expected voice command. I have used it to control an Amazon Plug from HA

The main thread is here.

@anon34565116, this looks interesting and promising. Thank you for your quick reply. I look forward to playing with this tomorrow.

Here’s one of mt scripts from my scripts.yaml.

plant_light_off:
  alias: Plant Light Off
  sequence:
  - data:
      entity_id: media_player.bruce_s_echo_dot
      media_content_id: plantLightOff
      media_content_type: routine
    service: media_player.play_media
1 Like

Is this still the case or is there a more integrated approach as of November 2019?

4 Likes