Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Cloud Dienste
    4. Neuer Adapter: iobroker.alexa2

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Neuer Adapter: iobroker.alexa2

    This topic has been deleted. Only users with topic management privileges can see it.
    • Matten Matten
      Matten Matten last edited by

      @Jautze:

      Hallo,

      ging davor auch nicht. Da ging es aber wenn ich es manuell eingetragen habe.

      Komplette VM habe ich auch schon neu gestartet. Trotzdem geht es nicht.

      Habe in meiner Email Adresse ein "-" (Bindestrich) kann es daran liegen?

      Danke und viele Grüße

      Marcel `

      NEIN, habe ich auch. Ich vermute mal das es irgendwas mit der Authentifizierung ist.

      Wenn du dich genau so unter der Webseite amazon.alexa einloggst funktioniert es?

      1 Reply Last reply Reply Quote 0
      • J
        Jautze last edited by

        Hi,

        Ja.

        nur Benutzername (E-Mail Adresse) und Passwort. ohne 2 Faktor ohne Captcha.

        Habe auch das Passwort testweise geändert in den Instanzen und bei Amazon, aber das hat auch nichts geholfen.

        Viele Grüße

        Marcel Jaud

        1 Reply Last reply Reply Quote 0
        • Matten Matten
          Matten Matten last edited by

          @Jautze

          schon das probiert?

          ` > https://github.com/Apollon77/ioBroker.a … /README.md

          Problems with Cookie determination via E-Mail/Password

          Sometimes Amazon has weired checks in place when they detect unexpected traffic on Login. This can result in the problem that a captcha needs to be answered in order to login. Mostly this captcha needs to be answered once and after this the login works without Captcha.

          When you need to answer such a captcha then try to do the following:

          Use a common Browser (e.g. Chrome)

          disable Javascript!

          clear all cookies that may exist for Amazon or use Proivate/Incognito mode of the browser

          call https://alexa.amazon.de

          you should get a login form (normally displayed for older mobile browsers)

          login there with your Amazon credentials where the Echo/Alexa is registered in

          you may need to login twice or solve a Captcha

          At the end you should see "https://alexa.amazon.de/spa/index.html" as URL but without any real content (because JS is still disabled), BUT THIS IS COMPLETELY OK!!!!

          now try to get cookie again

          if it still not works do it again and check the User-Agent and accept-Language from your browser and use those in adapter on next try

          Additionally the Accept-Language-Header (defaults to "de-DE") needs to match with your language/the browser language/the language of the amazon page you login.

          You can also try to play around with the User-Agent and use one which more matches to the system type you use. As example using "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" as User-Agent was reported as working better when ioBroker runs on a linux system.

          You can override all those parameters in the adapter configuration. `

          1 Reply Last reply Reply Quote 0
          • J
            Jautze last edited by

            Hi,

            Leider keine Änderung.

            Viele Grüße

            Marcel

            1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 last edited by

              @Jautze:

              Hallo,

              ich habe ein Problem mit dem Alexa2 Adapter.

              Der Adapter kann sich nicht in Alexa einloggen bzw. bekommt kein Cookie.

              Auszug aus dem Log:

              TypeError: Cannot read property 'alexaCookie' of undefined

              Benutzername und Passwort sind definitiv korrekt. Auch kein 2fa

              Adapter & Instanz neu installiert.

              Node.js

              v6.14.3

              NPM

              v3.10.10

              host.IOBroker	2018-08-14 11:44:27.272	info	Restart adapter system.adapter.alexa2.0 because enabled
              host.IOBroker	2018-08-14 11:44:27.272	error	instance system.adapter.alexa2.0 terminated with code 0 (OK)
              host.IOBroker	2018-08-14 11:44:27.271	error	Caught by controller[0]: at process._tickCallback (internal/process/next_tick.js:104:9)
              host.IOBroker	2018-08-14 11:44:27.271	error	Caught by controller[0]: at _combinedTickCallback (internal/process/next_tick.js:80:11)
              host.IOBroker	2018-08-14 11:44:27.271	error	Caught by controller[0]: at endReadableNT (_stream_readable.js:978:12)
              host.IOBroker	2018-08-14 11:44:27.270	error	Caught by controller[0]: at IncomingMessage.emit (events.js:185:7)
              host.IOBroker	2018-08-14 11:44:27.270	error	Caught by controller[0]: at emitNone (events.js:91:20)
              host.IOBroker	2018-08-14 11:44:27.270	error	Caught by controller[0]: at IncomingMessage. <anonymous>(/opt/iobroker/node_modules/alexa-cookie2/alexa-cookie.js:107:33)
              host.IOBroker	2018-08-14 11:44:27.269	error	Caught by controller[0]: at request (/opt/iobroker/node_modules/alexa-cookie2/alexa-cookie.js:162:25)
              host.IOBroker	2018-08-14 11:44:27.269	error	Caught by controller[0]: at /opt/iobroker/node_modules/alexa-remote2/alexa-remote.js:88:29
              host.IOBroker	2018-08-14 11:44:27.268	error	Caught by controller[0]: TypeError: Cannot read property 'alexaCookie' of undefined
              alexa2.0	2018-08-14 11:44:26.968	debug	Alexa-Cookie: Response (200)
              alexa2.0	2018-08-14 11:44:26.736	debug	Alexa-Cookie: Sending Request with {"host":"alexa.amazon.de","path":"/api/language","method":"GET","headers":{"DNT":"1","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36
              alexa2.0	2018-08-14 11:44:26.734	debug	Alexa-Cookie: Step 4: get CSRF
              alexa2.0	2018-08-14 11:44:26.681	debug	Alexa-Cookie: Response (200)
              alexa2.0	2018-08-14 11:44:26.459	debug	Alexa-Cookie: Sending Request with {"host":"alexa.amazon.de","path":"/spa/index.html","method":"GET","headers":{"DNT":"1","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64)
              alexa2.0	2018-08-14 11:44:26.454	debug	Alexa-Cookie: Response (302) - Redirect to https://alexa.amazon.de/spa/index.html
              alexa2.0	2018-08-14 11:44:26.260	debug	Alexa-Cookie: Sending Request with {"host":"alexa.amazon.de","path":"/?","method":"GET","headers":{"DNT":"1","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/5
              alexa2.0	2018-08-14 11:44:26.259	debug	Alexa-Cookie: Response (302) - Redirect to https://alexa.amazon.de/?
              alexa2.0	2018-08-14 11:44:25.792	debug	Alexa-Cookie: Sending Request with {"host":"www.amazon.de","path":"/ap/signin","method":"POST","headers":{"DNT":"1","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleW
              alexa2.0	2018-08-14 11:44:25.791	debug	Alexa-Cookie: Step 3: login with filled form, referer contains session id
              alexa2.0	2018-08-14 11:44:25.324	debug	Alexa-Cookie: Response (200)
              alexa2.0	2018-08-14 11:44:25.170	debug	Alexa-Cookie: Sending Request with {"host":"www.amazon.de","path":"/ap/signin","method":"POST","headers":{"DNT":"1","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleW
              alexa2.0	2018-08-14 11:44:25.169	debug	Alexa-Cookie: Step 2: login empty to generate session
              alexa2.0	2018-08-14 11:44:24.677	debug	Alexa-Cookie: Response (200)
              alexa2.0	2018-08-14 11:44:24.436	debug	Alexa-Cookie: Sending Request with {"host":"www.amazon.de","path":"/ap/signin?showRmrMe=1&openid.return_to=https%3A%2F%2Falexa.amazon.de%2F&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2
              alexa2.0	2018-08-14 11:44:24.433	debug	Alexa-Cookie: Response (302) - Redirect to https://www.amazon.de/ap/signin?showRmrMe=1&openid.return_to=https%3A%2F%2Falexa.amazon.de%2F&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fid
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Sending Request with {"host":"alexa.amazon.de","path":"","method":"GET","headers":{"DNT":"1","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Step 1: get first cookie and authentication redirect
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Proxy-Mode enabled if needed: 192.168.1.138:8100 to listen on 0.0.0.0
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Use as Accept-Language: de-DE
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Use as User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Use as Alexa-Service-Host: alexa.amazon.de
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Cookie: Use as Login-Amazon-URL: amazon.de
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Remote: No cookie given, generate one
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Remote: Use as Base-URL: alexa.amazon.de
              alexa2.0	2018-08-14 11:44:24.193	debug	Alexa-Remote: Use as Login-Amazon-URL: amazon.de
              alexa2.0	2018-08-14 11:44:24.191	debug	Alexa-Remote: Use as User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
              alexa2.0	2018-08-14 11:44:23.112	info	starting. Version 0.4.0 in /opt/iobroker/node_modules/iobroker.alexa2, node: v6.14.3
              host.IOBroker	2018-08-14 11:44:22.053	info	instance system.adapter.alexa2.0 started with pid 29521</anonymous>
              

              Manuelles eintragen funktioniert leider auch nicht.

              Danke und viele Grüße

              Marcel Jaud `
              Checke ich heute Abend. Bitte abwarten.

              Gesendet vom Handy …

              1 Reply Last reply Reply Quote 0
              • J
                Jautze last edited by

                Hallo,

                ok super danke.

                Viele Grüße

                Marcel Jaud

                1 Reply Last reply Reply Quote 0
                • C
                  caspa last edited by

                  @Jautze: Genau das gleiche Problem habe ich auch. Ich dachte es liebt am Raspberry, also habe ich es auf Windows 10 mal nachgestellt. Leider genau das gleiche. Das Amazon Konto ist nicht durch 2-Faktor geschützt, Password Änderung hatte kein Erfolg.

                  Das riecht nach einem fehlenden NullGuard :shock:

                  1 Reply Last reply Reply Quote 0
                  • L
                    ltsalvatore last edited by

                    versuch mal die 2-faktor auth. zu aktivieren bei amazon und dann wieder deaktivieren.

                    hatte damals auch probleme damit und das hatte dann schlussendlich geholfen.. zumindest bei mir

                    1 Reply Last reply Reply Quote 0
                    • apollon77
                      apollon77 last edited by

                      War ein Code-Fehler der beim grossen Umbau passiert ist … ist im nächsten Update gefixt (spätestens morgen). Bitte im 0.4er Thread schauen 🙂

                      1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 last edited by

                        @apollon77:

                        0.4.0 kommt morgen ins latest Repository.

                        Andere Frage noch: "Playlist" davorschreiben bei den Music-Providern … geht das bei allen Music-providern oder bei welchen geht es?

                        Eine idee wäre noch weitere "Amazon-Music-Playlist" States anzulegen wo das automatisch davorgeschrieben wird 🙂 Aber die Frage ist welche provider das unterstützen. Habt Ihr eine Info? `

                        hat hierzu jemand von Euch eine Meinung? Für welche Music-Provider geht das mit "Playlist" davor schreiben??

                        1 Reply Last reply Reply Quote 0
                        • X
                          Xanon last edited by

                          Also ich habe Spotify.

                          in ioBroker starte ich über meinen Sonos Beam

                          "Vielen Dank auch hier noch einmal, für die integration des Lautsprechers inkl. Commands"

                          Wenn ich in das Object Spotify "Meine Lieblingsmusik" (ist der Name einer Playlist) eintrage, läuft irgendeine (für mich nicht nachvollziehbare) Playlist.

                          Schreibe ich "playlist Meine Lieblingsmusik" wird meine Spotify-Playlist gestartet, allerdings im Shuffle Modus. also nicht nach meiner Sortierung.

                          Shuffle ist deaktiviert.

                          Ist das so gewollt oder mache ich etwas falsch?

                          Wie bekomme ich es hin, dass die entsprechende Playlist von vorn gestartet wird?

                          edit:

                          habe gerade festgestellt, wenn ich die gleiche Playlist auf einem anderen Echo-Gerät starte, startet er die Liste in der richtigen Reihenfolge

                          Also ein Problem mit dem Sonos Beam?

                          Gruß

                          Xanon

                          1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 last edited by

                            Danke für die "Playlist" Info.

                            Zur Frage: versuch doch mal die Playlist per Alexa-App auf dem Sonos zu starten … ist sie da auch geshuffelt? Wenn ja ists Amazon, wenn nein der Adapter 🙂

                            1 Reply Last reply Reply Quote 0
                            • M
                              mikiline last edited by

                              @apollon77:

                              Danke für die "Playlist" Info. `

                              Bei mir scheint es aber auch so zu funktionieren

                              "Alexa, spiele Discover Weekly von spotify zufällig ab"

                              1 Reply Last reply Reply Quote 0
                              • X
                                Xanon last edited by

                                > Zur Frage: versuch doch mal die Playlist per Alexa-App auf dem Sonos zu starten … ist sie da auch geshuffelt? Wenn ja ists Amazon, wenn nein der Adapter :-)
                                Das war's!

                                Zufallswiedergabe in der App war aktiv.

                                Danke

                                1 Reply Last reply Reply Quote 0
                                • apollon77
                                  apollon77 last edited by

                                  Hätte aber der Adapter auch anzeigen sollen als shuffle = true ?!

                                  1 Reply Last reply Reply Quote 0
                                  • X
                                    Xanon last edited by

                                    JAEIN,

                                    Es scheint an Amazon und den nicht voll kompatiblen Sonos Lautsprechern (mit eingebauter Alexa also Sonos Beam) zu legen.

                                    Ich weiss leider nicht, was jetzt voll kompatibel ist und was nicht.

                                    ist auch schwierig herauszufinden,

                                    Ich versuche mal meine Konfiguration im Wohnzimmer zu beschreiben.

                                    Ich habe einen Sonos Beam (mit Alexa integriert) als TV Soundbar.

                                    Zudem habe ich 2 Rear Lautsprecher (2xPlay1) und einen Sonos Sub.

                                    Diese Lautsprecher sind als eine Gruppe "Wohnzimmer" in der Sonos App hinterlegt.

                                    In der Alexa App habe ich den Skill Sonos aktiv und mir werden alle Lautsprecher im Haus angezeigt.

                                    Wohnzimmer = Gruppe (Beam, 2xPlay1 , Sub)

                                    Unter Alexa Geräte ist zudem noch der Beam separat aufgelistet

                                    Wenn ich nun in IOBroker den Adapter alexa2 starte werden alle Lautsprecher aufgelistet.

                                    Also unter anderem:

                                    • Die Gruppe Wohnzimmer

                                    • Der Lautsprecher Sonos Beam(mit Alexa) separat.

                                    Die Objects Listen sehen so aus:

                                    Wohnzimmer:

                                    -Info

                                    -Music-Provider

                                    -Player

                                    online

                                    Sonos Beam:

                                    -Commands

                                    -Info

                                    -Music-Provider

                                    -Player

                                    -Routines

                                    online

                                    Jetzt zur Steuerung in IOBROKER

                                    ändern der objects Wohnzimmer in IoBroker:

                                    -Playlist starten: playlist Meine Lieblingsmusik: passiert nichts.

                                    -TuneIn mit Stationsnamen starten: Radio Hamburg passiert nichts.

                                    -TuneIn mit StationsID starten: s18018 funktioniert.

                                    -Steuerung diverser Funktionen: funktioniert

                                    Player-Informationen werden alle angezeigt und auch aktualisiert.

                                    ändern der objects Sonos-Beam in IoBroker:

                                    -Playlist starten: playlist Meine Lieblingsmusik: funktioniert.

                                    -TuneIn mit Stationsnamen starten: Radio Hamburg funktioniert.

                                    -TuneIn mit StationsID starten: s18018 passiert nichts.

                                    -Steuerung diverser Funktionen: passiert nichts

                                    Player-Informationen werden NICHT angezeigt und auch NICHT aktualisiert.

                                    Ist das nun ein Bug, das manche Funktionen nur mit dem einen Player gehen und andere Funktionen nur mit dem anderen?

                                    P.s.

                                    Shuffle aktualisiert bei diesen Lautsprechern nicht selber: true/false

                                    ich kann es unter Wohnzimmer.Shuffle ein und ausschalten, auch kann ich Alexa sagen: Zufallswiedergabe Ein /Aus.

                                    Dies wird dann auch entsprechend umgesetzt aber der aktuelle Status wird nicht abgefragt / aktualisiert.

                                    Bei keinem meiner Lautsprecher: weder Sonos, noch original Alexa .

                                    Hoffe man versteht, was ich meine :?

                                    1 Reply Last reply Reply Quote 0
                                    • Matten Matten
                                      Matten Matten last edited by

                                      @Xanon:

                                      ` > Dies wird dann auch entsprechend umgesetzt aber der aktuelle Status wird nicht abgefragt / aktualisiert.

                                      Bei keinem meiner Lautsprecher: weder Sonos, noch original Alexa .

                                      das mit der original Alexa kann ich nicht bestätigen, Bei meinem Echo Dot 2.Gen wird auch shuffle auf true gesetzt

                                      sobald ich ihr sage "Zufallswiedergabe Ein"

                                      Gruß

                                      Matten Matten

                                      1 Reply Last reply Reply Quote 0
                                      • X
                                        Xanon last edited by

                                        @Matten Matten:

                                        das mit der original Alexa kann ich nicht bestätigen, Bei meinem Echo Dot 2.Gen wird auch shuffle auf true gesetzt

                                        sobald ich ihr sage "Zufallswiedergabe Ein" `

                                        Ok,

                                        Dann scheint da etwas bei mir nicht zu stimmen.

                                        Danke für die Info.

                                        1 Reply Last reply Reply Quote 0
                                        • haselchen
                                          haselchen Most Active last edited by

                                          @ Apollon77

                                          Bluetooth State wird leider nicht automatisch aktualisiert mit V. 0.4.0

                                          Edit: nicht ganz richtig, nach 2,5min ändert sich der State.

                                          Warum so lange?

                                          Habe über die App meinen Lautsprecher ge- und entkoppelt falls das ne hilfreiche Info ist.

                                          Edit 2:

                                          Was mir noch nach dem Update aufgefallen ist, die Objekte werden generell langsam upgedatet. Alle Objekte werden nach ca. 2,5min upgedatet. Sieht man daran , dass sie kurz grün werden und die Werte sich ändern.

                                          Ist das irgendeine Einstellungssache oder woran könnte es liegen?

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            malc last edited by

                                            Hallo!

                                            Ich habe den genielen Adapter schon einige Zeit im Einsatz. Vor kurzem habe ich mein Amazon Konto auf 2 Faktor Authentifizierung umgestellt und nun bekomme ich seit ein paar Tagen den Adapter nicht mehr ans laufen.

                                            Ich habe auch mal alle Datenpunkte gelöscht und den Adapter neu installiert. Irgendwie häng ich da fest. Die SMS kommen aber wenn ich dann auf dem Link der mir im Browser klicke bekomme ich die Meldung:

                                            Amazon Alexa Cookie successfully retrieved. You can close the browser.
                                            
                                            

                                            Ich hab hab schon den Cache geleert und auch einen anderen Browser genommen, grad weiß ich mir mal keinen Rat. Hat wer einen Tipp?

                                            Version 0.4

                                            Error: You can try to get the cookie manually by opening http://192.168.xxx.xxx:46215/ with your browser.
                                            alexa2.0	2018-08-15 17:44:41.918	error	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 werd
                                            
                                            

                                            Malc

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            1.0k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            76
                                            581
                                            136121
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo