[37_echodevice] Amazon Echo Modul (nicht Alexa)

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

Vorheriges Thema - Nächstes Thema

Schlimbo

Hallo Michael,

nutze einen "Yamaha MusicCast 20" Lautsprecher, der Lautsprecher hat zwar keine eigene Alexa integriert, kann aber als "Bevorzugter Lautsprecher" für die Musikwiedergabe eines Echos verwendet werden.
Folgender Devicetype wird mir für den MusicCast 20 vom Echo Modul ausgegeben: A1WAR447VT003J

Ich habe den Devicetype zum testen mal in das Modul aufgenommen und als Echo Dot deklariert.
Hiermit bekomme ich jetzt zumindest schon mal die Musik Readings aktualisiert wie z.B:
channel
currentAlbum
currentArtist
currentArtwork
currentTitle
mute
playStatus
presence
progress
progresslen
volume


Auch die Musik Steuerung (next,pause,play,previus,volume,mute) funktioniert.

Die Befehle "speak" & "sounds" scheinen jedoch nicht nicht zu funktionieren, hier bleibt der Lautsprecher stumm.

Könntest du das Gerät bitte in das Modul mit Aufnehmen?
Falls du weiter Infos/Logs/etc. benötigst stehe ich gerne zur Verfügung.

Beste Grüße
Schlimbo

michael.winkler

Zitat von: IcedEarth am 26 April 2020, 20:48:59
So, nach dem letzten NPM_login new ist das Devide jetzt wieder auf unauthorizes:
2020.04.26 19:59:41 3: [EchoDevices] [echodevice_LoginStart] Alter COOKIE=6061/6000 Refresh Cookie!
2020.04.26 19:59:41 4: [EchoDevices] [echodevice_NPMLoginRefresh] check /usr/bin/node
2020.04.26 19:59:41 4: [EchoDevices] [echodevice_NPMLoginRefresh] check alexa-cookie.js
2020.04.26 19:59:41 4: [EchoDevices] [echodevice_NPMLoginRefresh] check Refresh Cookie String
2020.04.26 19:59:41 4: [EchoDevices] [echodevice_NPMLoginRefresh] build 361refresh-cookie.js
2020.04.26 19:59:41 4: [EchoDevices] [echodevice_NPMLoginRefresh] check 361refresh-cookie.js
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_NPMLoginRefresh] start /usr/bin/node cache/alexa-cookie/361refresh-cookie.js
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_NPMLoginRefresh] start InternalTimer echodevice_NPMWaitForCookie
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getnotifications] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_HandleCmdQueue] [getnotifications] send command=https://layla.amazon.de/api/notifications Data=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [alarmvolume] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [bluetoothstate] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getdnd] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [wakeword] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [listitems_task] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [listitems_shopping] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getdevicesettings] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getisonline] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [devicesstate] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendLoginCommand] [cookielogin6]
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [activities] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1587923982
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getbehavior] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/automations?limit=100
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] START
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2020.04.26 19:59:42 4: [EchoDevices] [echodevice_GetSettings] Timer INTERVAL = 60
2020.04.26 19:59:43 4: [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Sun Apr 26 19:59:41 2020] wait for refreshtoken exist 361refresh-cookie.js = true
2020.04.26 19:59:43 4: [EchoDevices] [echodevice_ParseAuth] [cookielogin6]
2020.04.26 19:59:43 4: [EchoDevices] [echodevice_ParseAuth] JSON OK = {authentication}{authenticated}
2020.04.26 19:59:44 4: [EchoDevices] [echodevice_Parse] [getnotifications]
2020.04.26 19:59:44 4: [EchoDevices] [echodevice_HandleCmdQueue] [getsettingstraffic] send command=https://layla.amazon.de/api/traffic/settings Data=
2020.04.26 19:59:44 4: [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Sun Apr 26 19:59:41 2020] wait for refreshtoken exist 361refresh-cookie.js = true
2020.04.26 19:59:44 4: [EchoDevices] [echodevice_Parse] [getsettingstraffic]
2020.04.26 19:59:44 4: [EchoDevices] [echodevice_HandleCmdQueue] [getbehavior] send command=https://layla.amazon.de/api/behaviors/automations?limit=100 Data=
2020.04.26 19:59:45 4: [EchoDevices] [echodevice_Parse] [getbehavior]
2020.04.26 19:59:45 4: [EchoDevices] [echodevice_HandleCmdQueue] [activities] send command=https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1587923982 Data=
2020.04.26 19:59:45 4: [EchoDevices] [echodevice_Parse] [activities]
2020.04.26 19:59:45 4: [EchoDevices] [echodevice_HandleCmdQueue] [devicesstate] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587923982 Data=
2020.04.26 19:59:45 4: [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Sun Apr 26 19:59:41 2020] wait for refreshtoken exist 361refresh-cookie.js = true
2020.04.26 19:59:45 4: [EchoDevices] [echodevice_Parse] [devicesstate]
2020.04.26 19:59:46 4: [EchoDevices] [echodevice_HandleCmdQueue] [getisonline] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587923982 Data=
2020.04.26 19:59:46 3: [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Sun Apr 26 19:59:41 2020] write new refreshtoken
2020.04.26 19:59:46 4: [EchoDevices] [echodevice_Parse] [getisonline]
2020.04.26 19:59:46 4: [EchoDevices] [echodevice_HandleCmdQueue] [getdevicesettings] send command=https://layla.amazon.de/api/device-preferences Data=
2020.04.26 19:59:46 4: [EchoDevices] [echodevice_Parse] [getdevicesettings]
2020.04.26 19:59:46 4: [EchoDevices] [echodevice_Parse] [getdevicesettings] Invalid cookie
2020.04.26 19:59:46 4: [EchoDevices] [echodevice_HandleCmdQueue] [listitems_shopping] send command=https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1587923982 Data=
2020.04.26 19:59:56 4: [EchoDevices] [echodevice_Parse] [listitems_shopping]
2020.04.26 19:59:56 4: [EchoDevices] [echodevice_Parse] [listitems_shopping] connection error listitems_shopping read from https://layla.amazon.de:443 timed out
2020.04.26 19:59:56 4: [EchoDevices] [echodevice_HandleCmdQueue] [listitems_task] send command=https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1587923982 Data=
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [listitems_task]
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [listitems_task] connection error listitems_task read from https://layla.amazon.de:443 timed out
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_HandleCmdQueue] [wakeword] send command=https://layla.amazon.de/api/wake-word?_=1587923982 Data=
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [wakeword]
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [wakeword] Invalid cookie
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_HandleCmdQueue] [getdnd] send command=https://layla.amazon.de/api/dnd/device-status-list?_=1587923982 Data=
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [getdnd]
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [getdnd] Invalid cookie
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_HandleCmdQueue] [bluetoothstate] send command=https://layla.amazon.de/api/bluetooth?cached=true&_=1587923982 Data=
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [bluetoothstate]
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [bluetoothstate] Invalid cookie
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_HandleCmdQueue] [alarmvolume] send command=https://layla.amazon.de/api/device-notification-state?_=1587923982 Data=
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [alarmvolume]
2020.04.26 20:00:07 4: [EchoDevices] [echodevice_Parse] [alarmvolume] connection error alarmvolume https://layla.amazon.de/api/device-notification-state?_=1587923982: Too many redirects
2020.04.26 20:00:44 4: [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.


und das get status:
Modul Infos:

Beschreibung    Bereich    Wert
STATE    Reading unauthorized
Version    Reading 0.1.5
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading vorhanden
npm_proxy_ip    Attribut 192.168.178.74
verbose    Attribut 4
room    Attribut Netzwerktechnik
devStateStyle    Attribut style="text-align:right"
icon    Attribut alexa
group    Attribut Steuergeräte
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot
npm_proxy_listen_ip    Attribut 192.168.178.74

Amazon Cookie:

Beschreibung    Bereich    Wert
.COOKIE    Reading default/10px-kreis-g....
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
amazon_refreshtoken    Reading vorhanden
.COOKIE    Helper session-id=....
.COMMSID    Helper amzn1.comms.id.perso....
.CSRF    Helper ....
.DIRECTID    Helper amzn1.account.AFGP5H....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper 0
LOGINERROR    Helper 0


Viele Grüße
Laut Log hast Du hier ein npm_login refresh durchgeführt. Der Refresh kann aber nur funktionieren, wenn du über ein New ein gültiges Cookie hast. Mach mal vorher ein NPM_install. Dann wird das Cookie Modul aktualisiert. Eventuell verwendest Du hier auch noch eine ätere Version.

michael.winkler

Zitat von: Schlimbo am 26 April 2020, 22:38:32
Hallo Michael,

nutze einen "Yamaha MusicCast 20" Lautsprecher, der Lautsprecher hat zwar keine eigene Alexa integriert, kann aber als "Bevorzugter Lautsprecher" für die Musikwiedergabe eines Echos verwendet werden.
Folgender Devicetype wird mir für den MusicCast 20 vom Echo Modul ausgegeben: A1WAR447VT003J

Ich habe den Devicetype zum testen mal in das Modul aufgenommen und als Echo Dot deklariert.
Hiermit bekomme ich jetzt zumindest schon mal die Musik Readings aktualisiert wie z.B:
channel
currentAlbum
currentArtist
currentArtwork
currentTitle
mute
playStatus
presence
progress
progresslen
volume


Auch die Musik Steuerung (next,pause,play,previus,volume,mute) funktioniert.

Die Befehle "speak" & "sounds" scheinen jedoch nicht nicht zu funktionieren, hier bleibt der Lautsprecher stumm.

Könntest du das Gerät bitte in das Modul mit Aufnehmen?
Falls du weiter Infos/Logs/etc. benötigst stehe ich gerne zur Verfügung.

Beste Grüße
Schlimbo
Werde es in die nächste Version mit einbauen.

IcedEarth

Hab wie laut Anleitung in der Konsole npm_install durchgeführt. Nach dem Neustart ist das disconnect:
Modul Infos:

Beschreibung    Bereich    Wert
STATE    Reading unauthorized
Version    Reading 0.1.5
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading READING
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading vorhanden
npm_proxy_ip    Attribut 192.168.178.74
verbose    Attribut 4
icon    Attribut alexa
group    Attribut Steuergeräte
npm_proxy_listen_ip    Attribut 192.168.178.74
room    Attribut Netzwerktechnik
devStateStyle    Attribut style="text-align:right"
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot

Amazon Cookie:

Beschreibung    Bereich    Wert
.COOKIE    Reading default/10px-kreis-g....
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading READING
amazon_refreshtoken    Reading vorhanden
.COOKIE    Helper default/10px-kreis-g....
.COMMSID    Helper ....
.CSRF    Helper ....
.DIRECTID    Helper ....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper 0
LOGINERROR    Helper 2


Hier der Log nach dem Start:
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_FirstStart] COOKIE      = default/10px-kreis-gruen.png
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_FirstStart] COOKIE_TYPE = READING
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendLoginCommand] [cookielogin6]
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] START
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971895
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendData=
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_HandleCmdQueue] [devices] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971895 Data=
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [account] START
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendURL =https://alexa-comms-mobile-service.amazon.com/accounts
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendData=
2020.04.27 09:18:33 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_Parse] [devices]
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_Parse] [devices] connection error devices write to https://layla.amazon.de:443 timed out
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_HandleCmdQueue] [account] send command=https://alexa-comms-mobile-service.amazon.com/accounts Data=
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_ParseAuth] [cookielogin6]
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_LostConnect] clear CMD_QUEUE
2020.04.27 09:18:36 3:  [EchoDevices] [echodevice_LostConnect] connection error = write to https://layla.amazon.de:443 timed out / set loginerror to 1
2020.04.27 09:18:36 3:  [EchoDevices] [echodevice_setState] to connected but loginerror
2020.04.27 09:18:38 2:  HMCCU: [d_ccu : 1951] Update success=11 failed=0
2020.04.27 09:18:38 4:  [EchoDevices] [echodevice_Parse] [account]
2020.04.27 09:18:38 4:  [EchoDevices] [echodevice_Parse] [account] DATA Dumper=$VAR1 = 'User not authenticated';

2020.04.27 09:18:38 2:  AttrTemplates: got 168 entries
2020.04.27 09:18:41 1:  PERL WARNING: Use of uninitialized value $minInt in numeric lt (<) at fhem.pl line 4866.
2020.04.27 09:18:49 1:  PERL WARNING: Argument "Unknown argument power, choose one of adminpassword:noAr..." isn't numeric in numeric lt (<) at FHEM/Color.pm line 508.
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_HandleCmdQueue] [getnotifications] send command=https://layla.amazon.de/api/notifications Data=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [account] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendURL =https://alexa-comms-mobile-service.amazon.com/accounts
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendLoginCommand] [cookielogin6]
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [activities] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/automations?limit=100
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_GetSettings] Timer INTERVAL = 60
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getnotifications]
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getnotifications] Invalid cookie
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_HandleCmdQueue] [getsettingstraffic] send command=https://layla.amazon.de/api/traffic/settings Data=
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_ParseAuth] [cookielogin6]
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_LostConnect] clear CMD_QUEUE
2020.04.27 09:19:17 3:  [EchoDevices] [echodevice_LostConnect] JSON error = no content / set loginerror to 2
2020.04.27 09:19:17 3:  [EchoDevices] [echodevice_setState] to connected but loginerror
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getsettingstraffic]
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getsettingstraffic] Invalid cookie
2020.04.27 09:19:36 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2020.04.27 09:20:39 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.


Dann führe ich ein NPM_login new durch. Danach ist das device auf connected:
Modul Infos:

Beschreibung    Bereich    Wert
STATE    Reading connected
Version    Reading 0.1.5
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading vorhanden
npm_proxy_ip    Attribut 192.168.178.74
verbose    Attribut 4
icon    Attribut alexa
group    Attribut Steuergeräte
npm_proxy_listen_ip    Attribut 192.168.178.74
room    Attribut Netzwerktechnik
devStateStyle    Attribut style="text-align:right"
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot

Amazon Cookie:

Beschreibung    Bereich    Wert
.COOKIE    Reading {"loginCookie":"sess....
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
amazon_refreshtoken    Reading vorhanden
.COOKIE    Helper session-id=260-76953....
.COMMSID    Helper amzn1.comms.id.perso....
.CSRF    Helper -18....
.DIRECTID    Helper amzn1.account.AFGP5H....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper 0
LOGINERROR    Helper 0


Ich vermute mal, dass es nachher wieder abschmiert. Melde mich, wenn der Refresh Wert abgelaufen ist und er automatisch versucht zu refreshen...

michael.winkler

Zitat von: IcedEarth am 27 April 2020, 09:27:04
Hab wie laut Anleitung in der Konsole npm_install durchgeführt. Nach dem Neustart ist das disconnect:
Modul Infos:

Beschreibung    Bereich    Wert
STATE    Reading unauthorized
Version    Reading 0.1.5
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading READING
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading vorhanden
npm_proxy_ip    Attribut 192.168.178.74
verbose    Attribut 4
icon    Attribut alexa
group    Attribut Steuergeräte
npm_proxy_listen_ip    Attribut 192.168.178.74
room    Attribut Netzwerktechnik
devStateStyle    Attribut style="text-align:right"
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot

Amazon Cookie:

Beschreibung    Bereich    Wert
.COOKIE    Reading default/10px-kreis-g....
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading READING
amazon_refreshtoken    Reading vorhanden
.COOKIE    Helper default/10px-kreis-g....
.COMMSID    Helper ....
.CSRF    Helper ....
.DIRECTID    Helper ....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper 0
LOGINERROR    Helper 2


Hier der Log nach dem Start:
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_FirstStart] COOKIE      = default/10px-kreis-gruen.png
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_FirstStart] COOKIE_TYPE = READING
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendLoginCommand] [cookielogin6]
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] START
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971895
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendData=
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_HandleCmdQueue] [devices] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971895 Data=
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [account] START
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendURL =https://alexa-comms-mobile-service.amazon.com/accounts
2020.04.27 09:18:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendData=
2020.04.27 09:18:33 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_Parse] [devices]
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_Parse] [devices] connection error devices write to https://layla.amazon.de:443 timed out
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_HandleCmdQueue] [account] send command=https://alexa-comms-mobile-service.amazon.com/accounts Data=
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_ParseAuth] [cookielogin6]
2020.04.27 09:18:36 4:  [EchoDevices] [echodevice_LostConnect] clear CMD_QUEUE
2020.04.27 09:18:36 3:  [EchoDevices] [echodevice_LostConnect] connection error = write to https://layla.amazon.de:443 timed out / set loginerror to 1
2020.04.27 09:18:36 3:  [EchoDevices] [echodevice_setState] to connected but loginerror
2020.04.27 09:18:38 2:  HMCCU: [d_ccu : 1951] Update success=11 failed=0
2020.04.27 09:18:38 4:  [EchoDevices] [echodevice_Parse] [account]
2020.04.27 09:18:38 4:  [EchoDevices] [echodevice_Parse] [account] DATA Dumper=$VAR1 = 'User not authenticated';

2020.04.27 09:18:38 2:  AttrTemplates: got 168 entries
2020.04.27 09:18:41 1:  PERL WARNING: Use of uninitialized value $minInt in numeric lt (<) at fhem.pl line 4866.
2020.04.27 09:18:49 1:  PERL WARNING: Argument "Unknown argument power, choose one of adminpassword:noAr..." isn't numeric in numeric lt (<) at FHEM/Color.pm line 508.
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_HandleCmdQueue] [getnotifications] send command=https://layla.amazon.de/api/notifications Data=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devices] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [account] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendURL =https://alexa-comms-mobile-service.amazon.com/accounts
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [account] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendLoginCommand] [cookielogin6]
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [activities] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1587971955
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/automations?limit=100
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] START
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2020.04.27 09:19:15 4:  [EchoDevices] [echodevice_GetSettings] Timer INTERVAL = 60
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getnotifications]
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getnotifications] Invalid cookie
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_HandleCmdQueue] [getsettingstraffic] send command=https://layla.amazon.de/api/traffic/settings Data=
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_ParseAuth] [cookielogin6]
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_LostConnect] clear CMD_QUEUE
2020.04.27 09:19:17 3:  [EchoDevices] [echodevice_LostConnect] JSON error = no content / set loginerror to 2
2020.04.27 09:19:17 3:  [EchoDevices] [echodevice_setState] to connected but loginerror
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getsettingstraffic]
2020.04.27 09:19:17 4:  [EchoDevices] [echodevice_Parse] [getsettingstraffic] Invalid cookie
2020.04.27 09:19:36 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2020.04.27 09:20:39 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.


Dann führe ich ein NPM_login new durch. Danach ist das device auf connected:
Modul Infos:

Beschreibung    Bereich    Wert
STATE    Reading connected
Version    Reading 0.1.5
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading vorhanden
npm_proxy_ip    Attribut 192.168.178.74
verbose    Attribut 4
icon    Attribut alexa
group    Attribut Steuergeräte
npm_proxy_listen_ip    Attribut 192.168.178.74
room    Attribut Netzwerktechnik
devStateStyle    Attribut style="text-align:right"
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot

Amazon Cookie:

Beschreibung    Bereich    Wert
.COOKIE    Reading {"loginCookie":"sess....
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
amazon_refreshtoken    Reading vorhanden
.COOKIE    Helper session-id=260-76953....
.COMMSID    Helper amzn1.comms.id.perso....
.CSRF    Helper -18....
.DIRECTID    Helper amzn1.account.AFGP5H....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper 0
LOGINERROR    Helper 0


Ich vermute mal, dass es nachher wieder abschmiert. Melde mich, wenn der Refresh Wert abgelaufen ist und er automatisch versucht zu refreshen...
Du kannst den Refresh auch über ein npm_login refresh anstarten

IcedEarth

Hab den jetzt mal manuell gestartet. Hier der Log:
2020.04.27 09:38:49 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check /usr/bin/node
2020.04.27 09:38:49 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check alexa-cookie.js
2020.04.27 09:38:49 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check Refresh Cookie String
2020.04.27 09:38:49 4:  [EchoDevices] [echodevice_NPMLoginRefresh] build 361refresh-cookie.js
2020.04.27 09:38:49 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check 361refresh-cookie.js
2020.04.27 09:38:52 4:  [EchoDevices] [echodevice_NPMLoginRefresh] start /usr/bin/node cache/alexa-cookie/361refresh-cookie.js
2020.04.27 09:38:52 4:  [EchoDevices] [echodevice_NPMLoginRefresh] start InternalTimer echodevice_NPMWaitForCookie
2020.04.27 09:38:53 4:  [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Mon Apr 27 09:38:49 2020] wait for refreshtoken exist 361refresh-cookie.js = true
2020.04.27 09:39:00 3:  [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Mon Apr 27 09:38:49 2020] write new refreshtoken
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_HandleCmdQueue] [getnotifications] send command=https://layla.amazon.de/api/notifications Data=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendLoginCommand] [cookielogin6]
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [activities] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1587973140
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [activities] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/automations?limit=100
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] START
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2020.04.27 09:39:00 4:  [EchoDevices] [echodevice_GetSettings] Timer INTERVAL = 60
2020.04.27 09:39:01 4:  [EchoDevices] [echodevice_Parse] [getnotifications]
2020.04.27 09:39:01 4:  [EchoDevices] [echodevice_Parse] [getnotifications] Invalid cookie
2020.04.27 09:39:01 4:  [EchoDevices] [echodevice_HandleCmdQueue] [getsettingstraffic] send command=https://layla.amazon.de/api/traffic/settings Data=
2020.04.27 09:39:01 4:  [EchoDevices] [echodevice_ParseAuth] [cookielogin6]
2020.04.27 09:39:01 4:  [EchoDevices] [echodevice_LostConnect] clear CMD_QUEUE
2020.04.27 09:39:01 3:  [EchoDevices] [echodevice_LostConnect] JSON error = no content / set loginerror to 1
2020.04.27 09:39:01 3:  [EchoDevices] [echodevice_setState] to connected but loginerror
2020.04.27 09:39:02 4:  [EchoDevices] [echodevice_Parse] [getsettingstraffic]
2020.04.27 09:39:02 4:  [EchoDevices] [echodevice_Parse] [getsettingstraffic] Invalid cookie
2020.04.27 09:40:05 4:  [EchoDevices] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.


und das getstatus:
Modul Infos:

Beschreibung    Bereich    Wert
STATE    Reading unauthorized
Version    Reading 0.1.5
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading vorhanden
npm_proxy_ip    Attribut 192.168.178.74
verbose    Attribut 4
icon    Attribut alexa
group    Attribut Steuergeräte
npm_proxy_listen_ip    Attribut 192.168.178.74
room    Attribut Netzwerktechnik
devStateStyle    Attribut style="text-align:right"
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot

Amazon Cookie:

Beschreibung    Bereich    Wert
.COOKIE    Reading default/10px-kreis-g....
COOKIE_STATE    Reading OK
COOKIE_TYPE    Reading NPM_Login
amazon_refreshtoken    Reading vorhanden
.COOKIE    Helper session-id=....
.COMMSID    Helper amzn1.comms.id.perso....
.CSRF    Helper ....
.DIRECTID    Helper amzn1.account.AFGP5H....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper 0
LOGINERROR    Helper 1


Viele Grüße

michael.winkler

Zitat von: IcedEarth am 27 April 2020, 09:42:06

und das getstatus:
Modul Infos:
devStateStyle    Attribut style="text-align:right"
devStateIcon    Attribut connected:10px-kreis-gruen disconnected:10px-kreis-rot
[/quote]

Gerade ist mir aufgefallen, dass du das DevStateIcon änderst. Ich glaube, dass das Problem verursacht. Kannst Du die beiden Attribute mal entfernen? Wenn es dann geht muss ich mir mal anschauen warum es hier zu Problemen kommt.

IcedEarth

#3997
Ich glaube tatsächlich, dass da irgendwas durcheinander kommt. Wenn ich einen refresh ausführe kommt das folgende:
Das angegebene Refreshtoken Cookie ist ungeueltig! Refreshtoken="default/10px-kreis-gruen.png"

Im Log:
2020.04.27 09:47:00 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check /usr/bin/node
2020.04.27 09:47:00 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check alexa-cookie.js
2020.04.27 09:47:00 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check Refresh Cookie String
2020.04.27 09:47:00 3:  [EchoDevices] [echodevice_NPMLoginRefresh] refreshtoken unkown!! refreshtoken=default/10px-kreis-gruen.png


Ich mache nochmal einen new login und probiere danach einen refresh

Das scheint tatsäöhclich das Problem zu sein, denn jetzt geht es manuell:
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check /usr/bin/node
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check alexa-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check Refresh Cookie String
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] build 361refresh-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check 361refresh-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] start /usr/bin/node cache/alexa-cookie/361refresh-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] start InternalTimer echodevice_NPMWaitForCookie
2020.04.27 09:49:51 4:  [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Mon Apr 27 09:49:50 2020] wait for refreshtoken exist 361refresh-cookie.js = true
2020.04.27 09:49:55 3:  [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Mon Apr 27 09:49:50 2020] write new refreshtoken


Ich warte jetzt mal auf den automatischen Refresh, aber ich bin da guter Dinge, dass es auch funktioniert.
Jetzt kannst Du ja mal nachdenken, warum wohl ein StateIcon (oder der Style; oder beides zusammen) das Problem hervorrufen....

Viele Grüße

michael.winkler

Zitat von: IcedEarth am 27 April 2020, 09:48:09
Ich glaube tatsächlich, dass da irgendwas durcheinander kommt. Wenn ich einen refresh ausführe kommt das folgende:
Das angegebene Refreshtoken Cookie ist ungeueltig! Refreshtoken="default/10px-kreis-gruen.png"

Im Log:
2020.04.27 09:47:00 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check /usr/bin/node
2020.04.27 09:47:00 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check alexa-cookie.js
2020.04.27 09:47:00 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check Refresh Cookie String
2020.04.27 09:47:00 3:  [EchoDevices] [echodevice_NPMLoginRefresh] refreshtoken unkown!! refreshtoken=default/10px-kreis-gruen.png


Ich mache nochmal einen new login und probiere danach einen refresh

Das scheint tatsäöhclich das Problem zu sein, denn jetzt geht es manuell:
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check /usr/bin/node
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check alexa-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check Refresh Cookie String
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] build 361refresh-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] check 361refresh-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] start /usr/bin/node cache/alexa-cookie/361refresh-cookie.js
2020.04.27 09:49:50 4:  [EchoDevices] [echodevice_NPMLoginRefresh] start InternalTimer echodevice_NPMWaitForCookie
2020.04.27 09:49:51 4:  [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Mon Apr 27 09:49:50 2020] wait for refreshtoken exist 361refresh-cookie.js = true
2020.04.27 09:49:55 3:  [EchoDevices] [echodevice_NPMWaitForCookie] [NPM Login Refresh Mon Apr 27 09:49:50 2020] write new refreshtoken


Ich warte jetzt mal auf den automatischen Refresh, aber ich bin da guter Dinge, dass es auch funktioniert.
Jetzt kannst Du ja mal nachdenken, warum wohl ein StateIcon (oder der Style; oder beides zusammen) das Problem hervorrufen....

Viele Grüße

Ich denke, dass ich den Fehler gefunden habe. Morgen kommt eine neue Version über das Update. Dann sollte es auch mit den beiden Attributen funktionieren.

IcedEarth

Ich danke dir. Werde es morgen Abend mal testen und mich zurückmelden.
Viele Grüße

mister

Hallo zusammen,

ich habe die NPM installation erfolgreich durchgeführt. Meine Version ist die 0.1.0
Wenn ich auf set NPM Login new geht Lädun dläd Fhem und stürtzt dann irgendwann ab.

Woran kann das liegen? Bin eigentlich genau nach Anleitug vorgegangen.
Node 12.6.1
NPM 6.13.4


michael.winkler

