[37_echodevice] Amazon Echo Modul (nicht Alexa)

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

Vorheriges Thema - Nächstes Thema

michael.winkler

Zitat von: rbothe am 26 Oktober 2018, 09:26:37
Hallo, Michael, tooles Modul - ich konnte ohne Probleme alle meine 4 Alexas einbinden (Echo Vers 1, Echo Vers 2, Echp Spot, Echo Show).
Danke fuer die Muehe.

Nun habe ich ein Amazon Fire HD 10 mit aktiviertem Alexa und es ist auch im Alexa.amazon.com als "Richards Fire" sichtbar. Software Version 612496620.
Leider sehe ich es nicht (auch bei autocreate) als device im FHEM (2.8, 39_alexa).
Geht da der Autocreate noch nicht und wire kann ich den Fire manuel einbinden?
Ist nur zum Test, der Fire geht Ende Okt nach Brasilien zu meiner Tochter).
Sie hat dort auch FHEM, von mir konfiguriert.

Kannst du mal bitte folgendes machen:

Ändere mal im Modul die Zeilen 3187 - 3189 wie folgt ab

#next if($device->{deviceFamily} eq "UNKNOWN");
#next if($device->{deviceFamily} eq "FIRE_TV");
#next if($device->{deviceFamily} =~ /AMAZON/);


Danach ein shutdown restart ausführen und dann ein get devices am Account device machen. Schick mir dann am, gerne auch als PN, das Ergebnis zu.

Zusätzlich solltest du mir noch kurz beschreiben welche Funktionen über das Fire TV möglich sind. z.B. Timer, Wecker usw.

awel

#1261
Zitat von: cs-online am 25 Oktober 2018, 19:52:46
Mit der Version waren meine Echos alle sofort nach Neustart connected. Aber wenn ich mit Speak etwas sprechen lassen will, dann passiert nichts... die anderen Funktionen hab ich auf die Schnelle nicht testen können....
Den Effekt hatte ich auch. Bei mir war allerdings noch ein kryptischer BrowserUserAgent in den Readings. Nach Deaktivierung des Zufalls-Browser mit attr <device> browser_useragent_random 0 und einem neuen Login wurde auch der "echte" Vorgabebrowser eingetragen und speak, reminder etc. funktionieren wieder.

Ich meine auch irgendwo gelesen zu haben, dass Amazon inzwischen eine "echte" Info über akzeptierte Sprachen und Browser verlangt.

Danke Michael für schnelle Anpassung!

VG Achim

PS:
Vielleicht sollte der Standard für browser_useragent_random wieder auf 0 geändert werden, z.Zt. steht der ohne explizite Angabe auf 1 und sorgt für den Zufallsbrowser

michael.winkler

Zitat von: awel am 26 Oktober 2018, 10:07:55
Den Effekt hatte ich auch. Bei mir war allerdings noch ein kryptischer BrowserUserAgent in den Readings. Nach Deaktivierung des Zufalls-Browser mit attr <device> browser_useragent_random 0 und einem neuen Login wurde auch der "echte" Vorgabebrowser eingetragen und speak, reminder etc. funktionieren wieder.

Ich meine auch irgendwo gelesen zu haben, dass Amazon inzwischen eine "echte" Info über akzeptierte Sprachen und Browser verlangt.

Danke Michael für schnelle Anpassung!

VG Achim

PS:
Vielleicht sollte der Standard für browser_useragent_random wieder auf 0 geändert werden, z.Zt. steht der ohne explizite Angabe auf 1 und sorgt für den Zufallsbrowser
Dann werde ich mal in der nächsten Version den Random Browser Agent standardmäßig deaktivieren

michael.winkler

Habe auf Seite 1 die Version 0.0.47 verlinkt.


# 2018.10.25 v0.0.47
# - FEATURE: Unterstützung neuer Sonos Beam A15ERDAKK5HQQG
# - BUGFIX:  browser_language default = de,en-US;q=0.7,en;q=0.3
#            browser_useragent default = Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
#

KölnSolar

#1264
Hallo Michael,
weil ich es die letzten Tage mal wieder nicht mit der 0.0.37 geschafft habe in den connect-Status zu kommen, habe ich soeben die 0.0.47 geladen. Nun habe ich (erstmalig ?) den Effekt, dass zwar das Account-device connected meldet, das echodevice aber disconnected bleibt. Ein paar Spielereien mit den Atrributen browseragent, browseragentrandom, browserlanguage haben nichts gebracht.
Überrascht hat mich auch, dass das echodevice jetzt auch browseragent-, browserlanguage-readings hat (erstmalig ?). Zumindest lt. Deiner Doku sollten die doch dort nicht auftauchen.

Hab mal verbose5 auf dem echodevice laufen lassen.(vermutlich aber kaum hilfreich)
2018.10.26 13:21:53 5: [echo] [echodevice_GetSettings] ping!
2018.10.26 13:21:53 4: [echo] [echodevice_GetSettings] Timer CNTERVAL = -60
2018.10.26 13:21:53 4: [echo] [echodevice_SendCommand] [player] START
2018.10.26 13:21:53 4: [echo] [echodevice_SendCommand] [player] PushToCmdQueue SendURL =https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2HU6VAYF&screenWidth=1392&_=1540552913
2018.10.26 13:21:53 4: [echo] [echodevice_SendCommand] [player] PushToCmdQueue SendData=
2018.10.26 13:21:53 4: [echo] [echodevice_HandleCmdQueue] [player] send command=https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2HU6VAYF&screenWidth=1392&_=1540552913
2018.10.26 13:21:53 4: [echo] [echodevice_SendCommand] [media] START
2018.10.26 13:21:53 4: [echo] [echodevice_SendCommand] [media] PushToCmdQueue SendURL =https://layla.amazon.de/api/media/state?deviceSerialNumber=SERIAL&deviceType=A3S5BH2HU6VAYF&screenWidth=1392&_=1540552913
2018.10.26 13:21:53 4: [echo] [echodevice_SendCommand] [media] PushToCmdQueue SendData=
2018.10.26 13:21:53 4: [echo] [echodevice_GetSettings] Timer INTERVAL = 60
2018.10.26 13:21:54 4: [echo] [echodevice_Parse] [player]
2018.10.26 13:21:54 5: [echo] [echodevice_Parse] [player] DATA Dumper=$VAR1 = '';

2018.10.26 13:21:54 4: [echo] [echodevice_Parse] [player] connection error player https://layla.amazon.de/api/np/player?deviceSerialNumber=G090LF0964850MJM&deviceType=A3S5BH2HU6VAYF&screenWidth=1392&_=1540552913: Too many redirects
2018.10.26 13:21:54 4: [echo] [echodevice_HandleCmdQueue] [media] send command=https://layla.amazon.de/api/media/state?deviceSerialNumber=SERIAL&deviceType=A3S5BH2HU6VAYF&screenWidth=1392&_=1540552913
2018.10.26 13:21:54 4: [echo] [echodevice_Parse] [media]
2018.10.26 13:21:54 5: [echo] [echodevice_Parse] [media] DATA Dumper=$VAR1 = '';

2018.10.26 13:21:54 4: [echo] [echodevice_Parse] [media] connection error media https://layla.amazon.de/api/media/state?deviceSerialNumber=G090LF0964850MJM&deviceType=A3S5BH2HU6VAYF&screenWidth=1392&_=1540552913: Too many redirects


Hab auch mal ein modify gemacht: erst INITIALIZED, dann aber wieder disconnected.  :'(

Ein autocreate_devices beim Account-device verändert auch nichts. Auch nicht nach löschen des echodevice.

Ist das Account-device evtl. gar nicht connected ?

Grüße Markus

