[37_echodevice] Amazon Echo Modul (nicht Alexa)

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

Vorheriges Thema - Nächstes Thema

Marlen

Zitat von: Marlen am 25 September 2018, 12:23:52
Von alleine hat sich das dann nicht mehr connected! Ist das so richtig?

Hallo???

cs-online

...bei mir war das heute morgen auch auf disconnected, konnte aber mit "normalem" set Login wieder connecten... seither noch keine Probleme
FHEM auf RPI 4 4GB, HM-WLAN-Gateway, einige HM-Aktoren,2x EBUSD an Heizung+Solar, ESP8266 am Strom-,Gas-,Wasserzähler, in WLAN-Steckdosen und Relaisleisten, Sonoff S20, Shelly1,2 und 2.5,Lacrosse-Gateway und Sensoren,Sduino,Alexa-Fhem,Huawei PV mit Speicher, alles auf einem RPI und da geht noch mehr

Marlen

Und das set .... login muss man selbst machen????

Also ist das normal, dass nach 14 Wochen der "Token" abläuft und man tätig werden muss?

LG
  Marlen

michael.winkler

Nein, ist es nicht. Aber ohne LOG usw. auch schwer zu sagen warum das so ist. Welche Version setzt Ihr ein?

Marlen

Hab die 4.2 aber ich musste ja ein captcha lösen!

Gesendet von meinem Aquaris U Plus mit Tapatalk


michael.winkler

Zitat von: Marlen am 26 September 2018, 13:07:00
Hab die 4.2 aber ich musste ja ein captcha lösen!

Gesendet von meinem Aquaris U Plus mit Tapatalk
OK, dann ist es ja klar warum es nicht automatisch funktioniert hat.

michael.winkler

Heute gab es ja mit Amazon div. Probleme. In meinem LOG hat sich das so gezeigt:

2018.09.26 09:29:47.905 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:30:38.240 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 09:32:47.987 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:33:38.420 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 09:34:48.000 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:35:48.004 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 09:36:48.009 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 3
2018.09.26 09:37:48.014 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 4
2018.09.26 09:38:38.807 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 4 to 0
2018.09.26 09:39:48.024 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:40:39.516 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 09:43:48.035 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:44:48.064 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 09:45:48.124 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 3
2018.09.26 09:46:38.823 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 3 to 0
2018.09.26 09:49:48.324 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:50:39.156 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 09:51:48.453 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:52:48.512 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 09:53:39.335 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 2 to 0
2018.09.26 09:55:48.726 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 09:56:48.730 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 09:57:39.556 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 2 to 0
2018.09.26 10:04:49.460 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:05:40.155 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 10:06:49.520 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:07:49.524 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 10:08:40.249 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 2 to 0
2018.09.26 10:13:50.122 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:14:40.904 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 10:16:50.393 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:17:41.111 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 10:18:50.449 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:19:41.440 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0
2018.09.26 10:27:50.664 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:28:50.666 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 10:29:50.668 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 3
2018.09.26 10:30:41.409 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 3 to 0
2018.09.26 10:32:50.799 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:33:50.800 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 2
2018.09.26 10:34:41.517 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 2 to 0
2018.09.26 10:43:51.564 3: [Amazon.Connect] [echodevice_LostConnect] connection error = connect to https://layla.amazon.de:443 timed out / set loginerror to 1
2018.09.26 10:44:42.275 3: [Amazon.Connect] [echodevice_ParseAuth] reset loginerror from 1 to 0


Nur so als Info. Mein Cookie hat das überlebt.

Gruß
Michael

MadMax-FHEM

Ich habe nur gemerkt, dass alle meine Dots "kein Internet" hatten.
Mein Echo ging problemlos...

Jetzt gehen wieder alle...

Modul hatte keine merklichen Probleme (connected), hatte aber in der Zeit anderes zu tun ;)

Fehlermeldungen hab/hatte ich auch aber weiterhin connected :)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

Marlen

Ich bin dabei ein DOIF zu schreiben, was mich
1. daran erinnert das mein Amazon disconnected ist
2. einen link schickt, wo ich den Captcha lösen kann und per Telegram an FHEM schicke.

Aber leider geht das nicht! Löst irgendwie nicht aus!

Kann mir da jemand helfen?

defmod Account_do DOIF ([echo42:COOKIE_STATE] ne "OK")\
(attr Alexa_Dialog disable 1)\
(attr echo42 disable 1)\
(attr echo42 browser_save_data 1)\
(set echo42 login)\
(set teleBot msg @123123123 Amazon Account: disconnected \n Bitte Captcha lösen: \n http://192.168.178.150:8083/fhem/echodevice/results/echo42_cookielogin4.html \n \n Schreibe "Code xxxxx")\
\
DOELSEIF \
([teleBot:msgText] =~ "Code" and [?teleBot:msgChat] eq "Marlen" )\
(set teleBot msg @123123123 $EVENT)\
{my @datas = split("Code ","[teleBot:msgText]","");;\
fhem "set echo42 loginwithcaptcha $datas[1]";;}\
\
DOELSEIF\
([echo42:COOKIE_STATE] eq "OK")\
(attr Alexa_Dialog disable 0)\
(attr echo42 disable 0)\
(attr echo42 browser_save_data 0)
attr Account_do room Amazon
attr Account_do wait 0,300,5,5,5:0:0,300,1,1,1

setstate Account_do initialized
setstate Account_do 2018-09-26 16:10:10 cmd 0
setstate Account_do 2018-09-26 16:10:10 mode enabled
setstate Account_do 2018-09-26 16:10:10 state initialized



LG
Marlen

pc1246

Hallo Marlen
Kannst nicht auch Du einfach ein list schicken, wenn Du eine Frage hast? Abgesehen davon, ist es ja hier auch eher OT!
Gruss Christoph
HP T610
Onkyo_AVR;3 Enigma2; SB_Server ; SB_Player; HM-USB mit 15 HM-CC-RT-DN, 3 HM_WDS10_TH_O, 6 HM-Sec-SCo, 4 HM-Sec-MDIR-2, 1 HM-Sen-MDIR-O-2, 8 Ferion 5000 OW ; PhilipsTV; 4 harmony hub; Jeelink mit 9 PCA301; Somfy; S7-300; 3 LGW; HUE; HM-IP auf Charly

Marlen

Hier das list:
Internals:
   CFGFN     
   DEF        ([echo42:COOKIE_STATE] ne "OK")
(attr Alexa_Dialog disable 1)
(attr echo42 disable 1)
(attr echo42 browser_save_data 1)
(set echo42 login)
(set teleBot msg @12312312 Amazon Account: disconnected \n Bitte Captcha lösen: \n http://192.168.178.150:8083/fhem/echodevice/results/echo42_cookielogin4.html \n \n Schreibe "Code xxxxx")

DOELSEIF
([teleBot:msgText] =~ "Code" and [?teleBot:msgChat] eq "Marlen" )
(set teleBot msg @12312312 $EVENT)
{my @datas = split("Code ","[teleBot:msgText]","");
fhem "set echo42 loginwithcaptcha $datas[1]";}

DOELSEIF
([echo42:COOKIE_STATE] eq "OK")
(attr Alexa_Dialog disable 0)
(attr echo42 disable 0)
(attr echo42 browser_save_data 0)
   MODEL      FHEM
   NAME       Account_do
   NR         5626
   NTFY_ORDER 50-Account_do
   STATE      initialized
   TYPE       DOIF
   READINGS:
     2018-09-26 17:29:19   Device          echo42
     2018-09-26 16:10:10   cmd             0
     2018-09-26 16:10:10   mode            enabled
     2018-09-26 16:10:10   state           initialized
   Regex:
   attr:
     cmdState:
     wait:
       0:
         0
         300
         5
         5
         5
       1:
         0
       2:
         0
         300
         1
         1
         1
     waitdel:
   condition:
     0          ReadingValDoIf($hash,'echo42','COOKIE_STATE') ne "OK"
     1          ReadingValDoIf($hash,'teleBot','msgText') =~ "Code" and ReadingValDoIf($hash,'teleBot','msgChat') eq "Marlen"
     2          ReadingValDoIf($hash,'echo42','COOKIE_STATE') eq "OK"
   devices:
     0           echo42
     1           teleBot
     2           echo42
     all         echo42 teleBot
   do:
     0:
       0          attr Alexa_Dialog disable 1
       1          attr echo42 disable 1
       2          attr echo42 browser_save_data 1
       3          set echo42 login
       4          set teleBot msg @240968237 Amazon Account: disconnected \n Bitte Captcha lösen: \n http://192.168.178.150:8083/fhem/echodevice/results/echo42_cookielogin4.html \n \n Schreibe "Code xxxxx"
     1:
       0          set teleBot msg @12312312 $EVENT
       1          {my @datas = split("Code ","[teleBot:msgText]",""); fhem "set echo42 loginwithcaptcha $datas[1]";}
     2:
       0          attr Alexa_Dialog disable 0
       1          attr echo42 disable 0
       2          attr echo42 browser_save_data 0
     3:
   helper:
     event      connected
     globalinit 1
     last_timer 0
     sleeptimer -1
     triggerDev echo42
     triggerEvents:
       connected
     triggerEventsState:
       state: connected
   internals:
   itimer:
   readings:
     0           echo42:COOKIE_STATE
     1           teleBot:msgText
     2           echo42:COOKIE_STATE
     all         echo42:COOKIE_STATE teleBot:msgText
   trigger:
   uiState:
   uiTable:
Attributes:
   room       Amazon
   wait       0,300,5,5,5:0:0,300,1,1,1


Was meinst du mit OT?

LG
  Marlen

pc1246

Moin
OT = Off Topic
Ich sehe erst mal nur, dass Du beim 3. wait 5 Parameter hast, aber nur drei brauchst. Hast du mal ins log geschaut?
Noch eine Frage als DAU (duemmst anzunehmender User): Schickst Du wirklich das Captcha per Telegramm und traegst es ein? Das finde ich extrem cool!
Gruss Christoph
HP T610
Onkyo_AVR;3 Enigma2; SB_Server ; SB_Player; HM-USB mit 15 HM-CC-RT-DN, 3 HM_WDS10_TH_O, 6 HM-Sec-SCo, 4 HM-Sec-MDIR-2, 1 HM-Sen-MDIR-O-2, 8 Ferion 5000 OW ; PhilipsTV; 4 harmony hub; Jeelink mit 9 PCA301; Somfy; S7-300; 3 LGW; HUE; HM-IP auf Charly

Marlen



Zitat von: pc1246 am 26 September 2018, 20:22:15
Schickst Du wirklich das Captcha per Telegramm und traegst es ein? Das finde ich extrem cool!
Gruss Christoph

Ja, warum? Nicht gut?

Gesendet von meinem Aquaris U Plus mit Tapatalk


steffen83

Hallo, habe leider nichts dazu gefunden. Aber habe ich mit dem Modul (oder kennt ihr eins) die Möglichkeit dem Echo Show sagen kann "Alexa, Bildschirm aus" z.B. täglich ab 21 Uhr?
Wenn ja, wie?
Gruß
Steffen
Raspberry Pi 3 (Noobs, aktuelle Fhem und Pilight) | FHEMduino | HM-OCCU-SDK | HM-Sec-SCo | HM-Sec-SD-2 | HM-CC-RT-DN | HM-LC-Bl1PBU-FM

cs-online

das wird wohl (zumindest noch ein Weilchen, bis Amazon den neuen SmartHome-Skill raus hat) im Moment nur mit dem Alexa-FHEM Skill gehen...
FHEM auf RPI 4 4GB, HM-WLAN-Gateway, einige HM-Aktoren,2x EBUSD an Heizung+Solar, ESP8266 am Strom-,Gas-,Wasserzähler, in WLAN-Steckdosen und Relaisleisten, Sonoff S20, Shelly1,2 und 2.5,Lacrosse-Gateway und Sensoren,Sduino,Alexa-Fhem,Huawei PV mit Speicher, alles auf einem RPI und da geht noch mehr