Zitat von: mister am 28 April 2020, 14:37:05
Hallo zusammen,

ich habe die NPM installation erfolgreich durchgeführt. Meine Version ist die 0.1.0
Wenn ich auf set NPM Login new geht Lädun dläd Fhem und stürtzt dann irgendwann ab.

Woran kann das liegen? Bin eigentlich genau nach Anleitug vorgegangen.
Node 12.6.1
NPM 6.13.4
Schick mal ein get status vom Account Device.

Zusätzlich wäre noch interessant was im LOG, bis zum Absturz, steht.

mister

Modul Infos:
Beschreibung    Bereich    Wert
STATE    Reading unbekannt
Version    Reading 0.1.0
COOKIE_STATE    Reading unbekannt
COOKIE_TYPE    Reading NEW
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading unbekannt
icon    Attribut echo
room    Attribut Alexa_Geräte


Amazon Cookie:
Beschreibung    Bereich    Wert
.COOKIE    Reading unbekannt....
COOKIE_STATE    Reading unbekannt
COOKIE_TYPE    Reading NEW
amazon_refreshtoken    Reading unbekannt
.COOKIE    Helper ....
.COMMSID    Helper ....
.CSRF    Helper ....
.DIRECTID    Helper ....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper
LOGINERROR    Helper 0


2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result Alexa-Cookie: Response (200)

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result [HPM] Proxy created: !/cookie-success  -> https://alexa.amazon.com

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result [HPM] Proxy rewrite rule created: "^/www.amazon.com" ~> ""

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result [HPM] Proxy rewrite rule created: "^/alexa..amazon.com" ~> ""

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result Alexa-Cookie: Proxy-Server listening on port 3002

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result RESULT: Error: Amazon-Login-Error: Wichtige Mitteilung!: Zum besseren Schutz Ihres Kontos geben Sie bitte nochmals Ihr Passwort ein, und geben Sie dann die Zeichen ein, die in der Abbildung unten gezeigt werden. You can try to get the cookie manually by opening http://192.168.178.8:3002/ with your browser. / null



michael.winkler

Zitat von: mister am 28 April 2020, 15:16:02
Modul Infos:
Beschreibung    Bereich    Wert
STATE    Reading unbekannt
Version    Reading 0.1.0
COOKIE_STATE    Reading unbekannt
COOKIE_TYPE    Reading NEW
COOKIE_MODE    Reading NPM
amazon_refreshtoken    Reading unbekannt
icon    Attribut echo
room    Attribut Alexa_Geräte


Amazon Cookie:
Beschreibung    Bereich    Wert
.COOKIE    Reading unbekannt....
COOKIE_STATE    Reading unbekannt
COOKIE_TYPE    Reading NEW
amazon_refreshtoken    Reading unbekannt
.COOKIE    Helper ....
.COMMSID    Helper ....
.CSRF    Helper ....
.DIRECTID    Helper ....
RUNLOGIN    Helper 0
RUNNING_REQUEST    Helper
LOGINERROR    Helper 0


2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result Alexa-Cookie: Response (200)

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result [HPM] Proxy created: !/cookie-success  -> https://alexa.amazon.com

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result [HPM] Proxy rewrite rule created: "^/www.amazon.com" ~> ""

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result [HPM] Proxy rewrite rule created: "^/alexa..amazon.com" ~> ""

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result Alexa-Cookie: Proxy-Server listening on port 3002

2020.04.28 14:36:50 3: [AlexaGeraete] [echodevice_NPMLoginNew] Result RESULT: Error: Amazon-Login-Error: Wichtige Mitteilung!: Zum besseren Schutz Ihres Kontos geben Sie bitte nochmals Ihr Passwort ein, und geben Sie dann die Zeichen ein, die in der Abbildung unten gezeigt werden. You can try to get the cookie manually by opening http://192.168.178.8:3002/ with your browser. / null

Du verwendest eine alte Version. Mach mal ein Update


Gesendet von iPhone mit Tapatalk

IcedEarth

Wie versprochen kurzes Update: refresh klappt jetzt auch mit devstatestyle und-icon.
Danke nochmal!