Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [Blockly] Skript für "Sprich mir nach" auf beliebigem Echo

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

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

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

Scheduled Pinned Locked Moved Blockly
74 Posts 9 Posters 8.0k Views 15 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • padrinoP Offline
    padrinoP Offline
    padrino
    Most Active
    wrote on last edited by padrino
    #1

    Hi,

    da ich schon die ganze Zeit mal Echos in anderen Räumen per Sprache etwas sagen lassen wollte, hab' ich mal versucht mir ein Blockly zu basteln. 🙂
    Also, hier mein Ansatz, vielleicht ist er ja noch jemandem nützlich. 😃
    Achja, beim Aufruf gehe ich von folgendem aus:

    Wakeword, xxx Echoname sprich mir nach Wunschtext

    "xxx" kann dabei ein(!) beliebiges Wort sein, wie z.B. "auf", "im", "in"...
    "Echoname" müsst Ihr Euch ausdenken und dann entsprechd im Blockly mit der richtigen Seriennummer verknüpfen. 😉 (nicht mehr nötig ab Version 1.5 - benötigt JavaScript Adapter 4.1.13 oder höher)
    Aktuelle Version: V2.2 (vom 11.03.2021)

    Ürsprünglicher Blockly Code (veraltet!) ist im "Spoiler". 😎

    Viel Spaß damit,
    padrino

    sprich_mir_nach.jpg

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="" id="xci3X!4nlXF:sZ?64H_G">Echo_Name</variable>
        <variable type="" id="u+Fa?OFVu31w|2/cTtG*">Echo_Seriennummer</variable>
      </variables>
      <block type="on" id="fhfKzXrq)P[aOmo9~(rW" x="-1937" y="-512">
        <field name="OID">alexa2.0.History.summary</field>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="OElmPyfLv#/1YKRV;(yB">
            <value name="IF0">
              <block type="logic_compare" id="7|bX(FK%8-kvxd;yxQbo">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="text_indexOf" id="Iu^2N42]m*BM7c;Q2K-m">
                    <field name="END">FIRST</field>
                    <value name="VALUE">
                      <block type="get_value" id="(l7jpF^32#IjwHF;zonD">
                        <field name="ATTR">val</field>
                        <field name="OID">alexa2.0.History.summary</field>
                      </block>
                    </value>
                    <value name="FIND">
                      <shadow type="text" id="1GVke=Zw#PVlU,W6aLH/">
                        <field name="TEXT">bis</field>
                      </shadow>
                      <block type="text" id="(~gUYI,1p[/KsA?AEFaA">
                        <field name="TEXT">sprich mir nach</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="qoffb!hgM^%hj6qW|}p;">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="control_ex" id="sez5|xCaiobR.:f_@XNN">
                <field name="TYPE">false</field>
                <field name="CLEAR_RUNNING">FALSE</field>
                <value name="OID">
                  <shadow type="field_oid" id="fwZLrtqkG5Ro2sbRcbdL">
                    <field name="oid">Object ID</field>
                  </shadow>
                  <block type="text_join" id="Uc(C1*DhkN=(Ej:3;/_{">
                    <mutation items="3"></mutation>
                    <value name="ADD0">
                      <block type="text" id="3N=uEC@l*)_nr#{g4uNp">
                        <field name="TEXT">alexa2.0.Echo-Devices.</field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="get_value" id="mTQ}3#/=?3VG-*}4O,m-">
                        <field name="ATTR">val</field>
                        <field name="OID">alexa2.0.History.serialNumber</field>
                      </block>
                    </value>
                    <value name="ADD2">
                      <block type="text" id="E|q29/u43a=DeTghbcsC">
                        <field name="TEXT">.Commands.speak</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="VALUE">
                  <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                    <field name="BOOL">TRUE</field>
                  </shadow>
                  <block type="text" id="qRG2]*J2z/#-u~eydoca">
                    <field name="TEXT">Ok.</field>
                  </block>
                </value>
                <value name="DELAY_MS">
                  <shadow type="math_number" id="E6wr0Gr)4kRK?U+WJxmQ">
                    <field name="NUM">0</field>
                  </shadow>
                </value>
                <next>
                  <block type="variables_set" id="#(KOcl2PK``7{9,ihtgn">
                    <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                    <value name="VALUE">
                      <block type="text_getSubstring" id="Zf;s@pJw,rWD||Jvmnbk" inline="false">
                        <mutation at1="true" at2="true"></mutation>
                        <field name="WHERE1">FROM_START</field>
                        <field name="WHERE2">FROM_START</field>
                        <value name="STRING">
                          <block type="get_value" id="uxX_JKmQ2Ut%tn[X+go3">
                            <field name="ATTR">val</field>
                            <field name="OID">alexa2.0.History.summary</field>
                          </block>
                        </value>
                        <value name="AT1">
                          <block type="math_arithmetic" id="OYk4;y5{czDP`m+gzp#x">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="text_indexOf" id="8iVOD?ge5zEWtZNYR)Xa">
                                <field name="END">FIRST</field>
                                <value name="VALUE">
                                  <block type="get_value" id="z`*qzQ5VD}D4x2aBmgBa">
                                    <field name="ATTR">val</field>
                                    <field name="OID">alexa2.0.History.summary</field>
                                  </block>
                                </value>
                                <value name="FIND">
                                  <shadow type="text" id="=SDY/u1Y#~]_%{#8u2q?">
                                    <field name="TEXT"> </field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="}zdvVy2;C-Jy`,}Gyhxv">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <value name="AT2">
                          <block type="math_arithmetic" id="SH2qw5Y([Kz61GRYELOb">
                            <field name="OP">MINUS</field>
                            <value name="A">
                              <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="text_indexOf" id="?4FxA-!N!j0aWW@J,Wve">
                                <field name="END">FIRST</field>
                                <value name="VALUE">
                                  <block type="get_value" id="5t07C-miTCblEb7(~GlL">
                                    <field name="ATTR">val</field>
                                    <field name="OID">alexa2.0.History.summary</field>
                                  </block>
                                </value>
                                <value name="FIND">
                                  <shadow type="text" id="frF5wE;Uu[cV+_/+]y;/">
                                    <field name="TEXT">sprich mir nach</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="46zj.O5@$,TNr[sKB%Wy">
                                <field name="NUM">2</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="geG}]-ufGPzpP@6^=bVw">
                        <mutation elseif="3"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="fW4caV)A!+`dLiFg~bfn">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="Ql[tJ[bZ?CLh`KHb,)kB">
                                <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="0/Agn1a7].a,Rhx)nIY?">
                                <field name="TEXT">wohnzimmer</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="P!g)(]st+nmv0UZfs28R">
                            <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                            <value name="VALUE">
                              <block type="text" id="xg)l8Pm#XHH+6!6,MG!a">
                                <field name="TEXT">G090XXXXXXXXXXXX</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_compare" id="!!cFu9dOX/=yhEPQ^w^=">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="!n?[_;P:i)35RG;!UIe#">
                                <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="nU:0EYv*Q4_0H@sMZF|F">
                                <field name="TEXT">küche</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="variables_set" id="#e_TZiz/Rx8(Ar).2L9,">
                            <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                            <value name="VALUE">
                              <block type="text" id="Zf;Wfq|xp*n%z*36XHz`">
                                <field name="TEXT">G090XXXXXXXXXXXX</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF2">
                          <block type="logic_compare" id=",pLk;xxU3Z3Hclu^dZh`">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="N)4zi}0hVrOQ.r96$yW=">
                                <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="}QhS3;B+Qql+-pN38TgG">
                                <field name="TEXT">schlafzimmer</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO2">
                          <block type="variables_set" id="OJg0I9t!rg;1C1*/P{1u">
                            <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                            <value name="VALUE">
                              <block type="text" id="l=6U^^/CKJcP6RsH;{V+">
                                <field name="TEXT">G090XXXXXXXXXXXX</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF3">
                          <block type="logic_compare" id="QxAwY#pUT#I!]7ATNXBW">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="w^V1P07t|9gb*GUt|8$-">
                                <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="Wcv?-G=`b^t==g9N#M.{">
                                <field name="TEXT">italien</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO3">
                          <block type="variables_set" id=".N/Z4]uMF%m$s}wn4rJD">
                            <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                            <value name="VALUE">
                              <block type="text" id="efTH4pq)+D!D*Vdam{Qc">
                                <field name="TEXT">G090XXXXXXXXXXXX</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="control_ex" id="X~Tiu+]Y5hd4Sc;n(jCD">
                            <field name="TYPE">false</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="OID">
                              <shadow type="field_oid" id="t*5aSjuTu%);@{ti5y;O">
                                <field name="oid">Object ID</field>
                              </shadow>
                              <block type="text_join" id="(mf@@!nx}pJB._9;:sQ4">
                                <mutation items="3"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="]]bUZ,MQP=#JQ?3k-:P6">
                                    <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="}kMB/?r2/Bq(SGl|Z~LH">
                                    <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="H60usv-3xC(wpzMX*z:*">
                                    <field name="TEXT">.Commands.speak</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="VALUE">
                              <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                                <field name="BOOL">TRUE</field>
                              </shadow>
                              <block type="text_getSubstring" id="%B5?NrR/^@Yo,^V+%OhP" inline="false">
                                <mutation at1="true" at2="true"></mutation>
                                <field name="WHERE1">FROM_START</field>
                                <field name="WHERE2">FROM_START</field>
                                <value name="STRING">
                                  <block type="get_value" id="(uO~YUVkgC6)YZfZ(O}6">
                                    <field name="ATTR">val</field>
                                    <field name="OID">alexa2.0.History.summary</field>
                                  </block>
                                </value>
                                <value name="AT1">
                                  <block type="math_arithmetic" id=")%)x6|Y|YNte:#s,[#k6">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="text_indexOf" id=",|z]4aSUy?sDT,c1AvJL">
                                        <field name="END">FIRST</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="*c~4e(URYo9ak,}l2poM">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alexa2.0.History.summary</field>
                                          </block>
                                        </value>
                                        <value name="FIND">
                                          <shadow type="text" id="gG59_T:atKMo)MfX?b8R">
                                            <field name="TEXT">sprich mir nach</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="~hv6Rq;ZlwM/_wQTUG?3">
                                        <field name="NUM">16</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <value name="AT2">
                                  <block type="text_length" id="j,aA?;CGsN39IC+!p{+c">
                                    <value name="VALUE">
                                      <shadow type="text" id="j)^dV@z~!#TrZgQK7!.1">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="get_value" id="4@M4|ZN/?CKJVQ?r{njM">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alexa2.0.History.summary</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="DELAY_MS">
                              <shadow type="math_number" id="%fu?CI_z.69W0V8wXiBl">
                                <field name="NUM">0</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
    </xml>
    

    nurChrisN AphofisA 2 Replies Last reply
    5
    • padrinoP Offline
      padrinoP Offline
      padrino
      Most Active
      wrote on last edited by padrino
      #2

      So, und weil's so schön war, hier ist V1.1

      Jetzt kann man auch noch Kommas mit diktieren.
      "Komma" wird dann durch "," ersetzt. 🙂

      <xml xmlns="http://www.w3.org/1999/xhtml">
       <variables>
         <variable type="" id="xci3X!4nlXF:sZ?64H_G">Echo_Name</variable>
         <variable type="" id="b7aB$`+O!Gi*`TEysg7u">Text</variable>
         <variable type="undefined" id="Intervall">Intervall</variable>
         <variable type="" id="u+Fa?OFVu31w|2/cTtG*">Echo_Seriennummer</variable>
       </variables>
       <block type="comment" id="FOjQ$9KpZ.MP~N%WI;S|" x="-1813" y="12">
         <field name="COMMENT">Version 1.1 (21.06.2019)</field>
         <next>
           <block type="on" id="fhfKzXrq)P[aOmo9~(rW">
             <field name="OID">alexa2.0.History.summary</field>
             <field name="CONDITION">ne</field>
             <field name="ACK_CONDITION"></field>
             <statement name="STATEMENT">
               <block type="controls_if" id="OElmPyfLv#/1YKRV;(yB">
                 <value name="IF0">
                   <block type="logic_compare" id="7|bX(FK%8-kvxd;yxQbo">
                     <field name="OP">GT</field>
                     <value name="A">
                       <block type="text_indexOf" id="Iu^2N42]m*BM7c;Q2K-m">
                         <field name="END">FIRST</field>
                         <value name="VALUE">
                           <block type="get_value" id="(l7jpF^32#IjwHF;zonD">
                             <field name="ATTR">val</field>
                             <field name="OID">alexa2.0.History.summary</field>
                           </block>
                         </value>
                         <value name="FIND">
                           <shadow type="text" id="1GVke=Zw#PVlU,W6aLH/">
                             <field name="TEXT">bis</field>
                           </shadow>
                           <block type="text" id="(~gUYI,1p[/KsA?AEFaA">
                             <field name="TEXT">sprich mir nach</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="qoffb!hgM^%hj6qW|}p;">
                         <field name="NUM">1</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control_ex" id="sez5|xCaiobR.:f_@XNN">
                     <field name="TYPE">false</field>
                     <field name="CLEAR_RUNNING">FALSE</field>
                     <value name="OID">
                       <shadow type="field_oid" id="fwZLrtqkG5Ro2sbRcbdL">
                         <field name="oid">Object ID</field>
                       </shadow>
                       <block type="text_join" id="Uc(C1*DhkN=(Ej:3;/_{">
                         <mutation items="3"></mutation>
                         <value name="ADD0">
                           <block type="text" id="3N=uEC@l*)_nr#{g4uNp">
                             <field name="TEXT">alexa2.0.Echo-Devices.</field>
                           </block>
                         </value>
                         <value name="ADD1">
                           <block type="get_value" id="mTQ}3#/=?3VG-*}4O,m-">
                             <field name="ATTR">val</field>
                             <field name="OID">alexa2.0.History.serialNumber</field>
                           </block>
                         </value>
                         <value name="ADD2">
                           <block type="text" id="E|q29/u43a=DeTghbcsC">
                             <field name="TEXT">.Commands.speak</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="VALUE">
                       <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                         <field name="BOOL">TRUE</field>
                       </shadow>
                       <block type="text" id="qRG2]*J2z/#-u~eydoca">
                         <field name="TEXT">Ok.</field>
                       </block>
                     </value>
                     <value name="DELAY_MS">
                       <shadow type="math_number" id="E6wr0Gr)4kRK?U+WJxmQ">
                         <field name="NUM">0</field>
                       </shadow>
                     </value>
                     <next>
                       <block type="variables_set" id="#(KOcl2PK``7{9,ihtgn">
                         <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                         <value name="VALUE">
                           <block type="text_getSubstring" id="Zf;s@pJw,rWD||Jvmnbk" inline="false">
                             <mutation at1="true" at2="true"></mutation>
                             <field name="WHERE1">FROM_START</field>
                             <field name="WHERE2">FROM_START</field>
                             <value name="STRING">
                               <block type="get_value" id="uxX_JKmQ2Ut%tn[X+go3">
                                 <field name="ATTR">val</field>
                                 <field name="OID">alexa2.0.History.summary</field>
                               </block>
                             </value>
                             <value name="AT1">
                               <block type="math_arithmetic" id="OYk4;y5{czDP`m+gzp#x">
                                 <field name="OP">ADD</field>
                                 <value name="A">
                                   <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                     <field name="NUM">1</field>
                                   </shadow>
                                   <block type="text_indexOf" id="8iVOD?ge5zEWtZNYR)Xa">
                                     <field name="END">FIRST</field>
                                     <value name="VALUE">
                                       <block type="get_value" id="z`*qzQ5VD}D4x2aBmgBa">
                                         <field name="ATTR">val</field>
                                         <field name="OID">alexa2.0.History.summary</field>
                                       </block>
                                     </value>
                                     <value name="FIND">
                                       <shadow type="text" id="=SDY/u1Y#~]_%{#8u2q?">
                                         <field name="TEXT"> </field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <shadow type="math_number" id="}zdvVy2;C-Jy`,}Gyhxv">
                                     <field name="NUM">1</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                             <value name="AT2">
                               <block type="math_arithmetic" id="SH2qw5Y([Kz61GRYELOb">
                                 <field name="OP">MINUS</field>
                                 <value name="A">
                                   <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                     <field name="NUM">1</field>
                                   </shadow>
                                   <block type="text_indexOf" id="?4FxA-!N!j0aWW@J,Wve">
                                     <field name="END">FIRST</field>
                                     <value name="VALUE">
                                       <block type="get_value" id="5t07C-miTCblEb7(~GlL">
                                         <field name="ATTR">val</field>
                                         <field name="OID">alexa2.0.History.summary</field>
                                       </block>
                                     </value>
                                     <value name="FIND">
                                       <shadow type="text" id="frF5wE;Uu[cV+_/+]y;/">
                                         <field name="TEXT">sprich mir nach</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <shadow type="math_number" id="46zj.O5@$,TNr[sKB%Wy">
                                     <field name="NUM">2</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="variables_set" id="adlf:C2Y5g{K6^P5+p7i">
                             <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                             <value name="VALUE">
                               <block type="text_getSubstring" id="%B5?NrR/^@Yo,^V+%OhP" inline="false">
                                 <mutation at1="true" at2="true"></mutation>
                                 <field name="WHERE1">FROM_START</field>
                                 <field name="WHERE2">FROM_START</field>
                                 <value name="STRING">
                                   <block type="get_value" id="(uO~YUVkgC6)YZfZ(O}6">
                                     <field name="ATTR">val</field>
                                     <field name="OID">alexa2.0.History.summary</field>
                                   </block>
                                 </value>
                                 <value name="AT1">
                                   <block type="math_arithmetic" id=")%)x6|Y|YNte:#s,[#k6">
                                     <field name="OP">ADD</field>
                                     <value name="A">
                                       <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                         <field name="NUM">1</field>
                                       </shadow>
                                       <block type="text_indexOf" id=",|z]4aSUy?sDT,c1AvJL">
                                         <field name="END">FIRST</field>
                                         <value name="VALUE">
                                           <block type="get_value" id="*c~4e(URYo9ak,}l2poM">
                                             <field name="ATTR">val</field>
                                             <field name="OID">alexa2.0.History.summary</field>
                                           </block>
                                         </value>
                                         <value name="FIND">
                                           <shadow type="text" id="gG59_T:atKMo)MfX?b8R">
                                             <field name="TEXT">sprich mir nach</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <shadow type="math_number" id="~hv6Rq;ZlwM/_wQTUG?3">
                                         <field name="NUM">16</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="AT2">
                                   <block type="text_length" id="j,aA?;CGsN39IC+!p{+c">
                                     <value name="VALUE">
                                       <shadow type="text" id="j)^dV@z~!#TrZgQK7!.1">
                                         <field name="TEXT">abc</field>
                                       </shadow>
                                       <block type="get_value" id="4@M4|ZN/?CKJVQ?r{njM">
                                         <field name="ATTR">val</field>
                                         <field name="OID">alexa2.0.History.summary</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_setinterval" id="miNtAEzWrW!38@Fp-B9G">
                                 <field name="NAME">Intervall</field>
                                 <field name="INTERVAL">100</field>
                                 <field name="UNIT">ms</field>
                                 <statement name="STATEMENT">
                                   <block type="controls_if" id="WJABBvr$PpnVmb?hJy{j">
                                     <mutation else="1"></mutation>
                                     <value name="IF0">
                                       <block type="logic_compare" id="adB]L*e^Ak90L]+*FV%6">
                                         <field name="OP">NEQ</field>
                                         <value name="A">
                                           <block type="text_indexOf" id="{og:;/:[Cqx+wrF2(TFY">
                                             <field name="END">FIRST</field>
                                             <value name="VALUE">
                                               <block type="variables_get" id="DgWu5m},}mbNlleR?3EI">
                                                 <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                               </block>
                                             </value>
                                             <value name="FIND">
                                               <shadow type="text" id="o`Muku,f[c~VvWr1dTti">
                                                 <field name="TEXT">komma</field>
                                               </shadow>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="G{=)7n#9U/oF-:15YE%x">
                                             <field name="NUM">0</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id="t=7;62256;O%}H}AL@=E">
                                         <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                         <value name="VALUE">
                                           <block type="text_join" id="VOAsg5t?qE1Ov9_]51-V">
                                             <mutation items="4"></mutation>
                                             <value name="ADD0">
                                               <block type="text_getSubstring" id=".pmvED[zCE[x0;tS|./P">
                                                 <mutation at1="false" at2="true"></mutation>
                                                 <field name="WHERE1">FIRST</field>
                                                 <field name="WHERE2">FROM_START</field>
                                                 <value name="STRING">
                                                   <block type="variables_get" id="!04jvOP$ICy9#5.MjkO#">
                                                     <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                   </block>
                                                 </value>
                                                 <value name="AT2">
                                                   <block type="math_arithmetic" id="OVRF/BRjp,$pO3xj5O:g">
                                                     <field name="OP">MINUS</field>
                                                     <value name="A">
                                                       <shadow type="math_number" id="Pbqc_BagmV4#c4CTH)x{">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="text_indexOf" id="Mg~|V66tmym6QlcrH9bt">
                                                         <field name="END">FIRST</field>
                                                         <value name="VALUE">
                                                           <block type="variables_get" id="{gzgQt43s]aDb/wE!+4T">
                                                             <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                           </block>
                                                         </value>
                                                         <value name="FIND">
                                                           <shadow type="text" id="RZ]0E}P0b2qyWw:**/@u">
                                                             <field name="TEXT">komma</field>
                                                           </shadow>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <shadow type="math_number" id="*%~T6x=^6gQlk9*pEv]#">
                                                         <field name="NUM">2</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="ADD1">
                                               <block type="text" id="?.0ya;9n7Q,U6kPWmM$O">
                                                 <field name="TEXT">,</field>
                                               </block>
                                             </value>
                                             <value name="ADD2">
                                               <block type="text_getSubstring" id="UUzSVFg)~7fFhc;c)M?Q">
                                                 <mutation at1="true" at2="true"></mutation>
                                                 <field name="WHERE1">FROM_START</field>
                                                 <field name="WHERE2">FROM_START</field>
                                                 <value name="STRING">
                                                   <block type="variables_get" id="};TEYDX0^eT6`~HpXVEO">
                                                     <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                   </block>
                                                 </value>
                                                 <value name="AT1">
                                                   <block type="math_arithmetic" id="#;JW=Df7YV94qNAUwa~A">
                                                     <field name="OP">ADD</field>
                                                     <value name="A">
                                                       <shadow type="math_number" id="JwLmL+K/3(|#Dz*K/60O">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="text_indexOf" id="Zol|Sko.trB86P.Ax~bb">
                                                         <field name="END">FIRST</field>
                                                         <value name="VALUE">
                                                           <block type="variables_get" id="FTuhD8+RqBvSQpREtRuG">
                                                             <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                           </block>
                                                         </value>
                                                         <value name="FIND">
                                                           <shadow type="text" id="{jndIcu|aOn);?{y;IN:">
                                                             <field name="TEXT">komma</field>
                                                           </shadow>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <shadow type="math_number" id="B{^$FO|D;gb5b;7lwp9*">
                                                         <field name="NUM">5</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <value name="AT2">
                                                   <block type="text_length" id="U`XrIy[-#s$c_}~j?i+(">
                                                     <value name="VALUE">
                                                       <shadow type="text" id="%]AH^~B]}M_Lv8o[(HJ@">
                                                         <field name="TEXT">abc</field>
                                                       </shadow>
                                                       <block type="variables_get" id="@4F*=+Kfcm4K4oM]:OD4">
                                                         <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <statement name="ELSE">
                                       <block type="controls_if" id="geG}]-ufGPzpP@6^=bVw">
                                         <mutation elseif="3"></mutation>
                                         <value name="IF0">
                                           <block type="logic_compare" id="fW4caV)A!+`dLiFg~bfn">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="Ql[tJ[bZ?CLh`KHb,)kB">
                                                 <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="text" id="0/Agn1a7].a,Rhx)nIY?">
                                                 <field name="TEXT">wohnzimmer</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="P!g)(]st+nmv0UZfs28R">
                                             <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                             <value name="VALUE">
                                               <block type="text" id="xg)l8Pm#XHH+6!6,MG!a">
                                                 <field name="TEXT">G090XXXXXXXXXXXX</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <value name="IF1">
                                           <block type="logic_compare" id="!!cFu9dOX/=yhEPQ^w^=">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="!n?[_;P:i)35RG;!UIe#">
                                                 <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="text" id="nU:0EYv*Q4_0H@sMZF|F">
                                                 <field name="TEXT">küche</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO1">
                                           <block type="variables_set" id="#e_TZiz/Rx8(Ar).2L9,">
                                             <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                             <value name="VALUE">
                                               <block type="text" id="Zf;Wfq|xp*n%z*36XHz`">
                                                 <field name="TEXT">G090XXXXXXXXXXXX</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <value name="IF2">
                                           <block type="logic_compare" id=",pLk;xxU3Z3Hclu^dZh`">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="N)4zi}0hVrOQ.r96$yW=">
                                                 <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="text" id="}QhS3;B+Qql+-pN38TgG">
                                                 <field name="TEXT">schlafzimmer</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO2">
                                           <block type="variables_set" id="OJg0I9t!rg;1C1*/P{1u">
                                             <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                             <value name="VALUE">
                                               <block type="text" id="l=6U^^/CKJcP6RsH;{V+">
                                                 <field name="TEXT">G090XXXXXXXXXXXX</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <value name="IF3">
                                           <block type="logic_compare" id="QxAwY#pUT#I!]7ATNXBW">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="w^V1P07t|9gb*GUt|8$-">
                                                 <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="text" id="Wcv?-G=`b^t==g9N#M.{">
                                                 <field name="TEXT">italien</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO3">
                                           <block type="variables_set" id=".N/Z4]uMF%m$s}wn4rJD">
                                             <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                             <value name="VALUE">
                                               <block type="text" id="efTH4pq)+D!D*Vdam{Qc">
                                                 <field name="TEXT">G090XXXXXXXXXXXX</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="control_ex" id="X~Tiu+]Y5hd4Sc;n(jCD">
                                             <field name="TYPE">false</field>
                                             <field name="CLEAR_RUNNING">FALSE</field>
                                             <value name="OID">
                                               <shadow type="field_oid" id="t*5aSjuTu%);@{ti5y;O">
                                                 <field name="oid">Object ID</field>
                                               </shadow>
                                               <block type="text_join" id="(mf@@!nx}pJB._9;:sQ4">
                                                 <mutation items="3"></mutation>
                                                 <value name="ADD0">
                                                   <block type="text" id="]]bUZ,MQP=#JQ?3k-:P6">
                                                     <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                                   </block>
                                                 </value>
                                                 <value name="ADD1">
                                                   <block type="variables_get" id="}kMB/?r2/Bq(SGl|Z~LH">
                                                     <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                                   </block>
                                                 </value>
                                                 <value name="ADD2">
                                                   <block type="text" id="H60usv-3xC(wpzMX*z:*">
                                                     <field name="TEXT">.Commands.speak</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="VALUE">
                                               <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                                                 <field name="BOOL">TRUE</field>
                                               </shadow>
                                               <block type="variables_get" id="}*,nFrxSc{mNg[)m_k+e">
                                                 <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                               </block>
                                             </value>
                                             <value name="DELAY_MS">
                                               <shadow type="math_number" id="%fu?CI_z.69W0V8wXiBl">
                                                 <field name="NUM">0</field>
                                               </shadow>
                                             </value>
                                             <next>
                                               <block type="timeouts_clearinterval" id="a@-/gbH(=bjkDX0({ucu">
                                                 <field name="NAME">Intervall</field>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </statement>
           </block>
         </next>
       </block>
      </xml>
      

      1 Reply Last reply
      1
      • padrinoP Offline
        padrinoP Offline
        padrino
        Most Active
        wrote on last edited by padrino
        #3

        Nabend. 😃
        So, hier gibt's V1.5.

        Was ist neu?
        Nun, man braucht hoffentlich nicht mehr seine Echos alle einzeln einzutragen, denn das Skript sollte sie nun an ihrem Namen automatisch erkennen.
        Beim Namen wird dabei nur auf einen Teil geprüft.
        Also hat man z.B. (wie wir hier) einen Echo mit dem Namen "Küche Bad", dann funktioniert "auf Küche" ebenso wie "im Bad". 😁
        Ein weiterer Effekt, wenn Ihr Eure Geräte alle "Echo xxx" nennt, dann sollte auch ein "auf Echo" eine Ausgabe auf jedem Echo ergeben, der eben "Echo" im Namen hat - konnte ich allerdings nicht testen, in Ermangelung an "Echo"-Geräten. 😌
        Zusätzlich ist es möglich, dass die Ausgabe nun auch auf Multiroomgruppen erfolgt. Aufruf entsprechend "auf Multiroomguppenname sprich mir nach". 😉

        Sollte die neue Version bei Euch Probleme machen, ich bin ganz Ohr und werde versuchen mit meinen bescheidenen Mitteln eine Lösung zu finden. 😃

        Achja, "leider" hat amazon inzwischen das Feature "Ankündigung" eingeführt.
        So kann es vorkommen, dass Alexa (zusätzlich) aus einem "auf/in xxx sprich mir nach" eine (Sprach)Ankündigung macht. 🙄
        Degegen kann ich dummerweise nix tun. 😞

        Es folgt, der Code. 🙂

        <xml xmlns="http://www.w3.org/1999/xhtml">
         <variables>
           <variable type="" id="g@75mC@byP;j@Yas9P6#">Wert_von_Summary</variable>
           <variable type="" id="xci3X!4nlXF:sZ?64H_G">Echo_Name</variable>
           <variable type="" id="b7aB$`+O!Gi*`TEysg7u">Text</variable>
           <variable type="undefined" id="Intervall">Intervall</variable>
           <variable type="" id="@v/?ezVeiXzj^,$=!Nr.">i</variable>
           <variable type="" id="Ru|{8SkwlsBK~^n=lN=G">j</variable>
         </variables>
         <block type="comment" id="FOjQ$9KpZ.MP~N%WI;S|" x="-1774" y="27">
           <field name="COMMENT">Version 1.5 (01.08.2019) by padrino</field>
           <next>
             <block type="on" id="fhfKzXrq)P[aOmo9~(rW">
               <field name="OID">alexa2.0.History.summary</field>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <statement name="STATEMENT">
                 <block type="controls_if" id="OElmPyfLv#/1YKRV;(yB">
                   <value name="IF0">
                     <block type="logic_compare" id="7|bX(FK%8-kvxd;yxQbo">
                       <field name="OP">GT</field>
                       <value name="A">
                         <block type="text_indexOf" id="Iu^2N42]m*BM7c;Q2K-m">
                           <field name="END">FIRST</field>
                           <value name="VALUE">
                             <block type="get_value" id="(l7jpF^32#IjwHF;zonD">
                               <field name="ATTR">val</field>
                               <field name="OID">alexa2.0.History.summary</field>
                             </block>
                           </value>
                           <value name="FIND">
                             <shadow type="text" id="1GVke=Zw#PVlU,W6aLH/">
                               <field name="TEXT">bis</field>
                             </shadow>
                             <block type="text" id="(~gUYI,1p[/KsA?AEFaA">
                               <field name="TEXT">sprich mir nach</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="qoffb!hgM^%hj6qW|}p;">
                           <field name="NUM">1</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="variables_set" id="h%%fY`1`F-k(3dFid2$D">
                       <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                       <value name="VALUE">
                         <block type="get_value" id="B4^M@7u#a-NcXNtHWCVC">
                           <field name="ATTR">val</field>
                           <field name="OID">alexa2.0.History.summary</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="#(KOcl2PK``7{9,ihtgn">
                           <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                           <value name="VALUE">
                             <block type="text_getSubstring" id="Zf;s@pJw,rWD||Jvmnbk" inline="false">
                               <mutation at1="true" at2="true"></mutation>
                               <field name="WHERE1">FROM_START</field>
                               <field name="WHERE2">FROM_START</field>
                               <value name="STRING">
                                 <block type="variables_get" id="Ji)}@9DqKPdd:Q07V8zy">
                                   <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                                 </block>
                               </value>
                               <value name="AT1">
                                 <block type="math_arithmetic" id="OYk4;y5{czDP`m+gzp#x">
                                   <field name="OP">ADD</field>
                                   <value name="A">
                                     <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="text_indexOf" id="8iVOD?ge5zEWtZNYR)Xa">
                                       <field name="END">FIRST</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id="{03*QwTtyH]etX{m.g8x">
                                           <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                                         </block>
                                       </value>
                                       <value name="FIND">
                                         <shadow type="text" id="=SDY/u1Y#~]_%{#8u2q?">
                                           <field name="TEXT"> </field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="}zdvVy2;C-Jy`,}Gyhxv">
                                       <field name="NUM">1</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                               <value name="AT2">
                                 <block type="math_arithmetic" id="SH2qw5Y([Kz61GRYELOb">
                                   <field name="OP">MINUS</field>
                                   <value name="A">
                                     <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="text_indexOf" id="?4FxA-!N!j0aWW@J,Wve">
                                       <field name="END">FIRST</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id="DyDSjPt|@bnzB^qSQH@_">
                                           <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                                         </block>
                                       </value>
                                       <value name="FIND">
                                         <shadow type="text" id="frF5wE;Uu[cV+_/+]y;/">
                                           <field name="TEXT">sprich mir nach</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="46zj.O5@$,TNr[sKB%Wy">
                                       <field name="NUM">2</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="control_ex" id="sez5|xCaiobR.:f_@XNN">
                               <field name="TYPE">false</field>
                               <field name="CLEAR_RUNNING">FALSE</field>
                               <value name="OID">
                                 <shadow type="field_oid" id="fwZLrtqkG5Ro2sbRcbdL">
                                   <field name="oid">Object ID</field>
                                 </shadow>
                                 <block type="text_join" id="Uc(C1*DhkN=(Ej:3;/_{">
                                   <mutation items="3"></mutation>
                                   <value name="ADD0">
                                     <block type="text" id="3N=uEC@l*)_nr#{g4uNp">
                                       <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                     </block>
                                   </value>
                                   <value name="ADD1">
                                     <block type="get_value" id="mTQ}3#/=?3VG-*}4O,m-">
                                       <field name="ATTR">val</field>
                                       <field name="OID">alexa2.0.History.serialNumber</field>
                                     </block>
                                   </value>
                                   <value name="ADD2">
                                     <block type="text" id="E|q29/u43a=DeTghbcsC">
                                       <field name="TEXT">.Commands.speak</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="VALUE">
                                 <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                                   <field name="BOOL">TRUE</field>
                                 </shadow>
                                 <block type="text" id="?q2D1S4|E3/TE;s{`DS$">
                                   <field name="TEXT">Ok.</field>
                                 </block>
                               </value>
                               <value name="DELAY_MS">
                                 <shadow type="math_number" id="E6wr0Gr)4kRK?U+WJxmQ">
                                   <field name="NUM">0</field>
                                 </shadow>
                               </value>
                               <next>
                                 <block type="variables_set" id="adlf:C2Y5g{K6^P5+p7i">
                                   <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                   <value name="VALUE">
                                     <block type="text_getSubstring" id="%B5?NrR/^@Yo,^V+%OhP" inline="false">
                                       <mutation at1="true" at2="true"></mutation>
                                       <field name="WHERE1">FROM_START</field>
                                       <field name="WHERE2">FROM_START</field>
                                       <value name="STRING">
                                         <block type="variables_get" id="7wgz.DE)5`}]#oM{-0w@">
                                           <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                                         </block>
                                       </value>
                                       <value name="AT1">
                                         <block type="math_arithmetic" id=")%)x6|Y|YNte:#s,[#k6">
                                           <field name="OP">ADD</field>
                                           <value name="A">
                                             <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="text_indexOf" id=",|z]4aSUy?sDT,c1AvJL">
                                               <field name="END">FIRST</field>
                                               <value name="VALUE">
                                                 <block type="variables_get" id="rmCu|$APDB4t%b?h-EXm">
                                                   <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                                                 </block>
                                               </value>
                                               <value name="FIND">
                                                 <shadow type="text" id="gG59_T:atKMo)MfX?b8R">
                                                   <field name="TEXT">sprich mir nach</field>
                                                 </shadow>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="~hv6Rq;ZlwM/_wQTUG?3">
                                               <field name="NUM">16</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="AT2">
                                         <block type="text_length" id="j,aA?;CGsN39IC+!p{+c">
                                           <value name="VALUE">
                                             <shadow type="text" id="j)^dV@z~!#TrZgQK7!.1">
                                               <field name="TEXT">abc</field>
                                             </shadow>
                                             <block type="variables_get" id="=nzkN2z+XmGC2RnhdssJ">
                                               <field name="VAR" id="g@75mC@byP;j@Yas9P6#" variabletype="">Wert_von_Summary</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="timeouts_setinterval" id="miNtAEzWrW!38@Fp-B9G">
                                       <field name="NAME">Intervall</field>
                                       <field name="INTERVAL">100</field>
                                       <field name="UNIT">ms</field>
                                       <statement name="STATEMENT">
                                         <block type="controls_if" id="WJABBvr$PpnVmb?hJy{j">
                                           <mutation else="1"></mutation>
                                           <value name="IF0">
                                             <block type="logic_compare" id="adB]L*e^Ak90L]+*FV%6">
                                               <field name="OP">NEQ</field>
                                               <value name="A">
                                                 <block type="text_indexOf" id="{og:;/:[Cqx+wrF2(TFY">
                                                   <field name="END">FIRST</field>
                                                   <value name="VALUE">
                                                     <block type="variables_get" id="DgWu5m},}mbNlleR?3EI">
                                                       <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                     </block>
                                                   </value>
                                                   <value name="FIND">
                                                     <shadow type="text" id="o`Muku,f[c~VvWr1dTti">
                                                       <field name="TEXT">komma</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="G{=)7n#9U/oF-:15YE%x">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="variables_set" id="t=7;62256;O%}H}AL@=E">
                                               <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                               <value name="VALUE">
                                                 <block type="text_join" id="VOAsg5t?qE1Ov9_]51-V">
                                                   <mutation items="4"></mutation>
                                                   <value name="ADD0">
                                                     <block type="text_getSubstring" id=".pmvED[zCE[x0;tS|./P">
                                                       <mutation at1="false" at2="true"></mutation>
                                                       <field name="WHERE1">FIRST</field>
                                                       <field name="WHERE2">FROM_START</field>
                                                       <value name="STRING">
                                                         <block type="variables_get" id="!04jvOP$ICy9#5.MjkO#">
                                                           <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                         </block>
                                                       </value>
                                                       <value name="AT2">
                                                         <block type="math_arithmetic" id="OVRF/BRjp,$pO3xj5O:g">
                                                           <field name="OP">MINUS</field>
                                                           <value name="A">
                                                             <shadow type="math_number" id="Pbqc_BagmV4#c4CTH)x{">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="text_indexOf" id="Mg~|V66tmym6QlcrH9bt">
                                                               <field name="END">FIRST</field>
                                                               <value name="VALUE">
                                                                 <block type="variables_get" id="{gzgQt43s]aDb/wE!+4T">
                                                                   <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                                 </block>
                                                               </value>
                                                               <value name="FIND">
                                                                 <shadow type="text" id="RZ]0E}P0b2qyWw:**/@u">
                                                                   <field name="TEXT">komma</field>
                                                                 </shadow>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <shadow type="math_number" id="*%~T6x=^6gQlk9*pEv]#">
                                                               <field name="NUM">2</field>
                                                             </shadow>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <value name="ADD1">
                                                     <block type="text" id="?.0ya;9n7Q,U6kPWmM$O">
                                                       <field name="TEXT">,</field>
                                                     </block>
                                                   </value>
                                                   <value name="ADD2">
                                                     <block type="text_getSubstring" id="UUzSVFg)~7fFhc;c)M?Q">
                                                       <mutation at1="true" at2="true"></mutation>
                                                       <field name="WHERE1">FROM_START</field>
                                                       <field name="WHERE2">FROM_START</field>
                                                       <value name="STRING">
                                                         <block type="variables_get" id="};TEYDX0^eT6`~HpXVEO">
                                                           <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                         </block>
                                                       </value>
                                                       <value name="AT1">
                                                         <block type="math_arithmetic" id="#;JW=Df7YV94qNAUwa~A">
                                                           <field name="OP">ADD</field>
                                                           <value name="A">
                                                             <shadow type="math_number" id="JwLmL+K/3(|#Dz*K/60O">
                                                               <field name="NUM">1</field>
                                                             </shadow>
                                                             <block type="text_indexOf" id="Zol|Sko.trB86P.Ax~bb">
                                                               <field name="END">FIRST</field>
                                                               <value name="VALUE">
                                                                 <block type="variables_get" id="FTuhD8+RqBvSQpREtRuG">
                                                                   <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                                 </block>
                                                               </value>
                                                               <value name="FIND">
                                                                 <shadow type="text" id="{jndIcu|aOn);?{y;IN:">
                                                                   <field name="TEXT">komma</field>
                                                                 </shadow>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <shadow type="math_number" id="B{^$FO|D;gb5b;7lwp9*">
                                                               <field name="NUM">5</field>
                                                             </shadow>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="AT2">
                                                         <block type="text_length" id="U`XrIy[-#s$c_}~j?i+(">
                                                           <value name="VALUE">
                                                             <shadow type="text" id="%]AH^~B]}M_Lv8o[(HJ@">
                                                               <field name="TEXT">abc</field>
                                                             </shadow>
                                                             <block type="variables_get" id="@4F*=+Kfcm4K4oM]:OD4">
                                                               <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </statement>
                                           <statement name="ELSE">
                                             <block type="controls_forEach" id="~KP4iuN[;V#LrB5hF7r%">
                                               <field name="VAR" id="@v/?ezVeiXzj^,$=!Nr." variabletype="">i</field>
                                               <value name="LIST">
                                                 <block type="selector" id="x{9_a!8.pV[pT.lfZ+y(">
                                                   <field name="TEXT">channel[state.id=alexa2.0.Echo-Devices.*.Commands.speak]</field>
                                                 </block>
                                               </value>
                                               <statement name="DO">
                                                 <block type="variables_set" id="BoVO,+_n*QF~twf/M|3O">
                                                   <field name="VAR" id="Ru|{8SkwlsBK~^n=lN=G" variabletype="">j</field>
                                                   <value name="VALUE">
                                                     <block type="text_join" id="/v4t*CP}tuDD:_K,^M|U">
                                                       <mutation items="2"></mutation>
                                                       <value name="ADD0">
                                                         <block type="text_getSubstring" id=";!mI{,,2[0[prWPf9@(5" inline="false">
                                                           <mutation at1="false" at2="true"></mutation>
                                                           <field name="WHERE1">FIRST</field>
                                                           <field name="WHERE2">FROM_START</field>
                                                           <value name="STRING">
                                                             <block type="variables_get" id="X6{Ts.Pbs,v9@3k8I}{E">
                                                               <field name="VAR" id="@v/?ezVeiXzj^,$=!Nr." variabletype="">i</field>
                                                             </block>
                                                           </value>
                                                           <value name="AT2">
                                                             <block type="text_indexOf" id="e/:GxUq(_TN4MoeO]M?S">
                                                               <field name="END">FIRST</field>
                                                               <value name="VALUE">
                                                                 <block type="variables_get" id="x-*a[s,2SPQ5WNi:oq?o">
                                                                   <field name="VAR" id="@v/?ezVeiXzj^,$=!Nr." variabletype="">i</field>
                                                                 </block>
                                                               </value>
                                                               <value name="FIND">
                                                                 <shadow type="text" id="dm+nwoI9u4T~|!Lz(IZ(">
                                                                   <field name="TEXT">.Commands</field>
                                                                 </shadow>
                                                               </value>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="ADD1">
                                                         <block type="text" id="Xu@WJeey`h2FyXeieZr1">
                                                           <field name="TEXT">Info.name</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="controls_if" id="?dS]Aqv?To%$v;FOb}XF">
                                                       <value name="IF0">
                                                         <block type="logic_compare" id="gx?L{$0hx671N19w%h-v" inline="false">
                                                           <field name="OP">NEQ</field>
                                                           <value name="A">
                                                             <block type="text_indexOf" id="1R68:[/k;%|f/114v^DN" inline="false">
                                                               <field name="END">FIRST</field>
                                                               <value name="VALUE">
                                                                 <block type="text_changeCase" id="-#uODff*%-YCq@7U_}q3">
                                                                   <field name="CASE">UPPERCASE</field>
                                                                   <value name="TEXT">
                                                                     <shadow type="text" id="V,sqOp1hR.j/Nr0t5OA#">
                                                                       <field name="TEXT">abc</field>
                                                                     </shadow>
                                                                     <block type="get_value_var" id="#]e~f2$Sc*O}:p06|/`?">
                                                                       <field name="ATTR">val</field>
                                                                       <value name="OID">
                                                                         <shadow type="text" id="#($Z1dL/5P^o|fV#/lZ.">
                                                                           <field name="TEXT"></field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="~qbxJN/J))0zQl3{5(Z)">
                                                                           <field name="VAR" id="Ru|{8SkwlsBK~^n=lN=G" variabletype="">j</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <value name="FIND">
                                                                 <shadow type="text" id="Xu7is5=?~Q{+2ip9fC(t">
                                                                   <field name="TEXT">abc</field>
                                                                 </shadow>
                                                                 <block type="text_changeCase" id="SMi2!AAiGA$2as/SN@kQ">
                                                                   <field name="CASE">UPPERCASE</field>
                                                                   <value name="TEXT">
                                                                     <shadow type="text" id="V,sqOp1hR.j/Nr0t5OA#">
                                                                       <field name="TEXT">abc</field>
                                                                     </shadow>
                                                                     <block type="variables_get" id="Khc++ExtX)qBbOl!LQlJ">
                                                                       <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="B">
                                                             <block type="math_number" id="CLAXj`4?pj-iu!rJdN7H">
                                                               <field name="NUM">0</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <statement name="DO0">
                                                         <block type="control_ex" id="n_uzWG@(N)_]F0A~!=Ie">
                                                           <field name="TYPE">false</field>
                                                           <field name="CLEAR_RUNNING">FALSE</field>
                                                           <value name="OID">
                                                             <shadow type="field_oid" id="g3_@D*L!}QU+=~%+3_x^">
                                                               <field name="oid">Object ID</field>
                                                             </shadow>
                                                             <block type="text_join" id="N17x+U)^B!)~vF,OMkS2">
                                                               <mutation items="2"></mutation>
                                                               <value name="ADD0">
                                                                 <block type="text_getSubstring" id="QPQNQ2S:6vHbct5d]=ed" inline="false">
                                                                   <mutation at1="false" at2="true"></mutation>
                                                                   <field name="WHERE1">FIRST</field>
                                                                   <field name="WHERE2">FROM_START</field>
                                                                   <value name="STRING">
                                                                     <block type="variables_get" id="XwdG4+Eyt}fY?/yGiT+b">
                                                                       <field name="VAR" id="Ru|{8SkwlsBK~^n=lN=G" variabletype="">j</field>
                                                                     </block>
                                                                   </value>
                                                                   <value name="AT2">
                                                                     <block type="text_indexOf" id="HpYi[*EjVCpYW;k#gizi">
                                                                       <field name="END">FIRST</field>
                                                                       <value name="VALUE">
                                                                         <block type="variables_get" id="FeG=Smp=L05X8`7}YxWM">
                                                                           <field name="VAR" id="Ru|{8SkwlsBK~^n=lN=G" variabletype="">j</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="FIND">
                                                                         <shadow type="text" id="!5r.@5BU^Z{[,q;b#sKP">
                                                                           <field name="TEXT">.Info</field>
                                                                         </shadow>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <value name="ADD1">
                                                                 <block type="text" id="p3FZS)oLOzAg)DDyFVb6">
                                                                   <field name="TEXT">Commands.speak</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="VALUE">
                                                             <shadow type="logic_boolean" id="TLX|*;oi~r_65#6jP-I+">
                                                               <field name="BOOL">TRUE</field>
                                                             </shadow>
                                                             <block type="variables_get" id="-TI|1rh5akK=7%RvO$mj">
                                                               <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u" variabletype="">Text</field>
                                                             </block>
                                                           </value>
                                                           <value name="DELAY_MS">
                                                             <shadow type="math_number" id="@5xD^V/w8IAL%(jE`,.a">
                                                               <field name="NUM">300</field>
                                                             </shadow>
                                                           </value>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                               <next>
                                                 <block type="timeouts_clearinterval" id="a@-/gbH(=bjkDX0({ucu">
                                                   <field name="NAME">Intervall</field>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
           </next>
         </block>
        </xml>
        

        1 Reply Last reply
        1
        • M Offline
          M Offline
          martin
          wrote on last edited by
          #4

          Sehr interessant.
          Leider kann ich das letzte Skript nicht im Blockly importieren.
          Da erhalte ich die Meldung: TypeError: Unknown block type: selector

          thewhoboxT 1 Reply Last reply
          0
          • M martin

            Sehr interessant.
            Leider kann ich das letzte Skript nicht im Blockly importieren.
            Da erhalte ich die Meldung: TypeError: Unknown block type: selector

            thewhoboxT Offline
            thewhoboxT Offline
            thewhobox
            wrote on last edited by
            #5

            @martin Der Block ist im Javascript Adapter erst ab Version 4.1.13 verfügbar.

            Meine Adapter: emby | discovery
            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

            1 Reply Last reply
            1
            • padrinoP padrino

              Hi,

              da ich schon die ganze Zeit mal Echos in anderen Räumen per Sprache etwas sagen lassen wollte, hab' ich mal versucht mir ein Blockly zu basteln. 🙂
              Also, hier mein Ansatz, vielleicht ist er ja noch jemandem nützlich. 😃
              Achja, beim Aufruf gehe ich von folgendem aus:

              Wakeword, xxx Echoname sprich mir nach Wunschtext

              "xxx" kann dabei ein(!) beliebiges Wort sein, wie z.B. "auf", "im", "in"...
              "Echoname" müsst Ihr Euch ausdenken und dann entsprechd im Blockly mit der richtigen Seriennummer verknüpfen. 😉 (nicht mehr nötig ab Version 1.5 - benötigt JavaScript Adapter 4.1.13 oder höher)
              Aktuelle Version: V2.2 (vom 11.03.2021)

              Ürsprünglicher Blockly Code (veraltet!) ist im "Spoiler". 😎

              Viel Spaß damit,
              padrino

              sprich_mir_nach.jpg

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="" id="xci3X!4nlXF:sZ?64H_G">Echo_Name</variable>
                  <variable type="" id="u+Fa?OFVu31w|2/cTtG*">Echo_Seriennummer</variable>
                </variables>
                <block type="on" id="fhfKzXrq)P[aOmo9~(rW" x="-1937" y="-512">
                  <field name="OID">alexa2.0.History.summary</field>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="OElmPyfLv#/1YKRV;(yB">
                      <value name="IF0">
                        <block type="logic_compare" id="7|bX(FK%8-kvxd;yxQbo">
                          <field name="OP">GT</field>
                          <value name="A">
                            <block type="text_indexOf" id="Iu^2N42]m*BM7c;Q2K-m">
                              <field name="END">FIRST</field>
                              <value name="VALUE">
                                <block type="get_value" id="(l7jpF^32#IjwHF;zonD">
                                  <field name="ATTR">val</field>
                                  <field name="OID">alexa2.0.History.summary</field>
                                </block>
                              </value>
                              <value name="FIND">
                                <shadow type="text" id="1GVke=Zw#PVlU,W6aLH/">
                                  <field name="TEXT">bis</field>
                                </shadow>
                                <block type="text" id="(~gUYI,1p[/KsA?AEFaA">
                                  <field name="TEXT">sprich mir nach</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="qoffb!hgM^%hj6qW|}p;">
                              <field name="NUM">1</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control_ex" id="sez5|xCaiobR.:f_@XNN">
                          <field name="TYPE">false</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="OID">
                            <shadow type="field_oid" id="fwZLrtqkG5Ro2sbRcbdL">
                              <field name="oid">Object ID</field>
                            </shadow>
                            <block type="text_join" id="Uc(C1*DhkN=(Ej:3;/_{">
                              <mutation items="3"></mutation>
                              <value name="ADD0">
                                <block type="text" id="3N=uEC@l*)_nr#{g4uNp">
                                  <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="get_value" id="mTQ}3#/=?3VG-*}4O,m-">
                                  <field name="ATTR">val</field>
                                  <field name="OID">alexa2.0.History.serialNumber</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="E|q29/u43a=DeTghbcsC">
                                  <field name="TEXT">.Commands.speak</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="VALUE">
                            <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                              <field name="BOOL">TRUE</field>
                            </shadow>
                            <block type="text" id="qRG2]*J2z/#-u~eydoca">
                              <field name="TEXT">Ok.</field>
                            </block>
                          </value>
                          <value name="DELAY_MS">
                            <shadow type="math_number" id="E6wr0Gr)4kRK?U+WJxmQ">
                              <field name="NUM">0</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="variables_set" id="#(KOcl2PK``7{9,ihtgn">
                              <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                              <value name="VALUE">
                                <block type="text_getSubstring" id="Zf;s@pJw,rWD||Jvmnbk" inline="false">
                                  <mutation at1="true" at2="true"></mutation>
                                  <field name="WHERE1">FROM_START</field>
                                  <field name="WHERE2">FROM_START</field>
                                  <value name="STRING">
                                    <block type="get_value" id="uxX_JKmQ2Ut%tn[X+go3">
                                      <field name="ATTR">val</field>
                                      <field name="OID">alexa2.0.History.summary</field>
                                    </block>
                                  </value>
                                  <value name="AT1">
                                    <block type="math_arithmetic" id="OYk4;y5{czDP`m+gzp#x">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                        <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="text_indexOf" id="8iVOD?ge5zEWtZNYR)Xa">
                                          <field name="END">FIRST</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="z`*qzQ5VD}D4x2aBmgBa">
                                              <field name="ATTR">val</field>
                                              <field name="OID">alexa2.0.History.summary</field>
                                            </block>
                                          </value>
                                          <value name="FIND">
                                            <shadow type="text" id="=SDY/u1Y#~]_%{#8u2q?">
                                              <field name="TEXT"> </field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="}zdvVy2;C-Jy`,}Gyhxv">
                                          <field name="NUM">1</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="AT2">
                                    <block type="math_arithmetic" id="SH2qw5Y([Kz61GRYELOb">
                                      <field name="OP">MINUS</field>
                                      <value name="A">
                                        <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="text_indexOf" id="?4FxA-!N!j0aWW@J,Wve">
                                          <field name="END">FIRST</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="5t07C-miTCblEb7(~GlL">
                                              <field name="ATTR">val</field>
                                              <field name="OID">alexa2.0.History.summary</field>
                                            </block>
                                          </value>
                                          <value name="FIND">
                                            <shadow type="text" id="frF5wE;Uu[cV+_/+]y;/">
                                              <field name="TEXT">sprich mir nach</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="46zj.O5@$,TNr[sKB%Wy">
                                          <field name="NUM">2</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id="geG}]-ufGPzpP@6^=bVw">
                                  <mutation elseif="3"></mutation>
                                  <value name="IF0">
                                    <block type="logic_compare" id="fW4caV)A!+`dLiFg~bfn">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="Ql[tJ[bZ?CLh`KHb,)kB">
                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="text" id="0/Agn1a7].a,Rhx)nIY?">
                                          <field name="TEXT">wohnzimmer</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="P!g)(]st+nmv0UZfs28R">
                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                      <value name="VALUE">
                                        <block type="text" id="xg)l8Pm#XHH+6!6,MG!a">
                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <value name="IF1">
                                    <block type="logic_compare" id="!!cFu9dOX/=yhEPQ^w^=">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="!n?[_;P:i)35RG;!UIe#">
                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="text" id="nU:0EYv*Q4_0H@sMZF|F">
                                          <field name="TEXT">küche</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO1">
                                    <block type="variables_set" id="#e_TZiz/Rx8(Ar).2L9,">
                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                      <value name="VALUE">
                                        <block type="text" id="Zf;Wfq|xp*n%z*36XHz`">
                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <value name="IF2">
                                    <block type="logic_compare" id=",pLk;xxU3Z3Hclu^dZh`">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="N)4zi}0hVrOQ.r96$yW=">
                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="text" id="}QhS3;B+Qql+-pN38TgG">
                                          <field name="TEXT">schlafzimmer</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO2">
                                    <block type="variables_set" id="OJg0I9t!rg;1C1*/P{1u">
                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                      <value name="VALUE">
                                        <block type="text" id="l=6U^^/CKJcP6RsH;{V+">
                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <value name="IF3">
                                    <block type="logic_compare" id="QxAwY#pUT#I!]7ATNXBW">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="w^V1P07t|9gb*GUt|8$-">
                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="text" id="Wcv?-G=`b^t==g9N#M.{">
                                          <field name="TEXT">italien</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO3">
                                    <block type="variables_set" id=".N/Z4]uMF%m$s}wn4rJD">
                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                      <value name="VALUE">
                                        <block type="text" id="efTH4pq)+D!D*Vdam{Qc">
                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="control_ex" id="X~Tiu+]Y5hd4Sc;n(jCD">
                                      <field name="TYPE">false</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="OID">
                                        <shadow type="field_oid" id="t*5aSjuTu%);@{ti5y;O">
                                          <field name="oid">Object ID</field>
                                        </shadow>
                                        <block type="text_join" id="(mf@@!nx}pJB._9;:sQ4">
                                          <mutation items="3"></mutation>
                                          <value name="ADD0">
                                            <block type="text" id="]]bUZ,MQP=#JQ?3k-:P6">
                                              <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="variables_get" id="}kMB/?r2/Bq(SGl|Z~LH">
                                              <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                            </block>
                                          </value>
                                          <value name="ADD2">
                                            <block type="text" id="H60usv-3xC(wpzMX*z:*">
                                              <field name="TEXT">.Commands.speak</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="VALUE">
                                        <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                                          <field name="BOOL">TRUE</field>
                                        </shadow>
                                        <block type="text_getSubstring" id="%B5?NrR/^@Yo,^V+%OhP" inline="false">
                                          <mutation at1="true" at2="true"></mutation>
                                          <field name="WHERE1">FROM_START</field>
                                          <field name="WHERE2">FROM_START</field>
                                          <value name="STRING">
                                            <block type="get_value" id="(uO~YUVkgC6)YZfZ(O}6">
                                              <field name="ATTR">val</field>
                                              <field name="OID">alexa2.0.History.summary</field>
                                            </block>
                                          </value>
                                          <value name="AT1">
                                            <block type="math_arithmetic" id=")%)x6|Y|YNte:#s,[#k6">
                                              <field name="OP">ADD</field>
                                              <value name="A">
                                                <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="text_indexOf" id=",|z]4aSUy?sDT,c1AvJL">
                                                  <field name="END">FIRST</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="*c~4e(URYo9ak,}l2poM">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">alexa2.0.History.summary</field>
                                                    </block>
                                                  </value>
                                                  <value name="FIND">
                                                    <shadow type="text" id="gG59_T:atKMo)MfX?b8R">
                                                      <field name="TEXT">sprich mir nach</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="~hv6Rq;ZlwM/_wQTUG?3">
                                                  <field name="NUM">16</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="AT2">
                                            <block type="text_length" id="j,aA?;CGsN39IC+!p{+c">
                                              <value name="VALUE">
                                                <shadow type="text" id="j)^dV@z~!#TrZgQK7!.1">
                                                  <field name="TEXT">abc</field>
                                                </shadow>
                                                <block type="get_value" id="4@M4|ZN/?CKJVQ?r{njM">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">alexa2.0.History.summary</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="DELAY_MS">
                                        <shadow type="math_number" id="%fu?CI_z.69W0V8wXiBl">
                                          <field name="NUM">0</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </xml>
              

              nurChrisN Offline
              nurChrisN Offline
              nurChris
              wrote on last edited by
              #6

              @padrino Hallo! Sieht interessant aus dein Skript. Habe aber Grundsatz fragen zum Prinzip deines blocklys.
              Ich verstehe den "schreibe" block nicht. Du schreibst in die summary "Alexa2.0.Echo-Devices.Seriennummer.commands.speak"???
              Und dann steuerst du die summary mit "ok".
              Wozu das?
              Da Blick ich grad garnicht durch, würdest du mir das erläutern was es mit den schreibe Blöcken auf sich hat?
              Vielen Dank und beste Grüße
              Chris

              thewhoboxT 1 Reply Last reply
              0
              • nurChrisN nurChris

                @padrino Hallo! Sieht interessant aus dein Skript. Habe aber Grundsatz fragen zum Prinzip deines blocklys.
                Ich verstehe den "schreibe" block nicht. Du schreibst in die summary "Alexa2.0.Echo-Devices.Seriennummer.commands.speak"???
                Und dann steuerst du die summary mit "ok".
                Wozu das?
                Da Blick ich grad garnicht durch, würdest du mir das erläutern was es mit den schreibe Blöcken auf sich hat?
                Vielen Dank und beste Grüße
                Chris

                thewhoboxT Offline
                thewhoboxT Offline
                thewhobox
                wrote on last edited by
                #7

                @nurChris Der Block "Schreiben" nimmt einen String als Objekt-ID (in diesem Fall Alexa2.0.Echo-Devices.XXXX.commands.speak) und schreibt den Wert "Ok" rein.
                Das hat nix mit dem Datenpunkt summery zu tun.

                Meine Adapter: emby | discovery
                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                nurChrisN padrinoP 2 Replies Last reply
                2
                • thewhoboxT thewhobox

                  @nurChris Der Block "Schreiben" nimmt einen String als Objekt-ID (in diesem Fall Alexa2.0.Echo-Devices.XXXX.commands.speak) und schreibt den Wert "Ok" rein.
                  Das hat nix mit dem Datenpunkt summery zu tun.

                  nurChrisN Offline
                  nurChrisN Offline
                  nurChris
                  wrote on last edited by
                  #8

                  @thewhobox Achso! Ok. Dann erschließt sich mir so einiges. Vielen Dank.

                  1 Reply Last reply
                  0
                  • thewhoboxT thewhobox

                    @nurChris Der Block "Schreiben" nimmt einen String als Objekt-ID (in diesem Fall Alexa2.0.Echo-Devices.XXXX.commands.speak) und schreibt den Wert "Ok" rein.
                    Das hat nix mit dem Datenpunkt summery zu tun.

                    padrinoP Offline
                    padrinoP Offline
                    padrino
                    Most Active
                    wrote on last edited by
                    #9

                    @thewhobox
                    Du musst hier aber nicht meinen Support leisten. 😳 😉

                    @nurChris
                    Das ist nur eine Sprachausgabe von "ok" auf dem aktuellen Echo, die ein wenig zurück geben soll, dass alles geklappt hat, und wohl auch um Alexas evtl. unpassende Antwort zu "überschreiben". Kann also auch weggelassen werden. 🙂

                    thewhoboxT 1 Reply Last reply
                    0
                    • padrinoP padrino

                      @thewhobox
                      Du musst hier aber nicht meinen Support leisten. 😳 😉

                      @nurChris
                      Das ist nur eine Sprachausgabe von "ok" auf dem aktuellen Echo, die ein wenig zurück geben soll, dass alles geklappt hat, und wohl auch um Alexas evtl. unpassende Antwort zu "überschreiben". Kann also auch weggelassen werden. 🙂

                      thewhoboxT Offline
                      thewhoboxT Offline
                      thewhobox
                      wrote on last edited by
                      #10

                      @padrino Das waren ja eh allgemeine Fragen und nicht nur speziell auf dein Skript bezogen.
                      Außerdem hab ich die änderungen am JS-Adapter eingebunden und somit mein Support 😉

                      Meine Adapter: emby | discovery
                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      1 Reply Last reply
                      1
                      • padrinoP Offline
                        padrinoP Offline
                        padrino
                        Most Active
                        wrote on last edited by
                        #11

                        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
                        
                        thewhoboxT 1 Reply Last reply
                        0
                        • padrinoP padrino

                          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
                          
                          thewhoboxT Offline
                          thewhoboxT Offline
                          thewhobox
                          wrote on last edited by
                          #12

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

                          Meine Adapter: emby | discovery
                          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                          1 Reply Last reply
                          0
                          • padrinoP Offline
                            padrinoP Offline
                            padrino
                            Most Active
                            wrote on last edited by
                            #13

                            @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
                            0
                            • padrinoP padrino

                              Hi,

                              da ich schon die ganze Zeit mal Echos in anderen Räumen per Sprache etwas sagen lassen wollte, hab' ich mal versucht mir ein Blockly zu basteln. 🙂
                              Also, hier mein Ansatz, vielleicht ist er ja noch jemandem nützlich. 😃
                              Achja, beim Aufruf gehe ich von folgendem aus:

                              Wakeword, xxx Echoname sprich mir nach Wunschtext

                              "xxx" kann dabei ein(!) beliebiges Wort sein, wie z.B. "auf", "im", "in"...
                              "Echoname" müsst Ihr Euch ausdenken und dann entsprechd im Blockly mit der richtigen Seriennummer verknüpfen. 😉 (nicht mehr nötig ab Version 1.5 - benötigt JavaScript Adapter 4.1.13 oder höher)
                              Aktuelle Version: V2.2 (vom 11.03.2021)

                              Ürsprünglicher Blockly Code (veraltet!) ist im "Spoiler". 😎

                              Viel Spaß damit,
                              padrino

                              sprich_mir_nach.jpg

                              <xml xmlns="http://www.w3.org/1999/xhtml">
                                <variables>
                                  <variable type="" id="xci3X!4nlXF:sZ?64H_G">Echo_Name</variable>
                                  <variable type="" id="u+Fa?OFVu31w|2/cTtG*">Echo_Seriennummer</variable>
                                </variables>
                                <block type="on" id="fhfKzXrq)P[aOmo9~(rW" x="-1937" y="-512">
                                  <field name="OID">alexa2.0.History.summary</field>
                                  <field name="CONDITION">ne</field>
                                  <field name="ACK_CONDITION"></field>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="OElmPyfLv#/1YKRV;(yB">
                                      <value name="IF0">
                                        <block type="logic_compare" id="7|bX(FK%8-kvxd;yxQbo">
                                          <field name="OP">GT</field>
                                          <value name="A">
                                            <block type="text_indexOf" id="Iu^2N42]m*BM7c;Q2K-m">
                                              <field name="END">FIRST</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="(l7jpF^32#IjwHF;zonD">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">alexa2.0.History.summary</field>
                                                </block>
                                              </value>
                                              <value name="FIND">
                                                <shadow type="text" id="1GVke=Zw#PVlU,W6aLH/">
                                                  <field name="TEXT">bis</field>
                                                </shadow>
                                                <block type="text" id="(~gUYI,1p[/KsA?AEFaA">
                                                  <field name="TEXT">sprich mir nach</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="qoffb!hgM^%hj6qW|}p;">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="control_ex" id="sez5|xCaiobR.:f_@XNN">
                                          <field name="TYPE">false</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="OID">
                                            <shadow type="field_oid" id="fwZLrtqkG5Ro2sbRcbdL">
                                              <field name="oid">Object ID</field>
                                            </shadow>
                                            <block type="text_join" id="Uc(C1*DhkN=(Ej:3;/_{">
                                              <mutation items="3"></mutation>
                                              <value name="ADD0">
                                                <block type="text" id="3N=uEC@l*)_nr#{g4uNp">
                                                  <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="get_value" id="mTQ}3#/=?3VG-*}4O,m-">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">alexa2.0.History.serialNumber</field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="text" id="E|q29/u43a=DeTghbcsC">
                                                  <field name="TEXT">.Commands.speak</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="VALUE">
                                            <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                                              <field name="BOOL">TRUE</field>
                                            </shadow>
                                            <block type="text" id="qRG2]*J2z/#-u~eydoca">
                                              <field name="TEXT">Ok.</field>
                                            </block>
                                          </value>
                                          <value name="DELAY_MS">
                                            <shadow type="math_number" id="E6wr0Gr)4kRK?U+WJxmQ">
                                              <field name="NUM">0</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="#(KOcl2PK``7{9,ihtgn">
                                              <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                              <value name="VALUE">
                                                <block type="text_getSubstring" id="Zf;s@pJw,rWD||Jvmnbk" inline="false">
                                                  <mutation at1="true" at2="true"></mutation>
                                                  <field name="WHERE1">FROM_START</field>
                                                  <field name="WHERE2">FROM_START</field>
                                                  <value name="STRING">
                                                    <block type="get_value" id="uxX_JKmQ2Ut%tn[X+go3">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">alexa2.0.History.summary</field>
                                                    </block>
                                                  </value>
                                                  <value name="AT1">
                                                    <block type="math_arithmetic" id="OYk4;y5{czDP`m+gzp#x">
                                                      <field name="OP">ADD</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="text_indexOf" id="8iVOD?ge5zEWtZNYR)Xa">
                                                          <field name="END">FIRST</field>
                                                          <value name="VALUE">
                                                            <block type="get_value" id="z`*qzQ5VD}D4x2aBmgBa">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">alexa2.0.History.summary</field>
                                                            </block>
                                                          </value>
                                                          <value name="FIND">
                                                            <shadow type="text" id="=SDY/u1Y#~]_%{#8u2q?">
                                                              <field name="TEXT"> </field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="}zdvVy2;C-Jy`,}Gyhxv">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="AT2">
                                                    <block type="math_arithmetic" id="SH2qw5Y([Kz61GRYELOb">
                                                      <field name="OP">MINUS</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="text_indexOf" id="?4FxA-!N!j0aWW@J,Wve">
                                                          <field name="END">FIRST</field>
                                                          <value name="VALUE">
                                                            <block type="get_value" id="5t07C-miTCblEb7(~GlL">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">alexa2.0.History.summary</field>
                                                            </block>
                                                          </value>
                                                          <value name="FIND">
                                                            <shadow type="text" id="frF5wE;Uu[cV+_/+]y;/">
                                                              <field name="TEXT">sprich mir nach</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="46zj.O5@$,TNr[sKB%Wy">
                                                          <field name="NUM">2</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="controls_if" id="geG}]-ufGPzpP@6^=bVw">
                                                  <mutation elseif="3"></mutation>
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="fW4caV)A!+`dLiFg~bfn">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="Ql[tJ[bZ?CLh`KHb,)kB">
                                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="text" id="0/Agn1a7].a,Rhx)nIY?">
                                                          <field name="TEXT">wohnzimmer</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="variables_set" id="P!g)(]st+nmv0UZfs28R">
                                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="xg)l8Pm#XHH+6!6,MG!a">
                                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF1">
                                                    <block type="logic_compare" id="!!cFu9dOX/=yhEPQ^w^=">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="!n?[_;P:i)35RG;!UIe#">
                                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="text" id="nU:0EYv*Q4_0H@sMZF|F">
                                                          <field name="TEXT">küche</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO1">
                                                    <block type="variables_set" id="#e_TZiz/Rx8(Ar).2L9,">
                                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="Zf;Wfq|xp*n%z*36XHz`">
                                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF2">
                                                    <block type="logic_compare" id=",pLk;xxU3Z3Hclu^dZh`">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="N)4zi}0hVrOQ.r96$yW=">
                                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="text" id="}QhS3;B+Qql+-pN38TgG">
                                                          <field name="TEXT">schlafzimmer</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO2">
                                                    <block type="variables_set" id="OJg0I9t!rg;1C1*/P{1u">
                                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="l=6U^^/CKJcP6RsH;{V+">
                                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF3">
                                                    <block type="logic_compare" id="QxAwY#pUT#I!]7ATNXBW">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="w^V1P07t|9gb*GUt|8$-">
                                                          <field name="VAR" id="xci3X!4nlXF:sZ?64H_G" variabletype="">Echo_Name</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="text" id="Wcv?-G=`b^t==g9N#M.{">
                                                          <field name="TEXT">italien</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO3">
                                                    <block type="variables_set" id=".N/Z4]uMF%m$s}wn4rJD">
                                                      <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="efTH4pq)+D!D*Vdam{Qc">
                                                          <field name="TEXT">G090XXXXXXXXXXXX</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="control_ex" id="X~Tiu+]Y5hd4Sc;n(jCD">
                                                      <field name="TYPE">false</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <value name="OID">
                                                        <shadow type="field_oid" id="t*5aSjuTu%);@{ti5y;O">
                                                          <field name="oid">Object ID</field>
                                                        </shadow>
                                                        <block type="text_join" id="(mf@@!nx}pJB._9;:sQ4">
                                                          <mutation items="3"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="]]bUZ,MQP=#JQ?3k-:P6">
                                                              <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="variables_get" id="}kMB/?r2/Bq(SGl|Z~LH">
                                                              <field name="VAR" id="u+Fa?OFVu31w|2/cTtG*" variabletype="">Echo_Seriennummer</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD2">
                                                            <block type="text" id="H60usv-3xC(wpzMX*z:*">
                                                              <field name="TEXT">.Commands.speak</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="VALUE">
                                                        <shadow type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU">
                                                          <field name="BOOL">TRUE</field>
                                                        </shadow>
                                                        <block type="text_getSubstring" id="%B5?NrR/^@Yo,^V+%OhP" inline="false">
                                                          <mutation at1="true" at2="true"></mutation>
                                                          <field name="WHERE1">FROM_START</field>
                                                          <field name="WHERE2">FROM_START</field>
                                                          <value name="STRING">
                                                            <block type="get_value" id="(uO~YUVkgC6)YZfZ(O}6">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">alexa2.0.History.summary</field>
                                                            </block>
                                                          </value>
                                                          <value name="AT1">
                                                            <block type="math_arithmetic" id=")%)x6|Y|YNte:#s,[#k6">
                                                              <field name="OP">ADD</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id=":Pt%sy);(Elj}B;/,1ix">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="text_indexOf" id=",|z]4aSUy?sDT,c1AvJL">
                                                                  <field name="END">FIRST</field>
                                                                  <value name="VALUE">
                                                                    <block type="get_value" id="*c~4e(URYo9ak,}l2poM">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">alexa2.0.History.summary</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="FIND">
                                                                    <shadow type="text" id="gG59_T:atKMo)MfX?b8R">
                                                                      <field name="TEXT">sprich mir nach</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="~hv6Rq;ZlwM/_wQTUG?3">
                                                                  <field name="NUM">16</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="AT2">
                                                            <block type="text_length" id="j,aA?;CGsN39IC+!p{+c">
                                                              <value name="VALUE">
                                                                <shadow type="text" id="j)^dV@z~!#TrZgQK7!.1">
                                                                  <field name="TEXT">abc</field>
                                                                </shadow>
                                                                <block type="get_value" id="4@M4|ZN/?CKJVQ?r{njM">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">alexa2.0.History.summary</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="DELAY_MS">
                                                        <shadow type="math_number" id="%fu?CI_z.69W0V8wXiBl">
                                                          <field name="NUM">0</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </xml>
                              

                              AphofisA Offline
                              AphofisA Offline
                              Aphofis
                              wrote on last edited by Aphofis
                              #14

                              @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???

                              padrinoP 2 Replies Last reply
                              0
                              • AphofisA 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???

                                padrinoP Offline
                                padrinoP Offline
                                padrino
                                Most Active
                                wrote on last edited by
                                #15

                                @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

                                AphofisA 1 Reply Last reply
                                1
                                • padrinoP padrino

                                  @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

                                  AphofisA Offline
                                  AphofisA Offline
                                  Aphofis
                                  wrote on last edited by
                                  #16

                                  @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
                                  0
                                  • AphofisA 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???

                                    padrinoP Offline
                                    padrinoP Offline
                                    padrino
                                    Most Active
                                    wrote on last edited by
                                    #17

                                    @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
                                    AphofisA 1 Reply Last reply
                                    0
                                    • padrinoP padrino

                                      @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
                                      AphofisA Offline
                                      AphofisA Offline
                                      Aphofis
                                      wrote on last edited by
                                      #18

                                      @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
                                      0
                                      • padrinoP Offline
                                        padrinoP Offline
                                        padrino
                                        Most Active
                                        wrote on last edited by padrino
                                        #19

                                        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)

                                        AphofisA 2 Replies Last reply
                                        0
                                        • padrinoP 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)

                                          AphofisA Offline
                                          AphofisA Offline
                                          Aphofis
                                          wrote on last edited by Aphofis
                                          #20

                                          @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

                                          padrinoP 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          397

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe