Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. {gelöst} Alexa, spiele WDR2 im Wohnzimmer

    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

    SOLVED {gelöst} Alexa, spiele WDR2 im Wohnzimmer

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jan1 @haselchen last edited by

      @haselchen sagte in Alexa, spiele WDR2 im Wohnzimmer:

      @Jan1

      😂 😂

      Manchmal ist es eben sehr banal 🤣

      1 Reply Last reply Reply Quote 0
      • dslraser
        dslraser Forum Testing Most Active @Uli977 last edited by dslraser

        @Uli977

        oder so...

        Bildschirmfoto 2019-11-03 um 00.17.26.png

        <xml xmlns="http://www.w3.org/1999/xhtml">
         <variables>
           <variable type="" id="@!_^k9^zFWondd-=a;yB">erstes_wort</variable>
           <variable type="" id="OGOEqOh/EzI.f(,K^lb.">letztes_wort</variable>
         </variables>
         <block type="on_ext" id="MZX#q{Gs.k*hPSsJ9cKU" x="63" y="137">
           <mutation items="1"></mutation>
           <field name="CONDITION">any</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="Iv~|tQUnQir?Y:KkU?E4">
               <field name="oid">alexa2.0.History.summary</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="variables_set" id="7;U{Id?fayG4D/9zacn:">
               <field name="VAR" id="@!_^k9^zFWondd-=a;yB" variabletype="">erstes_wort</field>
               <value name="VALUE">
                 <block type="text_indexOf" id="vu;@JqZ82JhLJ[stQiSM">
                   <field name="END">FIRST</field>
                   <value name="VALUE">
                     <block type="on_source" id="_J|$!h@a#CsIiO`({ebU">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                   <value name="FIND">
                     <shadow type="text" id="u]tclL!.B1zr1L+;EiRO">
                       <field name="TEXT">abc</field>
                     </shadow>
                     <block type="text" id="tH+g7qq:p]jw.fWaQfDz">
                       <field name="TEXT">spiele</field>
                     </block>
                   </value>
                 </block>
               </value>
               <next>
                 <block type="variables_set" id="!^uRN)9I3JiLr9d4~}SJ">
                   <field name="VAR" id="OGOEqOh/EzI.f(,K^lb." variabletype="">letztes_wort</field>
                   <value name="VALUE">
                     <block type="text_indexOf" id="JbIL2yFac?i*^Q2WTg|F">
                       <field name="END">FIRST</field>
                       <value name="VALUE">
                         <block type="on_source" id="Gvg2D-bOcwq5upLm76TR">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="FIND">
                         <shadow type="text" id="u]tclL!.B1zr1L+;EiRO">
                           <field name="TEXT">abc</field>
                         </shadow>
                         <block type="text" id="1]2I2PG:.3LKq!TKaRwq">
                           <field name="TEXT">wohnzimmer</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <next>
                     <block type="controls_if" id="DLE4zW;!}2)dWCZraCs5">
                       <value name="IF0">
                         <block type="logic_operation" id="Jv+_Dj1(/:vNV]F7Sp)~">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="variables_get" id=":8Sky#sE)OaVL^`ki?YC">
                               <field name="VAR" id="@!_^k9^zFWondd-=a;yB" variabletype="">erstes_wort</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="variables_get" id="p9:-dL%0+Dw!sElR15w+">
                               <field name="VAR" id="OGOEqOh/EzI.f(,K^lb." variabletype="">letztes_wort</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="control" id="3X*:XR4h7~R|Ed|,n/tM">
                           <mutation delay_input="true"></mutation>
                           <field name="OID">alexa2.0.Echo-Devices.G0911B0592770T3W.Bluetooth.00:05:CD:FE:7C:8D.connected</field>
                           <field name="WITH_DELAY">TRUE</field>
                           <field name="DELAY_MS">3</field>
                           <field name="UNIT">sec</field>
                           <field name="CLEAR_RUNNING">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="P)c3)R|X@.HJ6|ot;~h^">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
           <next>
             <block type="on_ext" id="Np`X%6sixOMQ%rLG8}f?">
               <mutation items="1"></mutation>
               <field name="CONDITION">any</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="P`oxf1xXZWdEzcp(9-`c">
                   <field name="oid">alexa2.0.History.summary</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="controls_if" id="E^f1*Vai{bZA9HIGp:O]">
                   <value name="IF0">
                     <block type="logic_operation" id="iU-Wq*:zwi)OFmha.0V=" inline="false">
                       <field name="OP">OR</field>
                       <value name="A">
                         <block type="logic_compare" id="Ihx7uP01OIWXc`vDn]Qe">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="Rt(YmF?$i-Fs@BdrAB{]">
                               <field name="ATTR">val</field>
                               <field name="OID">alexa2.0.History.summary</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="text" id="S-8g!7ijnQNnn4vYw6zg">
                               <field name="TEXT">radio im wohnzimmer aus</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id="Vi!)G6^WE!mI2?xNUE^/">
                           <field name="OP">EQ</field>
                           <value name="A">
                             <block type="get_value" id="+#rHESJ]RmF5nD9G(O27">
                               <field name="ATTR">val</field>
                               <field name="OID">alexa2.0.History.summary</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="text" id="CrCbgaq,bZ6jhZ?/p{N]">
                               <field name="TEXT">mach die kiste aus</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="control" id="G44K%t.cT$qWm]`g6$cu">
                       <mutation delay_input="false"></mutation>
                       <field name="OID">alexa2.0.Echo-Devices.G0911B0592770T3W.Player.controlPause</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="logic_boolean" id="}C3ITXps53|IjKF4JG{y">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                       <next>
                         <block type="control" id="R=S~-``,W5]`$8y?!]5o">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">alexa2.0.Echo-Devices.G0911B0592770T3W.Bluetooth.00:05:CD:FE:7C:8D.connected</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="E=KTWyM*gPzKTjaFWC([">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                           <next>
                             <block type="control" id="n4J5Xbe.hFjRwd9-Y_g7">
                               <mutation delay_input="false"></mutation>
                               <field name="OID">denon.0.zoneMain.powerZone</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="logic_boolean" id="{_lrr!ml1h(=)$e{^F]2">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
           </next>
         </block>
        </xml>
        

        Alexa, spiele Radio NDR2 . läßt den ECHO selbst den Sender abspielen.
        Alexa, spiele Radio NDR2 im Wohnzimmer schaltet die Aktion.

        Sollte so gehen

        Uli977 1 Reply Last reply Reply Quote 0
        • Uli977
          Uli977 @Jan1 last edited by

          @Jan1 welchen hat er benannt?

          Aber ich könnte auch im Harmony Adapter vielleicht die Lautärke anpassen... oder?

          J 1 Reply Last reply Reply Quote 0
          • J
            Jan1 @Uli977 last edited by

            @Uli977
            Steht doch oben.
            Da gibts einige Möglichkeiten. Wobei Du auch über das Script die Lautstärke hoch und wieder runter stellen kannst wenn die BT Verbindung getrennt wird. Einfach bisschen damit spielen.

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

              Eine Sache noch... wenn ich das Ganze wieder ausschalte

              be73e2e5-e627-4f52-9928-5c941b9e4293-image.png

              Dann trennt sich die Bluetooth Verbindung - ok
              Die Harmony Aktivität geht wieder aus - ok
              aber Alexa spielt weiter den Radiosender - nicht ok

              Welchen Datenpunkt muss ich ansprechen um das Radiospielen auszuschalten?

              Danke und Gruß!

              dslraser J 3 Replies Last reply Reply Quote 0
              • dslraser
                dslraser Forum Testing Most Active @Uli977 last edited by

                @Uli977 sagte in Alexa, spiele WDR2 im Wohnzimmer:

                Eine Sache noch... wenn ich das Ganze wieder ausschalte

                be73e2e5-e627-4f52-9928-5c941b9e4293-image.png

                Dann trennt sich die Bluetooth Verbindung - ok
                Die Harmony Aktivität geht wieder aus - ok
                aber Alexa spielt weiter den Radiosender - nicht ok

                Welchen Datenpunkt muss ich ansprechen um das Radiospielen auszuschalten?

                Danke und Gruß!

                control Pause

                Screenshot_20191102-195556_Chrome.jpg

                1 Reply Last reply Reply Quote 0
                • dslraser
                  dslraser Forum Testing Most Active @Uli977 last edited by

                  @Uli977
                  für so einfache Verzögerungen kannst Du auch rechts im Baustein einen Haken setzen und da die Verzögerung einstellen

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jan1 @Uli977 last edited by

                    @Uli977
                    Sieht fast so aus als würde alles laufen. War nicht so schwer, oder?

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

                      @Jan1 @haselchen @dslraser

                      Ich danke euch! Es läuft.....
                      Die Kür wäre jetzt, das ich am Anfang sage welchen Sender ich hören möchte und sie das dann spielt.

                      Aber ich kann ja, wenn die Routine gestartet ist, einfach Alexa ansprechen und sie bitten einen anderen Sender zu spielen..... das geht ja auch.

                      War gar nicht sooo schwer!

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        Jan1 @Uli977 last edited by

                        @Uli977
                        Das wird dann aber echt bisschen komplizierter, weil Alexa dazwischen hängt und die eben nur auf den Namen der Routine reagiert. Hier müsste man die Spracherkennung irgendwie vorher umleiten, modifizieren und dann an Alexa schicken.
                        Geht bestimmt, nur hab ich da gerade kein Ansatz im Kopf.

                        Uli977 1 Reply Last reply Reply Quote 0
                        • Uli977
                          Uli977 @Jan1 last edited by

                          @Jan1 Alles gut! Ich lasse es so.

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            Jan1 @Uli977 last edited by

                            @Uli977
                            Warte doch mal, nur weil mir nix dazu einfällt heißt das noch lange nicht, dass es zu kompliziert ist😉

                            Uli977 haselchen 2 Replies Last reply Reply Quote 0
                            • Uli977
                              Uli977 @Jan1 last edited by

                              @Jan1 😊

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

                                @Jan1

                                Könnte man den Summary Datenpunkt triggern?
                                Mit den Blockly Textbausteinen?
                                Darüber könnte man die Sender Filtern.

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jan1 @haselchen last edited by

                                  @haselchen
                                  Geht bestimmt irgendwie. Problem ist eben, dass das Kommsndo von Alexa entgegen genommen wird und wenn die nichts mit anfangen kann, ist schon mal Schluss.
                                  Hier msste man mit dem IObroker Adapter für Sprachbefehle was vorschalten. Das wird aber wieder blöd, weil der ja nur auf "Alexa sage I O Broker bla bla" reagiert.

                                  1 Reply Last reply Reply Quote 0
                                  • dslraser
                                    dslraser Forum Testing Most Active @Uli977 last edited by

                                    @Uli977
                                    wie heißt denn jetzt Deine eigentliche Routine ?

                                    Und wie soll der "Wunschbefehl" heißen ?

                                    Uli977 1 Reply Last reply Reply Quote 0
                                    • Uli977
                                      Uli977 @dslraser last edited by

                                      @dslraser

                                      Mein Routine heißt wie folgt: Alexa, schalte Radio ein

                                      Schöne wäre...

                                      Alexa, spiele Radio Neandertal im Wohnzimmer oder auf Rotel
                                      bzw.
                                      Alexa, spiele WDR2 auf Rotel

                                      dslraser 1 Reply Last reply Reply Quote 0
                                      • dslraser
                                        dslraser Forum Testing Most Active @Uli977 last edited by dslraser

                                        @Uli977 sagte in Alexa, spiele WDR2 im Wohnzimmer:

                                        spiele WDR2 auf Rotel

                                        Bei mir geht der AVR ganz alleine an wenn die Bluetooth Verbindung hergestellt wird (Bluetooth ist im AVR integriert). Bei mir reicht das so...
                                        Sender könnte man beliebig erweitern.

                                        Bildschirmfoto 2019-11-02 um 21.22.39.png

                                        <xml xmlns="http://www.w3.org/1999/xhtml">
                                         <block type="on_ext" id="MZX#q{Gs.k*hPSsJ9cKU" x="87" y="12">
                                           <mutation items="1"></mutation>
                                           <field name="CONDITION">any</field>
                                           <field name="ACK_CONDITION"></field>
                                           <value name="OID0">
                                             <shadow type="field_oid" id="Iv~|tQUnQir?Y:KkU?E4">
                                               <field name="oid">alexa2.0.History.summary</field>
                                             </shadow>
                                           </value>
                                           <statement name="STATEMENT">
                                             <block type="controls_if" id="DLE4zW;!}2)dWCZraCs5">
                                               <value name="IF0">
                                                 <block type="logic_operation" id="Y)6]`Q9xcctJsNJ*n2Xk" inline="false">
                                                   <field name="OP">OR</field>
                                                   <value name="A">
                                                     <block type="logic_operation" id=":Mph^k)JrtbItY5v+-w#" inline="false">
                                                       <field name="OP">OR</field>
                                                       <value name="A">
                                                         <block type="logic_compare" id="Fy6yYtFUO7Y@^J,~(`wR">
                                                           <field name="OP">EQ</field>
                                                           <value name="A">
                                                             <block type="get_value" id="*?.PBWtjh,9}H1NG%6O9">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">alexa2.0.History.summary</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="text" id="|]`u@Mv~9eR).$#v+RDX">
                                                               <field name="TEXT">spiele n. d. r. zwei im wohnzimmer</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="logic_compare" id="Gv;QzXO,u*z39MJJ{1ir">
                                                           <field name="OP">EQ</field>
                                                           <value name="A">
                                                             <block type="get_value" id="RhXIZNAkv7%U*yXC)+SO">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">alexa2.0.History.summary</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="text" id="BST3m|13cQ/vS-08xQq.">
                                                               <field name="TEXT">spiele n. d. r. zwei auf Rothell</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="logic_operation" id="4,ey-=V$-9h74l}qsGEh" inline="false">
                                                       <field name="OP">OR</field>
                                                       <value name="A">
                                                         <block type="logic_compare" id=":fQ~X*n=JWP!Dqk?f7`h">
                                                           <field name="OP">EQ</field>
                                                           <value name="A">
                                                             <block type="get_value" id="q|N4[Pd:E%cgz_?4QtaM">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">alexa2.0.History.summary</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="text" id="le]p7]}?#t^`]{7qg=;=">
                                                               <field name="TEXT">spiele w. d. r. zwei im wohnzimmer</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="logic_compare" id="i)=,{~bT!8w7%Amp=**N">
                                                           <field name="OP">EQ</field>
                                                           <value name="A">
                                                             <block type="get_value" id="1CRKsakAOFQ59X0KxbC5">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">alexa2.0.History.summary</field>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="text" id="O|6g(Q.fGyP?CA.*|_rB">
                                                               <field name="TEXT">spiele w. d. r. zwei auf Rothell</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO0">
                                                 <block type="control" id="3X*:XR4h7~R|Ed|,n/tM">
                                                   <mutation delay_input="false"></mutation>
                                                   <field name="OID">alexa2.0.Echo-Devices.G0911B0592770T3W.Bluetooth.00:05:CD:FE:7C:8D.connected</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="logic_boolean" id="P)c3)R|X@.HJ6|ot;~h^">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </statement>
                                             </block>
                                           </statement>
                                         </block>
                                        </xml>
                                        

                                        Bei Dir müßte man dann wahrscheinlich noch Deine Harmony activity dazwischen schalten. Das hier ist ganz ohne Routine. Also zum testen müßtest Du Deine Routine event. deaktivieren.

                                        Uli977 1 Reply Last reply Reply Quote 0
                                        • Uli977
                                          Uli977 @dslraser last edited by

                                          @dslraser ok.... mein AVR geht nicht an, da ich einen separaten Bluetooth Empfänger an einem der AV Eingänge angeschlossen habe.

                                          Ok... Implementierung nicht ganz verstanden, aber ich schaue mir das Skript mal an

                                          dslraser 2 Replies Last reply Reply Quote 0
                                          • dslraser
                                            dslraser Forum Testing Most Active @Uli977 last edited by

                                            @Uli977

                                            bei Dir dann so ungefähr

                                            Bildschirmfoto 2019-11-02 um 21.32.56.png

                                            Uli977 1 Reply Last reply Reply Quote 0
                                            • Uli977
                                              Uli977 @dslraser last edited by

                                              @dslraser ok, das habe ich.... und dann?

                                              44388851-2e2e-491b-830c-195c52cdd0e1-image.png

                                              dslraser 2 Replies Last reply Reply Quote 0
                                              • First post
                                                Last post

                                              Support us

                                              ioBroker
                                              Community Adapters
                                              Donate

                                              915
                                              Online

                                              31.9k
                                              Users

                                              80.2k
                                              Topics

                                              1.3m
                                              Posts

                                              alexa harmony iobroker
                                              5
                                              87
                                              4071
                                              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