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.
    • haselchen
      haselchen Most Active @Jan1 last edited by

      @Jan1

      Ich bin auch kein Vollprofi beim Blockly .
      Mir macht das Puzzlen einfach Spass 🙂
      Und am Ende zu sehen, dass die Logik wohl stimmt, die man gepuzzled hat 😁

      J 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
        • J
          Jan1 @haselchen last edited by

          @haselchen
          Da hast recht, nur blöd wirds wenn sich das Ding so gar nicht an die ausgedachte Logik hält. Sind eben auch ein paar Blöcke dabei, bei denen man ein paar Definitionen beachten muss. Aber genau so lernt man das eben am schnellsten.

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

            @Uli977 sagte in Alexa, spiele WDR2 im Wohnzimmer:

            AV-Receiver

            Was hast Du für einen AVR ?

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

              @dslraser einen Rotel RSX-1057.
              Alter Ding aber super Klang!

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

                @Uli977
                Okay, ich habe nur gefragt weil es für einige AVR auch Adapter gibt.
                Bei meinem Denon AVR funktioniert das ganze schon von Haus aus so wie Du Dir das wünscht. Alexa, spiele NDR2 auf Denon. (über HEOS)
                Dann bleiben Dir aber trotzdem die Möglichkeiten wie von @Jan1 geschrieben.

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

                  @dslraser ich probiere das heute Abend mal... bin selbst gespannt ob ich es hinbekomme

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

                    @Uli977 sagte in Alexa, spiele WDR2 im Wohnzimmer:

                    @dslraser ich probiere das heute Abend mal... bin selbst gespannt ob ich es hinbekomme

                    Learning by Doing

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

                      @sigi234

                      Ich bekomme es nicht hin....

                      1534b020-1377-48ac-8756-7ab7fcb2dd9c-image.png

                      Wenn Routine 02AlexaRadioRotel
                      steuere/setze Wert activity:Lautsprecher auf 2

                      Das will ich machen, aber ich stolpere gerade über die ganzen Bausteine.

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

                        @Uli977
                        Mathe Baustein, dann 1 (nicht 2) rein

                        1 zum starten (das wird dann automatisch 2 im Adapter)
                        0 zum stoppen/ausschalten

                        das ist der Status
                        Screenshot_20191102-180528_Chrome.jpg

                        Screenshot_20191102-180619_Chrome.jpg
                        https://github.com/Pmant/ioBroker.harmony/blob/master/README.md

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

                          @dslraser Alles klar, das hat schon einmal geklappt..... die Harmony Activity wird gestartet!

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

                            @Uli977
                            ich habe meinen Beitrag oben ergänzt

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

                              @dslraser Danke!

                              Und jetzt setze

                              985b4da3-423e-493a-89e6-26e4f10ae35f-image.png

                              Music Provider auf WDR2

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

                                Ne, scheint der falsche Datenpunkt zu sein....

                                Brauche glaube ich den hier
                                a399cfcc-bdf7-41d8-b36f-20f50ccb9b96-image.png

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

                                  @Uli977

                                  ich mache es so

                                  Bildschirmfoto 2019-11-02 um 18.13.45.png

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

                                    @dslraser Der bleibt bei mir aber immer leer...

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

                                      @Uli977

                                      Bildschirmfoto 2019-11-02 um 18.17.19.png

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

                                        @dslraser warum nimmst du diesen Datenpunkt?

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

                                          @dslraser Ahhh, geht!

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

                                            @dslraser jetzt muss ich Alexa noch verklickern, dass sie sich mit Lautsprecher verbindet..... hast du eine Ahnung wie?

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

                                              @Uli977 sagte in Alexa, spiele WDR2 im Wohnzimmer:

                                              @dslraser warum nimmst du diesen Datenpunkt?

                                              Kannst auch über die Sender ID machen. Es gibt mehrere Wege

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

                                              Support us

                                              ioBroker
                                              Community Adapters
                                              Donate

                                              831
                                              Online

                                              31.9k
                                              Users

                                              80.3k
                                              Topics

                                              1.3m
                                              Posts

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