[37_echodevice] Amazon Echo Modul (nicht Alexa)

Begonnen von michael.winkler, 12 Januar 2018, 18:20:12

Vorheriges Thema - Nächstes Thema

mthome

#6240
Hallo zusammen,

seit gestern Vormittag wird bei meinen Echodevices das Voice-reading nur noch sehr sehr langsam aktualisiert.

Dadurch funktioniert meine "gezielte Sprachausgabe" nicht mehr. Hat noch jemand anderes das Problem (sprich ändert Amazon mal wieder rum) oder ist es nur bei mir?

Gibt es evtl. inzwischen noch eine andere Möglichkeit um festzustellen, von welchem Echo eine Anfrage getriggert wurde ohne Voice-Reading oder Skill?

Vielen Dank im Vorraus

michael.winkler

Hallo,

habe aktuell das gleiche Problem. Scheinbar wird von Amazon schon wieder etwas umgestellt. Bis jetzt habe ich noch keine Lösung.

Gruß
Michael

TomLee

Hallo,

die Links unter get <device> help Befehl zeigen auf mwinkler.jimdo.com (nicht mehr erreichbar).
Über mwinklerblog.de funktioniert es – könntest Du Dir das mal anschauen und ggf. anpassen das man die Hilfe wieder über FHEMWEB direkt erreichen kann?

Gruß Thomas

mthome

#6243
Hallo zusammen,

seit heute Nacht habe ich plötzlich Login-Errors im Log :-(.

Das Echo Device geht dann in "connected but loginerror". Ein NPM_login refresh behebt das Problem kurzzeitig doch dann nach paar Minuten geht es wieder in connected but loginerror

Auch Löschen des Echo Device und Verzeichnis /opt/fhem/cache/alexa-cookie mit anschließender Neuinstalltion hat nicht geholfen.

Bin ich der Einzige? Hat jemand evtl. schon eine Lösung?

Danke im Voraus

2025.11.01 06:13:52 3: [Echo] [echodevice_setState] to connected
2025.11.01 06:13:59 3: [Echo] [echodevice_LostConnect] JSON error = {authentication} / set loginerror to 1
2025.11.01 06:13:59 3: [Echo] [echodevice_setState] to connected but loginerror
2025.11.01 06:14:47 3: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Sat Nov  1 06:14:44 2025] write new refreshtoken
2025.11.01 06:14:47 3: [Echo] [echodevice_setState] to connected
2025.11.01 06:14:59 3: [Echo] [echodevice_LostConnect] JSON error = {authentication} / set loginerror to 2
2025.11.01 06:14:59 3: [Echo] [echodevice_setState] to connected but loginerror
2025.11.01 06:15:52 3: [Echo] [echodevice_LostConnect] JSON error = {authentication} / set loginerror to 3
2025.11.01 06:15:52 3: [Echo] [echodevice_setState] to connected but loginerror
2025.11.01 06:16:52 3: [Echo] [echodevice_LoginStart] connected but loginerror
2025.11.01 06:16:52 3: [Echo] [echodevice_ParseAuth] reset loginerror from 3 to 0
2025.11.01 06:16:52 3: [Echo] [echodevice_setState] to connected
2025.11.01 06:16:59 3: [Echo] [echodevice_LostConnect] JSON error = {authentication} / set loginerror to 1
2025.11.01 06:16:59 3: [Echo] [echodevice_setState] to connected but loginerror
2025.11.01 06:17:03 3: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Sat Nov  1 06:17:00 2025] write new refreshtoken
2025.11.01 06:17:03 3: [Echo] [echodevice_setState] to connected
2025.11.01 06:17:59 3: [Echo] [echodevice_LostConnect] JSON error = {authentication} / set loginerror to 2
2025.11.01 06:17:59 3: [Echo] [echodevice_setState] to connected but loginerror

---EDIT----
Was mir noch aufgefallen ist nach einem NPM_login new
(node:3591502) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

binford6000

ZitatBin ich der Einzige? 
Nein, hier auch das gleiche Phänomen. 
VG Sebastian

mthome

Inzwischen scheint es sich wieder zu normalisieren  ;D

punker

Hi,
hat ein oder zwei Tage funktioniert.
Seit heute laufend "connectet but loginerror und disconnected".
Das werden mehr Leute haben - oder?
Lösung gibts wahrscheinlich keine?
LG

Dieter

The truth is out there!

mthome

Hi Dieter,

ja bei mir auch wieder massiv  :'( . Hab' leider keine Lösung.

dusti64

Ich bin davon auch massiv betroffen und hoffe, dass es bald eine Lösung geben wird...

Gruß Dusti
2xDebian virtualisiert auf 2xPVE mit FHEM, 2x HMLAN, VCCU, CCU3, Homatic Heizung+Licht+Rollläden, Alexa, Homebridge, Hue, Shelly, Meross, Home Assistant usw.

michael.winkler

Kann ich nicht bestätigen. Ich hatte es letzte Woche. Mein Konto wurde aber bei Amazon gesperrt, keine Ahnung warum. Nachdem ich das Konto wieder aktiviert hatte, konnte ich ganz normal ein neues Cookie erstellen. Seither funktioniert es wieder ohne Probleme.

mthome

Hi Michael,

ich hab' mal nochmals versucht mit Verbose 4 einen Teil mitzuloggen - evtl. siehst Du da etwas?
2025.11.04 13:50:51 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:52 3: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] write new refreshtoken
2025.11.04 13:50:52 3: [Echo] [echodevice_setState] to connected
2025.11.04 13:50:52 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:53 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:54 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:55 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:56 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:57 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:58 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:50:59 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:00 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:01 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:02 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:03 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:04 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [csrfPageUrl] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [csrfPageUrl] PushToCmdQueue SendURL =https://www.amazon.de/alexa-privacy/apd/activity?ref=activityHistory
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [csrfPageUrl] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] [csrfPageUrl] [11127] [0] send command=https://www.amazon.de/alexa-privacy/apd/activity?ref=activityHistory Data=
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [endpoints] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [endpoints] PushToCmdQueue SendURL =https://alexa.amazon.de/api/endpoints
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [endpoints] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getnotifications] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [alarmvolume] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [bluetoothstate] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getdnd] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [wakeword] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [listitems_task] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [listitems_shopping] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getdevicesettings] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getisonline] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [namedListsIDs] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [namedListsIDs] PushToCmdQueue SendURL =https://layla.amazon.de/api/namedLists
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [namedListsIDs] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [devicesstate] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1762260665
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendLoginCommand] [cookielogin6]
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [activities] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://www.amazon.de/alexa-privacy/apd/rvh/customer-history-records-v2/?startTime=0&endTime=2005090388459&pageType=VOICE_HISTORY
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [activities] PushToCmdQueue SendData={"previousRequestToken": null}
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getbehavior] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/v2/automations?limit=100
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getsettingstraffic] START
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2025.11.04 13:51:05 4: [Echo] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2025.11.04 13:51:05 4: [Echo] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=csrfPageUrl
2025.11.04 13:51:05 4: [Echo] [echodevice_GetSettings] Timer INTERVAL = 60
2025.11.04 13:51:05 4: IP: layla.amazon.de -> 13.33.53.128
2025.11.04 13:51:05 4: [Echo] [echodevice_LoginStart] Alter COOKIE=13/6000
2025.11.04 13:51:05 4: [Echo] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2025.11.04 13:51:05 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:05 4: https://layla.amazon.de/api/bootstrap: HTTP response code 400
2025.11.04 13:51:05 4: [Echo] [echodevice_ParseAuth] [cookielogin6]
2025.11.04 13:51:05 4: [Echo] [echodevice_LostConnect] clear CMD_QUEUE
2025.11.04 13:51:05 3: [Echo] [echodevice_LostConnect] JSON error = {authentication} / set loginerror to 3
2025.11.04 13:51:05 3: [Echo] [echodevice_setState] to connected but loginerror
2025.11.04 13:51:05 4: https://www.amazon.de/alexa-privacy/apd/activity?ref=activityHistory: HTTP response code 200
2025.11.04 13:51:05 4: [Echo] [echodevice_Parse] [csrfPageUrl] [11127]
2025.11.04 13:51:05 4: [Echo] [echodevice_Parse] [csrfPageUrl] [11127] Invalid cookie
2025.11.04 13:51:06 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true
2025.11.04 13:51:07 4: [Echo] [echodevice_NPMWaitForCookie] [NPM Login Refresh Tue Nov  4 13:50:49 2025] wait for refreshtoken exist 267refresh-cookie.js = true

binford6000

So sieht es bei mir aus:
2025-11-04 13:54:55.547 echodevice bu.echo connected but loginerror
2025-11-04 13:54:55.549 echodevice bz.echo connected but loginerror
2025-11-04 13:54:55.551 echodevice sz.echo connected but loginerror
2025-11-04 13:54:55.553 echodevice bu.echo connected but loginerror
2025-11-04 13:54:55.555 echodevice amazon connected but loginerror
2025-11-04 13:54:55.556 echodevice Beam.echo connected but loginerror
2025-11-04 13:54:55.674 echodevice amazon .csrf-token: <redacted>
2025-11-04 13:54:55.676 echodevice amazon unauthorized
2025-11-04 13:55:06.075 echodevice amazon connected
2025-11-04 13:55:28.994 echodevice bu.echo voice_timestamp: 1762260918475
2025-11-04 13:55:28.994 echodevice bu.echo voice: drucker ein
2025-11-04 13:55:40.979 echodevice One.echo connected
2025-11-04 13:55:40.983 echodevice Beam.echo connected
1970-01-01 01:00:00 echodevice bu.echo connected
2025-11-04 13:55:41.069 echodevice sz.echo connected
2025-11-04 13:55:41.076 echodevice bz.echo connected

Interessanterweise funktionieren aber voice commands dennoch sodass das mir auch gar nicht aufgefallen ist (hab die Echos auf verbose 2 gesetzt).
Das Spiel wiederholt sich dann ständig wie bei den anderen Usern.

@dusti64, mthome, punker: Könnt ihr im Zustand connected but loginerror auch noch voice commands absetzen?

VG Sebastian

mthome

Zitat von: binford6000 am 04 November 2025, 14:03:20@dusti64, mthome, punker: Könnt ihr im Zustand connected but loginerror auch noch voice commands absetzen?
Was meinst Du mit voice commands? Also die Echos funktionieren normal. Aber mit dem echodevice kann ich nix mehr tun (z.B. speak oder andere Funktionen). Auch bekomme ich kein trigger über das voice reading).
Wenn ich mit echo speak ... etwas ausgeben will oder andere Befehle absetze bekomme ich "is not connected. Aborting..."

dusti64

Muss ich schauen, wenn ich zuhause bin...
Zitat von: michael.winkler am 04 November 2025, 13:28:42...konnte ich ganz normal ein neues Cookie erstellen. Seither funktioniert es wieder ohne Probleme.
So wars bei mir am Samstag und dann war bis heute Ruhe 🤷🏻
2xDebian virtualisiert auf 2xPVE mit FHEM, 2x HMLAN, VCCU, CCU3, Homatic Heizung+Licht+Rollläden, Alexa, Homebridge, Hue, Shelly, Meross, Home Assistant usw.

michael.winkler

Ich würde folgende machen:
1. Update der NPM Umgebung https://www.mwinklerblog.de/modul-echodevice-npm/
npm install --prefix /opt/fhem/cache/alexa-cookie alexa-cookie2
chown -R fhem:  /opt/fhem/cache/alexa-cookie

Falls hier Fehlerauftauchen dann noch das NMP selber aktualisieren, Anletungen findet man im Internet dafür.

2. set NPM_login new durchführen um ein neues Cookie zu erstellen.

Danach sollte alles wieder funktionieren.

Ich musste bei mir noch die 2 faktor Anmeldung aktivieren, weil die Whatsapp & SMS Codes nicht funktioniert hatten.