Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Blockly] Skript für "Sprich mir nach" auf beliebigem Echo

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Blockly] Skript für "Sprich mir nach" auf beliebigem Echo

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

      Achtung: Seit heute bekomme ich hier eine Endlosschleife, wenn ich versuche mit meinem Skript versuche eine Ausgabe auf einen anderen Echo umzuleiten. 😞
      Habe keine Ahnung, woran das liegt, wollte aber mal kurz Bescheid geben, evtl. gab is irgendeine Änderung seitens amazon... vielleich auch nur ein lokales Problem meinerseits.
      Wenn/falls ich etwas rausbekomme, melde ich mich... 😳
      Hier noch ein Log von den JS Fehlern:

      javascript.0	2019-09-17 12:55:41.960	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.959	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.959	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.959	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.959	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.957	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:41.811	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.811	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.811	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.811	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.811	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.810	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:41.674	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.674	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.674	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.674	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.674	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.674	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:41.539	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.539	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.539	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.538	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.538	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.538	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:41.408	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.408	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.408	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.408	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.408	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.408	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:41.285	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.285	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.285	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.285	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.284	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.283	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:41.109	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:41.109	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:41.109	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:41.108	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:41.108	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:41.104	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.971	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.971	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.971	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.971	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.971	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.970	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.836	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.835	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.835	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.835	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.835	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.835	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.835	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.835	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.835	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.835	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.835	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.833	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.566	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.566	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.566	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.566	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.566	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.565	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.434	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.433	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.433	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.433	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.433	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.432	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.275	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.275	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.275	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.272	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.272	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.271	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.141	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.141	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.141	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.141	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.140	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.140	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:40.006	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:40.006	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:40.006	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:40.006	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:40.006	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:40.004	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:39.868	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:39.868	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:39.868	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:39.868	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:39.867	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:39.866	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      javascript.0	2019-09-17 12:55:39.730	error	at Timer.listOnTimeout (timers.js:290:5)
      javascript.0	2019-09-17 12:55:39.729	error	at tryOnTimeout (timers.js:323:5)
      javascript.0	2019-09-17 12:55:39.729	error	at ontimeout (timers.js:511:34)
      javascript.0	2019-09-17 12:55:39.729	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1855:34)
      javascript.0	2019-09-17 12:55:39.729	error	at Object.<anonymous> (script.js.common.sprich_mir_nach:21:30)
      javascript.0	2019-09-17 12:55:39.727	error	Error in callback: TypeError: Cannot read property 'toUpperCase' of null
      
      thewhobox 1 Reply Last reply Reply Quote 0
      • thewhobox
        thewhobox @padrino last edited by

        @padrino in Zeile 21 ist eine Variable (vor toUpperCase) Null.
        Hast du vll noch den passenden Code dazu?

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

          @thewhobox
          Sorry, habe Deinen Beitrag jetzt er gesehen. 😞

          @all
          Auf jeden Fall mal Entwarnung.
          Habe mich damit auseinander gesetzt. 🤓
          Der Fehler war, dass ich den Datenpunktbaum des Alexa Adapters an einer anderen Stelle gespiegelt/geklont hatte, damit kam das Skript nicht klar (zu viele falsche Treffer 😇).
          Da das bei Euch vermutlich nicht der Fall sein wird, sollte das Skript auch weiter (zumindest an der Stelle 😉) rund laufen. 😌

          1 Reply Last reply Reply Quote 0
          • Aphofis
            Aphofis @padrino last edited by Aphofis

            @padrino
            Als was wird der Datenpunkt Summary deklariert !?
            und kann sich der Datenpunkt irgendwo befindet ?
            ist es denn so korrekt bis auf den noch nicht verknüpften Datenpunkt Summary???

            Mann Oh Mann Spoiler gefunden, auch den Datenpunkt! Frage hat sich erledigt
            Nur mit dem Aktiveirungswort habe ich nicht ganz verstanden.
            Wo kommt es rein um dan Ecko oder Alexa zu aktivieren mit dem Wort???

            padrino 2 Replies Last reply Reply Quote 0
            • padrino
              padrino Most Active @Aphofis last edited by

              @Aphofis

              Also "summary" ist der Datenpunkt, den der Alexa2 Adapter schon von Haus aus mirbringt, unter

              alexa2.0.History.summary

              Und wieso programmierst Du es nach? Du kannst es doch ganz einfach in Blockly importieren (oder geht es darum zu lernen?).
              Dafür den obigen Quelltext kopieren und dann in einem Blockly blanko Skript einfügen (und nimm V1.5, da musste nicht mehr alle Geräte von Hand eintragen 😉)

              blockly_import.png

              Aphofis 1 Reply Last reply Reply Quote 1
              • Aphofis
                Aphofis @padrino last edited by

                @padrino sagte in "Sprich mir nach" auf Echo XY:

                @Aphofis

                Also "summary" ist der Datenpunkt, den der Alexa2 Adapter schon von Haus aus mirbringt, unter

                alexa2.0.History.summary

                Und wieso programmierst Du es nach? Du kannst es doch ganz einfach in Blockly importieren (oder geht es darum zu lernen?).
                Dafür den obigen Quelltext kopieren und dann in einem Blockly blanko Skript einfügen (und nimm V1.5, da musste nicht mehr alle Geräte von Hand eintragen 😉)

                blockly_import.png

                Ne spoiler nicht gesehen! War ein anstrengender Tag aber so kann man auch lernen.

                1 Reply Last reply Reply Quote 0
                • padrino
                  padrino Most Active @Aphofis last edited by

                  @Aphofis sagte in "Sprich mir nach" auf Echo XY:

                  Mann Oh Mann Spoiler gefunden, auch den Datenpunkt! Frage hat sich erledigt

                  Ok. 😃

                  Nur mit dem Aktiveirungswort habe ich nicht ganz verstanden.
                  Wo kommt es rein um dan Ecko oder Alexa zu aktivieren mit dem Wort???

                  Wie meinste das?
                  Meinst Du den Aufruf?

                  Ein Beispiel (Echo Dot heißt bei mir "Küche Bad"):

                  • Alexa, in Küche sprich mir nach das ist ein test
                  • Alexa, im Bad sprich mir nach kaum zu glauben komma noch ein test
                  Aphofis 1 Reply Last reply Reply Quote 0
                  • Aphofis
                    Aphofis @padrino last edited by

                    @padrino
                    Irgendwie klappt das bei mir nicht!
                    wenn ich sage Ecko im Wohnzimmer sprich mir nach das ist ein test
                    dann kommt nix

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

                      Du hast V1.5 importiert?

                      Was steht denn in "summary" drin, nachdem Du den Befehl gesagt hast (also, was hat Alexa genau verstanden)?

                      (übrigens, dass Alexa evtl. noch dazwischen funkt ist normal und kann ich auch nix dagegen machen, sobald man aber das "ok" hört, sollt es klappen)

                      Aphofis 2 Replies Last reply Reply Quote 0
                      • Aphofis
                        Aphofis @padrino last edited by Aphofis

                        @padrino kommt kein ok!
                        Wenn ich sage: "Ecko im wohnzimmer sprich mir nach kaum zu glauben kommt deding und nix weiter
                        Was ist denn V 1.5 ???
                        Gesehen! Sorry
                        ich importiere mal die Version 1.5 und gucke dann

                        padrino 2 Replies Last reply Reply Quote 0
                        • Aphofis
                          Aphofis @padrino last edited by

                          @padrino
                          Meine Serien Nummern, muss ich wohl anscheinend nicht mehr eingeben !?

                          1 Reply Last reply Reply Quote 0
                          • padrino
                            padrino Most Active @Aphofis last edited by

                            @Aphofis sagte in "Sprich mir nach" auf Echo XY:

                            Was ist denn V 1.5 ???

                            Vielleicht sollte ich die alte Version ganz raus nehmen, verwirrt wohl nur... 😳

                            Wenn es nicht klappt, dann müsste ich wissen, was in Summary steht, um zu schauen, wo der Fehler liegen könnte.
                            summary.png

                            Aphofis 1 Reply Last reply Reply Quote 1
                            • Aphofis
                              Aphofis last edited by

                              Also Ecko sagt nur Ok und er fängt auch an dazwischen zu quatschen aber es kommt dann nur Ok

                              1 Reply Last reply Reply Quote 0
                              • Aphofis
                                Aphofis @padrino last edited by Aphofis

                                @padrino
                                Das steht bei mir drin!
                                Bildschirmfoto 2019-10-08 um 19.59.37.png
                                Obwohl ich sage
                                Ecko im wohnzimmer sprich mir nach das ist ein test

                                Aphofis 1 Reply Last reply Reply Quote 0
                                • Aphofis
                                  Aphofis @Aphofis last edited by

                                  Wenn ich sage Ecko sprich mir nach das ist ein test
                                  dann kommt
                                  das ist ein Test

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

                                    a) schau Dir mal den Datenpunkt live an (der ändert sich ja), steht da evtl. bei Deiner Anfrage das Wort "Echo" mit drin?

                                    b) was sagt der Datenpunkt "speak" von Deinem Echo Wohnzimmer, leer?

                                    Aphofis 1 Reply Last reply Reply Quote 0
                                    • Aphofis
                                      Aphofis @padrino last edited by

                                      @padrino
                                      Wo finde ich denn den Datenpunkt live?

                                      padrino 1 Reply Last reply Reply Quote 0
                                      • padrino
                                        padrino Most Active @Aphofis last edited by

                                        @Aphofis sagte in "Sprich mir nach" auf Echo XY:

                                        Wenn ich sage Ecko sprich mir nach das ist ein test
                                        dann kommt
                                        das ist ein Test

                                        Dann macht es Alexa auch alleine. 😉
                                        Mein Skript springt nur ein, wenn die Ausgabe auf einem anderen Echo sein soll.

                                        Aphofis 1 Reply Last reply Reply Quote 0
                                        • padrino
                                          padrino Most Active @Aphofis last edited by

                                          @Aphofis
                                          Nicht den Datenpunkt "live", Du musst den Datenpunkt summary "live" beobachten. 😉
                                          Der ändert sich schnell.

                                          1. Deine Anfrage
                                          2. sprich mir nach ok

                                          Aber eigentlich, wenn du das "ok" siehst/hörst, dann müsste das Skript funktioniern. Es liegt dann wohl am Ziel(echo), das/der nicht gefunden wird.

                                          1 Reply Last reply Reply Quote 0
                                          • Aphofis
                                            Aphofis @padrino last edited by

                                            @padrino
                                            Hab ich auch versucht.
                                            ich hatte gesagt,
                                            ecko in Küche sprich mir nach das ist ein Test dann sagt Ecko OK und in der Küche passiert nix!
                                            In Summary steht sprich mir nach Ok

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            453
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            74
                                            5883
                                            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