Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Alexa Ausgabe zum Dot von dem gesprochen wurde

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Alexa Ausgabe zum Dot von dem gesprochen wurde

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

      Hi,

      ich gebe meine Temperaturen der Sensoren per Alexa Sprachausgabe aus.
      Leider funktioniert mein Script nicht zuverlässig. Ab und zu muss ich mal vorher nach der Zeit fragen damit der richtige Dot ausgewählt wird.

      Ich denke einmal das der History Eintrag schon bei der Aktivierung durch "alexa" gesetzt wird.

      Die Zeitschleifen scheinen auch nichts zu bringen.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</variable>
          <variable type="timeout" id="timeout2">timeout2</variable>
          <variable id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</variable>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="comment" id="An.raz4d]T%(Cu$NQ%}D" x="-587" y="-612">
          <field name="COMMENT">Küche - über Alexa - Temperatur Ansage</field>
          <next>
            <block type="comment" id="R6%Fs/DXtvyE1PY3iADI">
              <field name="COMMENT">By extern Doku ?</field>
              <comment pinned="false" h="61" w="969">Liesst die Temperaturen der Sensoren aus und gibt sie auf dem angragenden Gerät aus. Nur nicht im Wohnzimmer da Echo ja auch in der Küche.
      
              </comment>
              <next>
                <block type="on_ext" id="Ac;^b|`@QSn~WL%:8Hxc">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">any</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="hD}F{s%j}T;e:l|Y_t5O">
                      <field name="oid">0_userdata.0.Kueche.Temperatursensor</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="]VwfeEz_NZppH#(OgfX:">
                      <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                      <value name="VALUE">
                        <block type="math_arithmetic" id="]1kB[8Fp2pjOX-4HBP^3">
                          <field name="OP">ADD</field>
                          <value name="A">
                            <shadow type="math_number" id="CBkDI5@|1r5k(*#]K.cI">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="8m`,-VuUB[B0Ntup!-J?">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.4.lastupdated</field>
                            </block>
                          </value>
                          <value name="B">
                            <shadow type="math_number" id="^vi8g7M,%S[MDpdGyB#u">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="math_number" id="3st#b4baj$iJe^zmAvb%">
                              <field name="NUM">1</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="kiiw(#,#.?{hy`[y=(F!">
                          <field name="Severity">warn</field>
                          <value name="TEXT">
                            <shadow type="text" id="UZf,^JB2SJz1Ox@~^^qm">
                              <field name="TEXT">Script Temperatur Küche wird gestartet</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="comment" id="n/{=U+[F;mPs2xE#y~Aq">
                              <field name="COMMENT">Echo Küche soll als default gesetzt werden</field>
                              <next>
                                <block type="control_ex" id="w^d~MWtK{*G`Y?KPFZpm" disabled="true">
                                  <field name="TYPE">true</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="OID">
                                    <shadow type="field_oid" id="Ai;b_p|CI5aH.Z;V64-D">
                                      <field name="oid">alexa2.0.History.name</field>
                                    </shadow>
                                  </value>
                                  <value name="VALUE">
                                    <shadow type="logic_boolean" id="X{f;54pxwxLFsdRH^`Rz">
                                      <field name="BOOL">TRUE</field>
                                    </shadow>
                                    <block type="text" id="/irwVF){XbNI(AnO#*~q">
                                      <field name="TEXT">Echo Küche</field>
                                    </block>
                                  </value>
                                  <value name="DELAY_MS">
                                    <shadow type="math_number" id="yVYT1G3#4j=7[cBK7]WG">
                                      <field name="NUM">0</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="timeouts_settimeout" id="Kf+pY@hZ1_tJG83TKYYV">
                                      <field name="NAME">timeout2</field>
                                      <field name="DELAY">500</field>
                                      <field name="UNIT">ms</field>
                                      <statement name="STATEMENT">
                                        <block type="comment" id="Bth{7Cg;$coZ6yK/TekN">
                                          <field name="COMMENT">Variable - Alle Werte werden ausgelesen und in die Variable geschrieben</field>
                                          <next>
                                            <block type="variables_set" id="5VFfHYTB!S7A^A*?SicA">
                                              <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                              <value name="VALUE">
                                                <block type="text_join" id="I97J{_@O8_@0{3N831)L">
                                                  <mutation items="12"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text_join" id="/OqaV#R0fBz?!j{M}d.4">
                                                      <mutation items="2"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="S5_s|F5_Z,5*j_MUnOQy">
                                                          <field name="TEXT">in der Küche sind </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="get_value" id="zmnIm]cR#fwJ^DSyjn8x">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">deconz.0.Sensors.4.temperature</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="text" id="!x!d-rKjz3cXc@:L#R-Z">
                                                      <field name="TEXT"> Grad </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="text_join" id=":0!b3/;YKcshjsNG6y+H">
                                                      <mutation items="4"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="fq),4k/g6E_5`Q}?^hxb">
                                                          <field name="TEXT">,Abfragezeit ist </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="text_getSubstring" id="#5c#sN)`f/_*^ZEb-,YJ">
                                                          <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=";9b=8!T0ora4;6.whnju">
                                                              <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                            </block>
                                                          </value>
                                                          <value name="AT1">
                                                            <block type="math_number" id="!-F5N|j/?KO*5sVPzC^{">
                                                              <field name="NUM">12</field>
                                                            </block>
                                                          </value>
                                                          <value name="AT2">
                                                            <block type="math_number" id="Ti22@1dJEWRzx2Y2:RW%">
                                                              <field name="NUM">13</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="text" id="MbWWiq$=3kI#-Q}(Ge3r">
                                                          <field name="TEXT">:</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="text_getSubstring" id="_7F07,hNYPf~.(_2H%7T">
                                                          <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="ssJfJUm6teg?/(}ed:rH">
                                                              <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                            </block>
                                                          </value>
                                                          <value name="AT1">
                                                            <block type="math_number" id="POT?!B%EU3eKb)1rd?6;">
                                                              <field name="NUM">15</field>
                                                            </block>
                                                          </value>
                                                          <value name="AT2">
                                                            <block type="math_number" id="PC*Vv?fTa^glNT1S0|lm">
                                                              <field name="NUM">16</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="ADD3">
                                                    <block type="text" id="b,T}EL:LPUvNDW#2rg4:">
                                                      <field name="TEXT"> Uhr</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD4">
                                                    <block type="text" id="N%IX:NIo*4]wWDzWBlG7">
                                                      <field name="TEXT">,Tag ist der </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD5">
                                                    <block type="text_getSubstring" id="1Dq@d-F[S=H%:).0k.n-">
                                                      <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="`wa+A3#{Pk*_Xx/zmCw!">
                                                          <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                        </block>
                                                      </value>
                                                      <value name="AT1">
                                                        <block type="math_number" id="?h|H./iy(ZKk#]c#k*[6">
                                                          <field name="NUM">9</field>
                                                        </block>
                                                      </value>
                                                      <value name="AT2">
                                                        <block type="math_number" id="sOY/vkFO9kvjxj3ujgsw">
                                                          <field name="NUM">10</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="ADD6">
                                                    <block type="text" id="P%NktgZd$ke-EJqvnk/x">
                                                      <field name="TEXT">te</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD7">
                                                    <block type="text" id="e(jp0b/(ax;htS{B{P5B">
                                                      <field name="TEXT">:</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD8">
                                                    <block type="text_getSubstring" id="+gu??SK3Jv0DdD9p(O7$">
                                                      <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="Jno}J1{+f}Ut2hAdJ:ad">
                                                          <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                        </block>
                                                      </value>
                                                      <value name="AT1">
                                                        <block type="math_number" id="MOWQ^|Oy4sb+,a]wN:nV">
                                                          <field name="NUM">6</field>
                                                        </block>
                                                      </value>
                                                      <value name="AT2">
                                                        <block type="math_number" id="=Rl=eYcu{M/iXKg/h/Hq">
                                                          <field name="NUM">7</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="ADD9">
                                                    <block type="text" id="V1ad!vCcL##oo*R)F+T|">
                                                      <field name="TEXT">te</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD10">
                                                    <block type="text" id="+GrLo+6$_DjVnn}#@#ij">
                                                      <field name="TEXT">:</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD11">
                                                    <block type="text_getSubstring" id="1=!s.K7X8iH2u93EZgBC">
                                                      <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="h)/@zPGyDh4oJl_$sOx)">
                                                          <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                        </block>
                                                      </value>
                                                      <value name="AT1">
                                                        <block type="math_number" id="iExS,1LGl$X9W.I6-H68">
                                                          <field name="NUM">1</field>
                                                        </block>
                                                      </value>
                                                      <value name="AT2">
                                                        <block type="math_number" id="K(H!g,Y:VI$ARr=Han^}">
                                                          <field name="NUM">4</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="timeouts_settimeout" id="xA_MJ^@=AB=-WtDTe(3}">
                                                  <field name="NAME">timeout</field>
                                                  <field name="DELAY">500</field>
                                                  <field name="UNIT">ms</field>
                                                  <statement name="STATEMENT">
                                                    <block type="comment" id="M_5TO8{c?fn+*5C(4{!c">
                                                      <field name="COMMENT">Abfrage zu welchem Echo gesprochen wurde und Ausgabe des Text über die Variable</field>
                                                      <next>
                                                        <block type="comment" id="As,dG(xO[B@wIYcyAG?h">
                                                          <field name="COMMENT">Küche</field>
                                                          <next>
                                                            <block type="controls_if" id="wrH-}P(84mn7Y/rg8A[.">
                                                              <value name="IF0">
                                                                <block type="logic_compare" id="kg.QKB751NaS#Ihk1Vlg">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="qnTz1Oe31sq:NXjmbxIJ">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">alexa2.0.History.name</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="text" id="3=W.?c8BZN+QrGX4xL}h">
                                                                      <field name="TEXT">Echo Küche</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="control" id="}?dK++*V.7JQcjG{3uhB">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">alias.0.Küche.Echo Küche.speak</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="variables_get" id="qHoN]~u1FI@iDQs*2C2v">
                                                                      <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="comment" id="{E_]UcJ8{EYnNRb-%G9C">
                                                                  <field name="COMMENT">Wohnzimmer</field>
                                                                  <next>
                                                                    <block type="controls_if" id="CL^lZviPecCkzO$45o3l">
                                                                      <value name="IF0">
                                                                        <block type="logic_compare" id="A@{;(}6}:+?_8t+GtQ?h">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="p%y{BuZ+yTKdPZoi%#Ze">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">alexa2.0.History.name</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="text" id="+j[_-g3Lc#@R?,wK(QwA">
                                                                              <field name="TEXT">Echo Wohnzimmer</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="control" id="#BONrJ/_[KemjabJ1lNY">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">alexa2.0.Echo-Devices.G091AA13210717CV.Commands.speak</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="variables_get" id="kZ7ka^?V/DH@^x;!w~HK">
                                                                              <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="_dRF[Z);Zt;x^*v!x9`E">
                                                                              <field name="Severity">warn</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="l-kjr|{!g(PJLr:.IXvC">
                                                                                  <field name="TEXT">Der Wert von Wohnzimmer "Speak" ist</field>
                                                                                </shadow>
                                                                                <block type="text_join" id="@~%wf%J2W=wW8uQhzznL">
                                                                                  <mutation items="2"></mutation>
                                                                                  <value name="ADD0">
                                                                                    <block type="text" id=",@nr}PQm(WgbpNU+UZ/8">
                                                                                      <field name="TEXT">Der Wert von Wohnzimmer "Speak" ist</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD1">
                                                                                    <block type="get_value" id="mqyw8qTAQVgwg)w2NiEh">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">alexa2.0.Echo-Devices.G091AA13210717CV.Commands.speak</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="comment" id="_amxz6B=9F}_2uEGsK}`">
                                                                          <field name="COMMENT">Badezimmer</field>
                                                                          <next>
                                                                            <block type="controls_if" id=".n7JtGwDJDGfaeyl!8*B">
                                                                              <value name="IF0">
                                                                                <block type="logic_compare" id="I-@9%{Ng!%}9rE#IESc;">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="c?dSeG!fu]W8UO@?D4I3">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">alexa2.0.History.name</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="text" id="MivGV@*kt)3rY9COKpKA">
                                                                                      <field name="TEXT">Echo Badezimmer</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="control" id="zTwXc~r8Ldt0u-5TNcVn">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">alexa2.0.Echo-Devices.G2A1A60314660241.Commands.speak</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="variables_get" id="*X*~qQG3]~[NC{WMMndW">
                                                                                      <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </statement>
                                                                              <next>
                                                                                <block type="comment" id="qKD3bDxHV;NBtuFFs|e.">
                                                                                  <field name="COMMENT">Büro</field>
                                                                                  <next>
                                                                                    <block type="controls_if" id="iMz(H}c1#NO@KVNnhnlQ">
                                                                                      <value name="IF0">
                                                                                        <block type="logic_compare" id="z`vyyAWvaYdxt8YZt,0O">
                                                                                          <field name="OP">EQ</field>
                                                                                          <value name="A">
                                                                                            <block type="get_value" id="mEF)naqwJ#xLCe1NeKO:">
                                                                                              <field name="ATTR">val</field>
                                                                                              <field name="OID">alexa2.0.History.name</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <block type="text" id="F7::fb4cokeJJD:fk~pV">
                                                                                              <field name="TEXT">Echo Büro</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="DO0">
                                                                                        <block type="control" id="{2s/h/xpkm]F+1ik-f4m">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">alias.0.Büro.Echo Büro (Alexa im Büro).Echo Büro - speak</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="variables_get" id="ft7Uf33@IB1zu_xdTAxn">
                                                                                              <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </statement>
                                                                                      <next>
                                                                                        <block type="debug" id="8te#mi:;9(Ypp1m?rYgW">
                                                                                          <field name="Severity">warn</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow type="text" id="g/M5mMc3E[7,1}f/dS6`">
                                                                                              <field name="TEXT">test</field>
                                                                                            </shadow>
                                                                                            <block type="text_join" id="eo/X7w*Ysdp*e.caL!i0">
                                                                                              <mutation items="2"></mutation>
                                                                                              <value name="ADD0">
                                                                                                <block type="text" id="ov44$#lK01uidE9g-uAP">
                                                                                                  <field name="TEXT">Ausgabe auf:  </field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD1">
                                                                                                <block type="get_value" id="Xjo939JI_b43tN~B{Hx#">
                                                                                                  <field name="ATTR">val</field>
                                                                                                  <field name="OID">alexa2.0.History.name</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="debug" id="mi{B-GIG~NrHsq#gQ6Yq">
                                                                                              <field name="Severity">warn</field>
                                                                                              <value name="TEXT">
                                                                                                <shadow type="text" id="*,_/pl8#R:4NSsXt+DDY">
                                                                                                  <field name="TEXT">test</field>
                                                                                                </shadow>
                                                                                                <block type="text_join" id="Nhm+VDRqm%xJ:JU2D30R">
                                                                                                  <mutation items="2"></mutation>
                                                                                                  <value name="ADD0">
                                                                                                    <block type="text" id="f/^(52}*Yast[~Qfd_9,">
                                                                                                      <field name="TEXT">Es wurde ausgegeben: </field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD1">
                                                                                                    <block type="variables_get" id="GBVc9i7P9wG4,Rv*`j-S">
                                                                                                      <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Was mache ich verkehrt ?

      Gruß
      Hans-Dieter

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

        @spitfire4all

        Screenshot (524).png

        S 1 Reply Last reply Reply Quote 0
        • S
          Spitfire4all @sigi234 last edited by Spitfire4all

          @sigi234
          Danke für die Antwort.
          So wie ich das richtig verstehe ist das genau was ich mache, leider funktioniert das aber nicht zuverlässig. Ich spreche den Echo in der Küche an und bekomme die Ausgabe im Badezimmer weil ich wahrscheinlich den im Badezimmer zuletzt benutzt habe.

          390364cf-7e10-4c95-b09e-2e2013f755ac-image.png

          In de Fall frage ich dann in der Küche nach der Uhrzeit und dann noch mal nach der Temperatur, dann funktioniert es auch richtig. Auf Dauer ist das etwas blöd.

          Gruß
          HDM

          DJMarc75 1 Reply Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @Spitfire4all last edited by DJMarc75

            @spitfire4all bitte zeige Dein komplettes Skript als Screenshot

            edit: habe Dein Skript mal importiert (was ich eher selten mache) und sehe den "timeout" auf 500ms.
            Setze diesen mal auf 3000ms

            S 2 Replies Last reply Reply Quote 0
            • S
              Spitfire4all @DJMarc75 last edited by

              @djmarc75

              5be93317-38d4-4126-bf49-696c072c89ee-image.png
              d3283748-5070-4c69-b918-c2f6d0a11bab-image.png

              DJMarc75 1 Reply Last reply Reply Quote 0
              • DJMarc75
                DJMarc75 @Spitfire4all last edited by

                @spitfire4all timeout auf 3000ms setzen (nicht den timeout2)

                1 Reply Last reply Reply Quote 0
                • S
                  Spitfire4all @DJMarc75 last edited by

                  @djmarc75
                  Oki, den ersten oder den zweiten oder beide.

                  DJMarc75 1 Reply Last reply Reply Quote 0
                  • DJMarc75
                    DJMarc75 @Spitfire4all last edited by DJMarc75

                    @spitfire4all sagte in Alexa Ausgabe zum Dot von dem gesprochen wurde:

                    Oki, den ersten oder den zweiten oder beide.

                    timeout2

                    edit: timeout

                    edit2 zum importieren 😉

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</variable>
                       <variable type="timeout" id="timeout2">timeout2</variable>
                       <variable id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</variable>
                       <variable type="timeout" id="timeout">timeout</variable>
                     </variables>
                     <block type="on_ext" id="Ac;^b|`@QSn~WL%:8Hxc" x="-587" y="-584">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">any</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="hD}F{s%j}T;e:l|Y_t5O">
                           <field name="oid">0_userdata.0.Kueche.Temperatursensor</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="variables_set" id="]VwfeEz_NZppH#(OgfX:">
                           <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                           <value name="VALUE">
                             <block type="math_arithmetic" id="]1kB[8Fp2pjOX-4HBP^3">
                               <field name="OP">ADD</field>
                               <value name="A">
                                 <shadow type="math_number" id="CBkDI5@|1r5k(*#]K.cI">
                                   <field name="NUM">1</field>
                                 </shadow>
                                 <block type="get_value" id="8m`,-VuUB[B0Ntup!-J?">
                                   <field name="ATTR">val</field>
                                   <field name="OID">deconz.0.Sensors.4.lastupdated</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <shadow type="math_number" id="^vi8g7M,%S[MDpdGyB#u">
                                   <field name="NUM">1</field>
                                 </shadow>
                                 <block type="math_number" id="3st#b4baj$iJe^zmAvb%">
                                   <field name="NUM">1</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_settimeout" id="Kf+pY@hZ1_tJG83TKYYV">
                               <field name="NAME">timeout2</field>
                               <field name="DELAY">500</field>
                               <field name="UNIT">ms</field>
                               <statement name="STATEMENT">
                                 <block type="comment" id="Bth{7Cg;$coZ6yK/TekN">
                                   <field name="COMMENT">Variable - Alle Werte werden ausgelesen und in die Variable geschrieben</field>
                                   <next>
                                     <block type="variables_set" id="5VFfHYTB!S7A^A*?SicA" collapsed="true">
                                       <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                       <value name="VALUE">
                                         <block type="text_join" id="I97J{_@O8_@0{3N831)L">
                                           <mutation items="12"></mutation>
                                           <value name="ADD0">
                                             <block type="text_join" id="/OqaV#R0fBz?!j{M}d.4">
                                               <mutation items="2"></mutation>
                                               <value name="ADD0">
                                                 <block type="text" id="S5_s|F5_Z,5*j_MUnOQy">
                                                   <field name="TEXT">in der Küche sind </field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="get_value" id="zmnIm]cR#fwJ^DSyjn8x">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">deconz.0.Sensors.4.temperature</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="text" id="!x!d-rKjz3cXc@:L#R-Z">
                                               <field name="TEXT"> Grad </field>
                                             </block>
                                           </value>
                                           <value name="ADD2">
                                             <block type="text_join" id=":0!b3/;YKcshjsNG6y+H">
                                               <mutation items="4"></mutation>
                                               <value name="ADD0">
                                                 <block type="text" id="fq),4k/g6E_5`Q}?^hxb">
                                                   <field name="TEXT">,Abfragezeit ist </field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="text_getSubstring" id="#5c#sN)`f/_*^ZEb-,YJ">
                                                   <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=";9b=8!T0ora4;6.whnju">
                                                       <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                     </block>
                                                   </value>
                                                   <value name="AT1">
                                                     <block type="math_number" id="!-F5N|j/?KO*5sVPzC^{">
                                                       <field name="NUM">12</field>
                                                     </block>
                                                   </value>
                                                   <value name="AT2">
                                                     <block type="math_number" id="Ti22@1dJEWRzx2Y2:RW%">
                                                       <field name="NUM">13</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="ADD2">
                                                 <block type="text" id="MbWWiq$=3kI#-Q}(Ge3r">
                                                   <field name="TEXT">:</field>
                                                 </block>
                                               </value>
                                               <value name="ADD3">
                                                 <block type="text_getSubstring" id="_7F07,hNYPf~.(_2H%7T">
                                                   <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="ssJfJUm6teg?/(}ed:rH">
                                                       <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                     </block>
                                                   </value>
                                                   <value name="AT1">
                                                     <block type="math_number" id="POT?!B%EU3eKb)1rd?6;">
                                                       <field name="NUM">15</field>
                                                     </block>
                                                   </value>
                                                   <value name="AT2">
                                                     <block type="math_number" id="PC*Vv?fTa^glNT1S0|lm">
                                                       <field name="NUM">16</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ADD3">
                                             <block type="text" id="b,T}EL:LPUvNDW#2rg4:">
                                               <field name="TEXT"> Uhr</field>
                                             </block>
                                           </value>
                                           <value name="ADD4">
                                             <block type="text" id="N%IX:NIo*4]wWDzWBlG7">
                                               <field name="TEXT">,Tag ist der </field>
                                             </block>
                                           </value>
                                           <value name="ADD5">
                                             <block type="text_getSubstring" id="1Dq@d-F[S=H%:).0k.n-">
                                               <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="`wa+A3#{Pk*_Xx/zmCw!">
                                                   <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                 </block>
                                               </value>
                                               <value name="AT1">
                                                 <block type="math_number" id="?h|H./iy(ZKk#]c#k*[6">
                                                   <field name="NUM">9</field>
                                                 </block>
                                               </value>
                                               <value name="AT2">
                                                 <block type="math_number" id="sOY/vkFO9kvjxj3ujgsw">
                                                   <field name="NUM">10</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ADD6">
                                             <block type="text" id="P%NktgZd$ke-EJqvnk/x">
                                               <field name="TEXT">te</field>
                                             </block>
                                           </value>
                                           <value name="ADD7">
                                             <block type="text" id="e(jp0b/(ax;htS{B{P5B">
                                               <field name="TEXT">:</field>
                                             </block>
                                           </value>
                                           <value name="ADD8">
                                             <block type="text_getSubstring" id="+gu??SK3Jv0DdD9p(O7$">
                                               <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="Jno}J1{+f}Ut2hAdJ:ad">
                                                   <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                 </block>
                                               </value>
                                               <value name="AT1">
                                                 <block type="math_number" id="MOWQ^|Oy4sb+,a]wN:nV">
                                                   <field name="NUM">6</field>
                                                 </block>
                                               </value>
                                               <value name="AT2">
                                                 <block type="math_number" id="=Rl=eYcu{M/iXKg/h/Hq">
                                                   <field name="NUM">7</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ADD9">
                                             <block type="text" id="V1ad!vCcL##oo*R)F+T|">
                                               <field name="TEXT">te</field>
                                             </block>
                                           </value>
                                           <value name="ADD10">
                                             <block type="text" id="+GrLo+6$_DjVnn}#@#ij">
                                               <field name="TEXT">:</field>
                                             </block>
                                           </value>
                                           <value name="ADD11">
                                             <block type="text_getSubstring" id="1=!s.K7X8iH2u93EZgBC">
                                               <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="h)/@zPGyDh4oJl_$sOx)">
                                                   <field name="VAR" id="(P`e{d+VlLMV!LF3,QNA">Zeit Sensor Küche</field>
                                                 </block>
                                               </value>
                                               <value name="AT1">
                                                 <block type="math_number" id="iExS,1LGl$X9W.I6-H68">
                                                   <field name="NUM">1</field>
                                                 </block>
                                               </value>
                                               <value name="AT2">
                                                 <block type="math_number" id="K(H!g,Y:VI$ARr=Han^}">
                                                   <field name="NUM">4</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="timeouts_settimeout" id="xA_MJ^@=AB=-WtDTe(3}">
                                           <field name="NAME">timeout</field>
                                           <field name="DELAY">3000</field>
                                           <field name="UNIT">ms</field>
                                           <statement name="STATEMENT">
                                             <block type="comment" id="M_5TO8{c?fn+*5C(4{!c">
                                               <field name="COMMENT">Abfrage zu welchem Echo gesprochen wurde und Ausgabe des Text über die Variable</field>
                                               <next>
                                                 <block type="controls_if" id="wrH-}P(84mn7Y/rg8A[.">
                                                   <mutation elseif="3"></mutation>
                                                   <value name="IF0">
                                                     <block type="logic_compare" id="kg.QKB751NaS#Ihk1Vlg">
                                                       <field name="OP">EQ</field>
                                                       <value name="A">
                                                         <block type="get_value" id="qnTz1Oe31sq:NXjmbxIJ">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">alexa2.0.History.name</field>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="text" id="3=W.?c8BZN+QrGX4xL}h">
                                                           <field name="TEXT">Echo Küche</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <statement name="DO0">
                                                     <block type="comment" id="98fR5p$!WV=:3BDm#hFy">
                                                       <field name="COMMENT">Küche</field>
                                                       <next>
                                                         <block type="control" id="}?dK++*V.7JQcjG{3uhB">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alias.0.Küche.Echo Küche.speak</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="variables_get" id="qHoN]~u1FI@iDQs*2C2v">
                                                               <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                   <value name="IF1">
                                                     <block type="logic_compare" id="A@{;(}6}:+?_8t+GtQ?h">
                                                       <field name="OP">EQ</field>
                                                       <value name="A">
                                                         <block type="get_value" id="p%y{BuZ+yTKdPZoi%#Ze">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">alexa2.0.History.name</field>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="text" id="+j[_-g3Lc#@R?,wK(QwA">
                                                           <field name="TEXT">Echo Wohnzimmer</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <statement name="DO1">
                                                     <block type="comment" id="-55PAH.N^rY,;XhV8*.[">
                                                       <field name="COMMENT">Wohnzimmer</field>
                                                       <next>
                                                         <block type="control" id="#BONrJ/_[KemjabJ1lNY">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alexa2.0.Echo-Devices.G091AA13210717CV.Commands.speak</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="variables_get" id="kZ7ka^?V/DH@^x;!w~HK">
                                                               <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                   <value name="IF2">
                                                     <block type="logic_compare" id="I-@9%{Ng!%}9rE#IESc;">
                                                       <field name="OP">EQ</field>
                                                       <value name="A">
                                                         <block type="get_value" id="c?dSeG!fu]W8UO@?D4I3">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">alexa2.0.History.name</field>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="text" id="MivGV@*kt)3rY9COKpKA">
                                                           <field name="TEXT">Echo Badezimmer</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <statement name="DO2">
                                                     <block type="comment" id="i_mVD_H3n{R/1Q]@Cl})">
                                                       <field name="COMMENT">Badezimmer</field>
                                                       <next>
                                                         <block type="control" id="zTwXc~r8Ldt0u-5TNcVn">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alexa2.0.Echo-Devices.G2A1A60314660241.Commands.speak</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="variables_get" id="*X*~qQG3]~[NC{WMMndW">
                                                               <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                   <value name="IF3">
                                                     <block type="logic_compare" id="z`vyyAWvaYdxt8YZt,0O">
                                                       <field name="OP">EQ</field>
                                                       <value name="A">
                                                         <block type="get_value" id="mEF)naqwJ#xLCe1NeKO:">
                                                           <field name="ATTR">val</field>
                                                           <field name="OID">alexa2.0.History.name</field>
                                                         </block>
                                                       </value>
                                                       <value name="B">
                                                         <block type="text" id="F7::fb4cokeJJD:fk~pV">
                                                           <field name="TEXT">Echo Büro</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <statement name="DO3">
                                                     <block type="comment" id="CP,MI#e~;.l*U$%)/GLl">
                                                       <field name="COMMENT">Büro</field>
                                                       <next>
                                                         <block type="control" id="{2s/h/xpkm]F+1ik-f4m">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alias.0.Büro.Echo Büro (Alexa im Büro).Echo Büro - speak</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="variables_get" id="ft7Uf33@IB1zu_xdTAxn">
                                                               <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                   <next>
                                                     <block type="debug" id="8te#mi:;9(Ypp1m?rYgW">
                                                       <field name="Severity">warn</field>
                                                       <value name="TEXT">
                                                         <shadow type="text" id="g/M5mMc3E[7,1}f/dS6`">
                                                           <field name="TEXT">test</field>
                                                         </shadow>
                                                         <block type="text_join" id="eo/X7w*Ysdp*e.caL!i0">
                                                           <mutation items="2"></mutation>
                                                           <value name="ADD0">
                                                             <block type="text" id="ov44$#lK01uidE9g-uAP">
                                                               <field name="TEXT">Ausgabe auf:  </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="get_value" id="Xjo939JI_b43tN~B{Hx#">
                                                               <field name="ATTR">val</field>
                                                               <field name="OID">alexa2.0.History.name</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="debug" id="mi{B-GIG~NrHsq#gQ6Yq">
                                                           <field name="Severity">warn</field>
                                                           <value name="TEXT">
                                                             <shadow type="text" id="*,_/pl8#R:4NSsXt+DDY">
                                                               <field name="TEXT">test</field>
                                                             </shadow>
                                                             <block type="text_join" id="Nhm+VDRqm%xJ:JU2D30R">
                                                               <mutation items="2"></mutation>
                                                               <value name="ADD0">
                                                                 <block type="text" id="f/^(52}*Yast[~Qfd_9,">
                                                                   <field name="TEXT">Es wurde ausgegeben: </field>
                                                                 </block>
                                                               </value>
                                                               <value name="ADD1">
                                                                 <block type="variables_get" id="GBVc9i7P9wG4,Rv*`j-S">
                                                                   <field name="VAR" id="sj*gwj)~.6[t_Msoa*(m">Ausgabetext</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                    </xml>
                    

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Spitfire4all @DJMarc75 last edited by

                      @djmarc75
                      Danke, das scheint gut zu klappen.
                      Teste ich noch eine Weile und korrigiere die Zeiten eventuell noch etwas nach unten, sonst habe ich immer den Eindruck es würde doch nicht funktionieren, weil Sie etwas lange braucht 🙂

                      Hast du, oder gibt es eventuell eine elegantere kleine Lösung für das hier:

                      1fbc7fd5-e94a-449c-86c3-78ede132b868-image.png

                      2ca77dfb-6cea-48b7-92b2-4fe9e721d07b-image.png

                      Im Prinzip ist das richtig, habe es so gemacht, als die Tage noch zweistellig waren.
                      Mit 08 hört sich das aber komisch an.

                      Gruß
                      HDM

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      435
                      Online

                      32.0k
                      Users

                      80.4k
                      Topics

                      1.3m
                      Posts

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