Alexa headless TTS Integration

So, I’ve got a few Alexa only plugs and switches that I can’t get integrated into HA. I really wanted to take advantage of these, so I went about looking for a way to automate commands into Alexa without actually speaking them out loud. My goal here was to be able to have HA look for triggers and then send a command to Alexa without anything actually being said. I’ve got the following up and running pretty damn smoothly;

  • Virtual Alexa device attached to my Amazon account
  • TTS Engine that Alexa understands pretty well.
  • Agent that passes commands into TTS engine
  • Python script on the HA side that sends command to Agent (“Alexa, turn off lamp”)

Essentially, you just add whatever text in the Python script, then it gets read to the virtual Alexa device. I have had zero issues so far. Is anyone else interested in this? I can write up the setup instructions if so

6 Likes

Hi,

would be nice. I’m looking for a solution to use the notifactions feature to get a “TTS-Like” setup for Alexa, telling me e.g. my laundry is done.

Sounds amazing. Does it works with normal Echo?

I’m interested in your offer for setup instructions. I have a couple of services (like ADT alarm) that have Alexa skills. But I use a google home. So, it sounds like with your approach I can use HA as a middleman between GH and Alexa. Speak the command to GH --> HA receives the command --> HA sends the command to Alexa… This would be great.

I found this:

I followed the instructions for sending HTTP requests and within 5 minutes I was silently sending commands to alexa using the RESTful command component within HA.

My ADT alarm has an Alexa skill, but no Google Assistant integration, and is not accessible by HA. But using the above I’m able to arm and disarm my alarm.

can u guide me on how to use this virtual Alexa? Any blog resources to help me with this?
My requirement is cloud triggers Alexa with audio input and Alexa must be able to check out my amazon shopping account