External integration - Amazon Echo (make Gladys talk on your Echo)

Hi everyone! :waving_hand:

It was requested under a YouTube video by Gladys: “making your Echo Dot speak in automations is part of the basics to signal anything.” And it was the 3rd on @pierre-gilles’ list. So here it is Amazon Echo: Gladys speaking through your Echo :speaker_high_volume:

This is the opposite of Gladys’ Alexa integration: here, it’s no longer you speaking to Gladys via Alexa, but Gladys speaking through your Echo.

What it does

  • :speaker_high_volume: Each Echo becomes a device in Gladys (Echo, Echo Dot, Echo Show, Echo Studio, Echo Spot, multi-room groups, and speakers with built-in Alexa), with volume, Do Not Disturb, play/pause/previous/next, and current title.
  • :speaking_head: A scene action « Make an Echo Speak »: one or more Echo at once, in simple speech or in announcement (with the little chime), at a chosen volume, which returns to its previous level on its own.
  • :robot: « Launch an Alexa Routine » from a scene, and « Echo: Do Not Disturb ».
  • :puzzle_piece: A « Echo Player » widget: title, artist, volume, and buttons.
  • In French, English, German, and Spanish, like the others :wink:

The cool part

Garage door open for 10 minutes → « The garage door has been left open » on the kitchen Echo :door:
Washing machine finished → announcement on all the Echoes in the house :basket:
10 p.m. → Do Not Disturb on the bedroom Echo :crescent_moon:

Installation

:warning: Gladys 5.1 minimum, and a computer for the connection (copying an address on mobile is a nightmare).

:light_bulb: It will arrive in the store later today. In a hurry? Integrations → Install from GitHub, with the address GitHub - guim31/gladys-amazon-echo: Make your Amazon Echo speak, announce and play from Gladys Assistant scenes (Alexa) · GitHub