Edit: autocreate_devices beim Account-device mit verbose4
2018.10.26 13:36:37 4: [echomaster] [echodevice_SendCommand] [autocreate_devices] START
2018.10.26 13:36:37 4: [echomaster] [echodevice_SendCommand] [autocreate_devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553797
2018.10.26 13:36:37 4: [echomaster] [echodevice_SendCommand] [autocreate_devices] PushToCmdQueue SendData=
2018.10.26 13:36:37 4: [echomaster] [echodevice_HandleCmdQueue] [autocreate_devices] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553797
2018.10.26 13:36:37 4: [echomaster] [echodevice_Parse] [autocreate_devices]
2018.10.26 13:36:37 4: [echomaster] [echodevice_Parse] [autocreate_devices] connection error autocreate_devices https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553797: Too many redirects
2018.10.26 13:36:39 4: [echomaster] [echodevice_SendCommand] [autocreate_devices] START
2018.10.26 13:36:39 4: [echomaster] [echodevice_SendCommand] [autocreate_devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553799
2018.10.26 13:36:39 4: [echomaster] [echodevice_SendCommand] [autocreate_devices] PushToCmdQueue SendData=
2018.10.26 13:36:39 4: [echomaster] [echodevice_HandleCmdQueue] [autocreate_devices] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553799
2018.10.26 13:36:39 4: [echomaster] [echodevice_Parse] [autocreate_devices]
2018.10.26 13:36:39 4: [echomaster] [echodevice_Parse] [autocreate_devices] connection error autocreate_devices https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553799: Too many redirects
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getnotifications] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_HandleCmdQueue] [getnotifications] send command=https://layla.amazon.de/api/notifications
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [alarmvolume] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [bluetoothstate] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getdnd] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [wakeword] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [listitems_task] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [listitems_shopping] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getdevicesettings] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getisonline] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [devices] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [devices] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [devices] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [account] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [account] PushToCmdQueue SendURL =https://alexa-comms-mobile-service.amazon.com/accounts
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [account] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendLoginCommand] [cookielogin6]
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [activities] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1540553801
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [activities] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getbehavior] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/automations?limit=100
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getsettingstraffic] START
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2018.10.26 13:36:41 4: [echomaster] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2018.10.26 13:36:41 4: [echomaster] [echodevice_GetSettings] Timer INTERVAL = 60
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [getnotifications]
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [getnotifications] connection error getnotifications https://layla.amazon.de/api/notifications: Too many redirects
2018.10.26 13:36:42 4: [echomaster] [echodevice_HandleCmdQueue] [getsettingstraffic] send command=https://layla.amazon.de/api/traffic/settings
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [getsettingstraffic]
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [getsettingstraffic] connection error getsettingstraffic https://layla.amazon.de/api/traffic/settings: Too many redirects
2018.10.26 13:36:42 4: [echomaster] [echodevice_HandleCmdQueue] [getbehavior] send command=https://layla.amazon.de/api/behaviors/automations?limit=100
2018.10.26 13:36:42 4: [echomaster] [echodevice_ParseAuth] [cookielogin6]
2018.10.26 13:36:42 3: [echomaster] [echodevice_LostConnect] JSON error = no content / set loginerror to 1
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [getbehavior]
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [getbehavior] connection error getbehavior https://layla.amazon.de/api/behaviors/automations?limit=100: Too many redirects
2018.10.26 13:36:42 4: [echomaster] [echodevice_HandleCmdQueue] [activities] send command=https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1540553801
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [activities]
2018.10.26 13:36:42 4: [echomaster] [echodevice_Parse] [activities] connection error activities https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1540553801: Too many redirects
2018.10.26 13:36:42 4: [echomaster] [echodevice_HandleCmdQueue] [account] send command=https://alexa-comms-mobile-service.amazon.com/accounts
2018.10.26 13:36:43 4: [echomaster] [echodevice_Parse] [account]
2018.10.26 13:36:43 4: [echomaster] [echodevice_Parse] [account] DATA Dumper=$VAR1 = 'User not authenticated';

2018.10.26 13:36:43 4: [echomaster] [echodevice_HandleCmdQueue] [devices] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553801
2018.10.26 13:36:43 4: [echomaster] [echodevice_Parse] [devices]
2018.10.26 13:36:43 4: [echomaster] [echodevice_Parse] [devices] connection error devices https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553801: Too many redirects
2018.10.26 13:36:43 4: [echomaster] [echodevice_HandleCmdQueue] [getisonline] send command=https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553801
2018.10.26 13:36:43 4: [echomaster] [echodevice_Parse] [getisonline]
2018.10.26 13:36:43 4: [echomaster] [echodevice_Parse] [getisonline] connection error getisonline https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553801: Too many redirects
2018.10.26 13:36:43 4: [echomaster] [echodevice_HandleCmdQueue] [getdevicesettings] send command=https://layla.amazon.de/api/device-preferences
2018.10.26 13:36:44 4: [echomaster] [echodevice_Parse] [getdevicesettings]
2018.10.26 13:36:44 4: [echomaster] [echodevice_Parse] [getdevicesettings] connection error getdevicesettings https://layla.amazon.de/api/device-preferences: Too many redirects
2018.10.26 13:36:44 4: [echomaster] [echodevice_HandleCmdQueue] [listitems_shopping] send command=https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1540553801
2018.10.26 13:36:54 4: [echomaster] [echodevice_Parse] [listitems_shopping]
2018.10.26 13:36:54 4: [echomaster] [echodevice_Parse] [listitems_shopping] connection error listitems_shopping read from https://layla.amazon.de:443 timed out
2018.10.26 13:36:54 4: [echomaster] [echodevice_HandleCmdQueue] [listitems_task] send command=https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1540553801

RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

michael.winkler

Ich denke schon dass das Account Device connected ist

2018.10.26 13:36:37 4: [echomaster] [echodevice_Parse] [autocreate_devices] connection error autocreate_devices https://layla.amazon.de/api/devices-v2/device?cached=true&_=1540553797: Too many redirects

Kannst du mal die Zeile 1891 wie folgt abändern?

von

noshutdown      => 1,


nach

noshutdown      => 0,


Bitte danach auch den FHEM Server komplett neustarten.

hetterich

Hallo Michael,

Hans gerade noch einmal probiert.
Random wie oben abgeschaltet.
Shutdown Restart.
Keine Veränderung bei erneutem autocreate.

Danach ein Get Devices.

Auf einmal wurden alle Echos angezeigt.
Noch einmal autocreate und siehe da, alle Geräte wurden sofort blitzschnell angelegt.

Fehlt nach dem anlegen und erfolgreichem Connect eventuell grundsätzlich ein Get Devices?

Peter


KölnSolar

Hallo Michael,
danke für die prompte Antwort.
Tatsächlich geht das echodevoice nun auf connected. Es kommt aber nichts an. Hab z.B. der Einfachheit halber den volume-Befehl benutzt. Wenn ich das so richtig beurteile, sind auch sonstige readings nicht befüllt(also z.B. auch nicht das aktuelle Volume).
Bin jetzt erst mal zeitlich verhindert...
Bis später
Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

michael.winkler

Zitat von: KölnSolar am 26 Oktober 2018, 14:16:17
Hallo Michael,
danke für die prompte Antwort.
Tatsächlich geht das echodevoice nun auf connected. Es kommt aber nichts an. Hab z.B. der Einfachheit halber den volume-Befehl benutzt. Wenn ich das so richtig beurteile, sind auch sonstige readings nicht befüllt(also z.B. auch nicht das aktuelle Volume).
Bin jetzt erst mal zeitlich verhindert...
Bis später
Markus
ok, was sagt das LOG? Sind die Fehlermeldungen mit dem "redircet" jetzt weg?

hetterich

Erstmal Danke für die Unterstützung. (Und verzeiht mir die Rechtschreibung, ich hasse Autovervollständigung)

Ja alles ist sauber.

Habe gerade noch mal mein altes BackUp eingespielt und alles wiederholt.

Nach anlegen des IO (kein connect)
Shutdown Restart (connected)
autocreate_Devices (keine Reaktion, sagt running aber macht gar nichts, redirect error im log)

Get Devices (Sofort Antwort und alle Echos werden angezeigt)
autocreate_Devices (Geräte werden sofort angelegt incl. Readings)

Kein Fehler mehr  Log

Kannst du das Get Devices eventuell vor dem autocreate automatisch ausführen. Schadet ja nicht. Oder in der Doku erwähnen?

Danke für das tolle Modul.

Peter






michael.winkler

Zitat von: hetterich am 26 Oktober 2018, 14:51:51
Erstmal Danke für die Unterstützung. (Und verzeiht mir die Rechtschreibung, ich hasse Autovervollständigung)

Ja alles ist sauber.

Habe gerade noch mal mein altes BackUp eingespielt und alles wiederholt.

Nach anlegen des IO (kein connect)
Shutdown Restart (connected)
autocreate_Devices (keine Reaktion, sagt running aber macht gar nichts, redirect error im log)

Get Devices (Sofort Antwort und alle Echos werden angezeigt)
autocreate_Devices (Geräte werden sofort angelegt incl. Readings)

Kein Fehler mehr  Log

Kannst du das Get Devices eventuell vor dem autocreate automatisch ausführen. Schadet ja nicht. Oder in der Doku erwähnen?

Danke für das tolle Modul.

Peter
Da ist mit Sicherheit ein BUG drin. Ich schaue mir das noch mal an. Du hast hier aber die 0.0.47er Version verwendet ohne weitere Anpassungen, oder?


Nemo0815

Bei mir geht seit gestern auch nichts mehr:

2018.10.26 15:02:21 3: [myEcho] [echodevice_LostConnect] JSON error = no content / set loginerror to 1
2018.10.26 15:02:26 3: [myEcho] [echodevice_LostConnect] JSON error = no content / set loginerror to 2

Hab die neuste Version aufgespielt und den Random Browser auf 0, sowie das device neu erstellt (logge mich mit PW und account ein).

Internals:
   DEF        crypt:524a53040c5xcxcxcccxc48165c0044 crypt:7e51441201xcxcxcx25e550d13
   IODev     
   NAME       myEcho
   NR         307
   NTFY_ORDER 50-myEcho
   STATE      connected
   TYPE       echodevice
   model      ACCOUNT
   OLDREADINGS:
   READINGS:
     2018-10-26 15:00:49   2FACode         not used
     2018-10-26 15:04:28   BrowserLanguage de,en-US;q=0.7,en;q=0.3
     2018-10-26 15:04:28   BrowserUserAgent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
     2018-10-26 15:00:58   COOKIE_STATE    START
     2018-10-26 15:02:21   COOKIE_TYPE     READING
     2018-10-26 15:03:08   autocreate_devices running
     2018-10-26 15:04:27   state           connected
     2018-10-26 15:02:21   version         0.0.47
   helper:
     RUNLOGIN   0
     RUNNING_REQUEST 1
     SERVER     layla.amazon.de
     TWOFA     
     echodevice_refreshvoice 0
     echodevice_refreshvoice_lastdate 1540558946
     CMD_QUEUE:
       HASH(0x4c0b1b0)
       HASH(0x51658e0)
       HASH(0x51eefb0)
       HASH(0x4c0b000)
       HASH(0x4c041e8)
Attributes:
   browser_useragent_random 0
   icon       echo
   room       Amazon

michael.winkler

Zitat von: Nemo0815 am 26 Oktober 2018, 15:05:05
Bei mir geht seit gestern auch nichts mehr:

2018.10.26 15:02:21 3: [myEcho] [echodevice_LostConnect] JSON error = no content / set loginerror to 1
2018.10.26 15:02:26 3: [myEcho] [echodevice_LostConnect] JSON error = no content / set loginerror to 2

Hab die neuste Version aufgespielt und den Random Browser auf 0, sowie das device neu erstellt (logge mich mit PW und account ein).

Internals:
   DEF        crypt:524a53040c5xcxcxcccxc48165c0044 crypt:7e51441201xcxcxcx25e550d13
   IODev     
   NAME       myEcho
   NR         307
   NTFY_ORDER 50-myEcho
   STATE      connected
   TYPE       echodevice
   model      ACCOUNT
   OLDREADINGS:
   READINGS:
     2018-10-26 15:00:49   2FACode         not used
     2018-10-26 15:04:28   BrowserLanguage de,en-US;q=0.7,en;q=0.3
     2018-10-26 15:04:28   BrowserUserAgent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
     2018-10-26 15:00:58   COOKIE_STATE    START
     2018-10-26 15:02:21   COOKIE_TYPE     READING
     2018-10-26 15:03:08   autocreate_devices running
     2018-10-26 15:04:27   state           connected
     2018-10-26 15:02:21   version         0.0.47
   helper:
     RUNLOGIN   0
     RUNNING_REQUEST 1
     SERVER     layla.amazon.de
     TWOFA     
     echodevice_refreshvoice 0
     echodevice_refreshvoice_lastdate 1540558946
     CMD_QUEUE:
       HASH(0x4c0b1b0)
       HASH(0x51658e0)
       HASH(0x51eefb0)
       HASH(0x4c0b000)
       HASH(0x4c041e8)
Attributes:
   browser_useragent_random 0
   icon       echo
   room       Amazon

Ohne Logs und ein html Result kann ich nichts dazu sagen. Eventuell auch mal in die Doku schauen

https://mwinkler.jimdo.com/smarthome/eigene-module/echodevice/#Login_captcha

hetterich

Hallo Michael,
zur Ergänzung.
Das Attribut Browser user agent random hab ich sofort nach dem defineauf 0 gesetzt. D.H. vor dem Shutdown zum erfolgreichem Connect.

Hat aber keinen Einfluss auf das nötige Get Devices gehabt

Peter