The connection to Amazon is done only once, and Gladys never sees your password: you log in on the real Amazon page.

  1. In the configuration, choose your Amazon site (amazon.fr, amazon.de…) and save.
  2. Click on Connect: the Amazon login page opens in a new tab. Log in, with the verification code if you have one.
  3. Amazon then displays an empty or « not found » page. That’s normal! Copy the full address of this page (it starts with https://www.amazon.fr/ap/maplanding?…).
  4. Go back to Gladys and paste it into Complete the Connection, within the following minutes (the code expires quickly).
  5. Discovery tab: add your Echoes.

To undo everything, Disconnect from Amazon removes Gladys’ credentials and removes the device from your Amazon account.

Honest small reservations

  • :warning: Beta, developed without the hardware: I don’t have any Echo at home. Everything was tested on simulated responses, not on a real account. The connection to Amazon is the part to validate first.
  • Amazon has no official API for this (Home Assistant does the same): it can break the day Amazon changes its pages. I will correct it as soon as possible.
  • The heart action « Broadcast a Notification » is also connected, but it requires Gladys Plus and I don’t know yet if the Echoes accept its audio format. For a sure result, take « Make an Echo Speak ».
  • No mute (Amazon doesn’t offer it), no triggers for now, and a maximum of 1,000 characters per message.

If you have Echoes, I’m interested in your feedback, even a simple « it connects » or « it speaks » with the model :folded_hands: olivierWOD, who requested it on YouTube: if you’re passing by, this is for you!

Like the previous ones, developed with Claude Code :robot:. Independent project, not affiliated with Amazon.

Repository: GitHub - guim31/gladys-amazon-echo: Make your Amazon Echo speak, announce and play from Gladys Assistant scenes (Alexa) · GitHub

Hi @guim31! Amazing, great work and super fast!! :slight_smile:

In terms of naming/cover for the integration, could you make something more explicit to make it clear that this isn’t the Alexa integration that allows controlling Gladys from Alexa, but the opposite?

I’m checking it out!

@pierre-gilles thanks! And well spotted, that was misleading :sweat_smile: It’s fixed in 1.0.2:

  • New name: Echo Media Player, a nod to « Alexa Media Player » that Home Assistant users know, but without the word Alexa;
  • New cover, without the Alexa logo: Gladys sends data to the Echo, and it’s the Echo that emits the sound;
  • a description that explains the purpose from the first line (« Gladys makes your Echo speak… »), in all 4 languages;
  • and at the top of the doc and the README: « Gladys → Echo », not to be confused with the Amazon Alexa integration of Gladys Plus.

I also renamed this topic and updated the first message. Let me know if that’s clear enough!

Nickel :ok_hand: That’s much better

Hello @guim31,

tfirst of all, thank you for this integration (and the others)…

I tested it at home, but I’m still stuck at the login (click on login), because it redirects me to a different address than the one mentioned:

https://www.amazon.fr/ap/register?… (with a lot of parameters, I don’t know if it’s a good idea to post them…)

@b3n.0 thanks for testing so quickly :folded_hands: And above all, don’t post these parameters: they contain a device identifier specific to your attempt.

You weren’t wrong, it was the integration that was sending you to the wrong place. I think you ended up on an Amazon page „Are you looking for something?“. I reproduced it: Amazon only serves the Alexa login page on amazon.com (in French if you ask it to), even for an amazon.fr account. The integration was sending you to amazon.fr, where this page doesn’t exist. With the correct address, the Alexa login form appears properly.

The fix is in progress, I’ll let you know as soon as 1.0.3 is out. The steps to follow will remain the same, except that the login page will be on amazon.com and the address to copy will start with https://www.amazon.com/ap/maplanding?.

@b3n.0 it’s fixed: 1.0.3 (in the store in a few hours, or right now via Install from GitHub with GitHub - guim31/gladys-amazon-echo: Make your Amazon Echo speak, announce and play from Gladys Assistant scenes (Alexa) · GitHub).

I checked in a browser: the Connect button now opens the real Alexa login form (« Welcome… Sign in »), in French.

To try again:

  1. Update the integration, then click Connect again. The page opens on amazon.com: this is normal, even with an amazon.fr account.
  2. Sign in (with the verification code if you have one).
  3. You then arrive on a blank or « not found » page: copy its full address, which starts with https://www.amazon.com/ap/maplanding?.
  4. Paste it into Complete the connection, quickly (the code expires in a few minutes).
  5. Discovery tab: your Echo devices should appear.

Fingers crossed for the rest :crossed_fingers: Let me know how far you get!

Great, this is the feature request I made when I joined Gladys.

Make Alexa Say What You Want

Feature Requests

2

posted by elfedagger on 05 August 2022

elfedagger

1

August 2022

Have the ability in a scene to make Alexa say any phrase. To vocally signal an open door, a light left on. Remind of an upcoming recurring event on the agenda, such as the dog’s vaccination.
I put the links of what I found on Jeedom and Home Assistant so that everyone can get an idea of the possibilities of this request.
Alexa - Make Her Say Something - Plugins / Communication - Jeedom Community
Tutorial Home Assistant: Your Echo devices as multimedia players – Les Alexiens
I will try it out quickly.

Cool, if you can test, I’m in because I don’t have that equipment!

I am connected, my echos have been found. I wanted to test with a small hello in the configuration and I have this return in the log.

[2026-10-12T18:20:49.215Z] [WARN] [amazon-echo] Command failed: /api/behaviors/preview: HTTP 400
[2026-10-12T19:18:23.967Z] [WARN] [amazon-echo] Command failed: /api/behaviors/preview: HTTP 400

@elfedagger brilliant, thank you! :folded_hands: You’re the first to go all the way to the Echo on a real account, and your log gave me the answer.

It was indeed a bug in the integration: when connecting, it kept the wrong Amazon account ID (the account’s one, instead of the one Alexa expects). So Amazon refused all commands sent to the Echo: speech, announcement, volume and routines. Your HTTP 400 was that.

It’s fixed in 1.0.4 (store in a few hours, or right now via Install from GitHub with GitHub - guim31/gladys-amazon-echo: Make your Amazon Echo speak, announce and play from Gladys Assistant scenes (Alexa) · GitHub).

Nothing to redo: no need to reconnect, the integration will search for the correct ID with Amazon on its own. Update, then restart your little hello from the configuration :crossed_fingers:

And if it still doesn’t work, the log will this time give Amazon’s reason next to the error code: paste it here, it will help me a lot. Also tell me which Echo model you have!

I just tested version 1.0.4:

I can say it’s top! It works…

  • Connection
  • Discovery
  • Make it talk via a scene

One test failed:

The announcement variant doesn’t work, neither the chime nor the text is broadcasted!

@b3n.0 thanks for the test! Glad that the connection, discovery, and speech finally work for you :slight_smile:

For the announcement, I don’t have an Echo to reproduce the issue, so I need you to find the culprit. The integration sends the announcement exactly as ioBroker and Home Assistant do, and Amazon doesn’t always say no when it refuses to play it: it accepts the command, then the Echo stays silent. Common causes:

  • announcements disabled on the Echo: in the Alexa app, Devices → your Echo → Communications → Announcements must be enabled;
  • Do Not Disturb mode enabled on the Echo: it blocks announcements.

Quick test: if you make an announcement from the Alexa app (Communicate → Announce), does your Echo play it?

And if all that is fine, can you paste the [amazon-echo] lines from the integration log when you trigger the announcement, along with your Echo model? That will tell me if Amazon rejects the command or if it swallows it without playing anything.

Yes, it works from the app… I had never tried it, there’s a sort of ding ding, then the announcement is made preceded by the user’s first name…

However, I don’t have a device in the Alexa app, to be honest, I never really chose to have Alexa, it came with the free-player delta, and we started using it… but it’s not a « real » Amazon device

@b3n.0 thanks for the test, it helps a lot! And it probably explains everything: the Devialet Player on the Freebox Delta is not an Echo, it’s an « Alexa Built-in » device from another manufacturer. This type of device handles speech well (you saw it), but Amazon doesn’t always send announcements sent by routines to it, even when the Alexa app manages to do so through its own path.

I can’t verify this without the hardware, so two small things to be sure:

  1. The [amazon-echo] lines in the integration log right after launching the announcement: if Amazon refuses, the reason will be there.
  2. In Gladys, your Freebox device: its name and, in the device settings, the indicated family.

In the meantime, the Speak mode works for you: it’s the safest for the Freebox. If it’s indeed a limitation by Amazon on these devices, I’ll write it in black and white in the documentation rather than leaving you to search for it :slight_smile:

Yes, we agree, it works and in addition the voice is rather more fluid than with the pre-existing action in the ‹ speak on a speaker › scenes. So TOP!

For the announcement, I don’t think I’ll use it because the announced user is the one from the Alexa account, so always the same regardless of the Gladys user…

When I request an Announcement action and I go to the log, here are the last lines (only the last two appeared in addition):

[2026-10-21T05:13:49.857Z] [INFO] [amazon-echo] Player reading of HP FreeDevialet working again
[2026-10-21T17:07:32.098Z] [WARN] [amazon-echo] Player reading of HP FreeDevialet failed: /api/np/player: HTTP 400
[2026-10-22T05:57:30.752Z] [INFO] [amazon-echo] Player reading of HP FreeDevialet working again
[2026-10-22T09:29:25.713Z] [ERROR] [amazon-echo] Amazon refresh failed [DOMException [TimeoutError]: The operation was aborted due to timeout]
[2026-10-22T09:31:27.142Z] [INFO] [amazon-echo] Amazon refresh working again

Thanks @b3n.0, glad you liked it :slightly_smiling_face:

Your log confirms what I thought: at the time of the announcement, Amazon returned no errors (the two “Amazon refresh” lines are a temporary cut-off, unrelated). It therefore accepts the command and doesn’t play it on the Devialet Player, which is an “Alexa Built-in” device and not a real Echo. I’ll add this in black and white in the docs: on these devices, use Speak.

And you’re right about the first name: the announcement always takes the one from the Alexa account, the integration can’t choose it.

and for the FreePlayer:

  • it already appears under 3 integrations:

and the Technical Settings (1) for the device in the Echo Media Player integration:

family THIRD_PARTY_AVS_MEDIA_DISPLAY

hello I have an Echo Show 8 from 2019 (1st generation) and I can perfectly make it speak with Test: Make an Echo Speak

Echo*---------EverywhereSalon Echo Dotoxo

Text*

during the integration

so I tried a scene inspired by @pierre-gilles for the washing machine and in addition to the end-of-cycle message (from the washing machine) that I receive without any problem

I would like Gladys to announce it on Alexa via Echo Media Player

it didn’t work!

here is my scene

Washing machine finished!

Whenthe scene starts as soon as one of these events occurs

Triggers

Device state changepower · <= 4

Thenthese steps are executed in order

Send a messagephilippe · The washing machine is finished, you need to put it in the dryer…

Send a messagecorinne · The washing machine is finished, you need to put it in the dryer…

Speak on a speaker

This action will make Gladys speak on the selected speaker.

Speaker*

oxo

Volume*70%

Message to say on the speaker *

To inject a variable, type ‹ {{ ›. Be careful, you must have defined a variable beforehand in a ‹ Set a variable › or ‹ Get the last state › action placed before this message block.

The washing machine is finished, you need to put it in the dryer

and the integration log

[2026-10-21T02:23:48.731Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T02:23:48.732Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 16000 ms (attempt 5)
[2026-10-21T02:24:04.738Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T02:24:04.739Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 32000 ms (attempt 6)
[2026-10-21T02:24:36.745Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T02:24:36.745Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 60000 ms (attempt 7)
[2026-10-21T02:25:03.372Z] [INFO] Received SIGTERM -> graceful shutdown
[2026-10-21T02:25:04.828Z] [INFO] Starting the Amazon Echo integration...
[2026-10-21T02:25:05.759Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)
[2026-10-21T02:25:09.219Z] [WARN] [amazon-echo] Player reading of oxo failed: /api/np/player: HTTP 400
[2026-10-21T03:57:19.456Z] [WARN] [gladys-sdk] connection to Gladys lost (close code 1006)
[2026-10-21T03:57:19.464Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 1000 ms (attempt 1)
[2026-10-21T03:57:20.534Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T03:57:20.535Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 2000 ms (attempt 2)
[2026-10-21T03:57:22.544Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T03:57:22.544Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 4000 ms (attempt 3)
[2026-10-21T03:57:26.554Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T03:57:26.557Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 8000 ms (attempt 4)
[2026-10-21T03:57:34.566Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T03:57:34.567Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 16000 ms (attempt 5)
[2026-10-21T03:57:50.584Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
[2026-10-21T03:57:50.585Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 32000 ms (attempt 6)
[2026-10-21T03:58:25.510Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)
[2026-10-21T03:58:45.715Z] [INFO] Received SIGTERM -> graceful shutdown
[2026-10-21T03:58:46.998Z] [INFO] Starting the Amazon Echo integration...
[2026-10-21T03:58:47.657Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)