- Home
- Deutsch
- Skripten / Logik
- Blockly
- [Blockly] Skript für "Sprich mir nach" auf beliebigem Echo
[Blockly] Skript für "Sprich mir nach" auf beliebigem Echo
-
@padrino leider nein. Bleibt still
-
Hmm, kurz nochmal getestet.... grübel... könnte sein...
Sag mal nicht "Alexa, blabla..." sondern drück den "Alexa" button und sag "blabla"...
Ersteres scheint nicht zu klappen, zweiteres, aber schon.Nachtrag: wie vermutet, das Aktivierungswort wird wohl nicht, wie normal, gefiltert, wenn man auf dem Handy "Alexa" (etc.) sagt, muss ich @apollon77 mal dazu befragen.
-
@padrino Es wird das Wakeword des Gerätes gefiltert was eingestellt ist. Da die Apps aber gerade ausgenommen sind kann er da kein Wakeword ermitteln und daher wird auch nichts gefiltert
-
@apollon77
Ok, Wakeword für die App kann ja nicht geändert werden und ist immer Alexa.
Dachte das würde immer gefiltert. -
@padrino Das wäre dann ggf ein Feature Request über den man mal nachdenken kann ... wenn Ihr Euch sicher seid
-
@apollon77
Dann kannst Du ja das Label auf Github ändern.
(Soweit ich weiß, kann ich das ja nicht selbst ) -
@accu
Sorry, ich glaube, ich kann Dir mit dem Handy Problem nicht helfen.
Wie es scheint hat amazon es heute komplett kaputt gemacht. 🤬
Wollte eben den Fall raus filtern, dass "alexa" in der History auftaucht nur um festzustellen, dass das übers Handy gesprochene (seit) heute wohl gar nicht mehr im summary auftaucht.@apollon77
Ich denke, damit können wir den Github Eintrag wohl ganz schließen - es sein denn, es ist ein temperäres Problem seitens amazon...
Nachtrag: wie ich gerade sehe, taucht auch "this device" nicht mehr in den Echo devices auf... -
So, da das Gesproche über Handy inzwischen wieder in "Summary" auftaucht und bei mir auch wieder das Handy als "This Device" da ist, hab' ich nun für den Fall eingebaut, dass "Alexa" gefiltert wird, damit geht es dann auch wenn der Adapter das im Moment nicht, wie bei anderen Geräten stripped.
@Accu
Kannst ja mal testen. Hier läuft es (auch wenn das Handy "das weiß ich leider nicht" oder Ähnliches sagt).V2.2 Blockly
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="T0YZa/guj,^|n505HM4w">TextMitSZ</variable> <variable id="8tF+VtGz*J77y:md4A9?">nicht_mobil</variable> <variable id="]5xT`?f=/d7|ofu?OD+f">Wert_Kopie</variable> <variable id=";F.(K|mb2VDLFz4584#t">Echo_Ziel_gefunden</variable> <variable id="C2wE+cVgznP#j}r/`dl(">Echo_Start_Seriennummer</variable> <variable id="xci3X!4nlXF:sZ?64H_G">Echo_Ziel_Name</variable> <variable id="b7aB$`+O!Gi*`TEysg7u">zu_sprechender_Text</variable> <variable id="!5j6XLhoQm_S9B.5BB`=">Pause</variable> <variable id="@v/?ezVeiXzj^,$=!Nr.">i</variable> <variable id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</variable> <variable id="#o|;Mx(pH:s{+-*%Vpai">Echo_gefunden_Name</variable> </variables> <block type="comment" id="FOjQ$9KpZ.MP~N%WI;S|" x="-2462" y="397"> <field name="COMMENT">Version 2.2 (11.03.2021) 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="on_source" id="{fTb5h|jC._Ga|xDga{I"> <field name="ATTR">state.val</field> </block> </value> <value name="FIND"> <shadow xmlns="http://www.w3.org/1999/xhtml" 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="C=a:Djf{jy;}GR^.aAb~"> <field name="VAR" id="8tF+VtGz*J77y:md4A9?">nicht_mobil</field> <value name="VALUE"> <block type="logic_boolean" id="0=Q4mbnP}H2Z74(`^]2p"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="controls_if" id="_igHVu#_-$q8#R`6e:8T"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="j-;YTnb{?8kOs#Rn`jPc"> <field name="OP">EQ</field> <value name="A"> <block type="text_indexOf" id="Oh|j(4U2H{`TY`{Vof=I"> <field name="END">FIRST</field> <value name="VALUE"> <block type="on_source" id="`;Mfg,r2uMaR,s[Yg%8d"> <field name="ATTR">state.val</field> </block> </value> <value name="FIND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text"> <field name="TEXT">bis</field> </shadow> <block type="text" id=":23m8sal,/_7TE6q6@%."> <field name="TEXT">alexa</field> </block> </value> </block> </value> <value name="B"> <block type="math_number" id="e07^!ZaN$NBNMn.i]a5o"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="ymjg]SKAE*W_k8xz4EOx"> <field name="VAR" id="8tF+VtGz*J77y:md4A9?">nicht_mobil</field> <value name="VALUE"> <block type="logic_boolean" id="{=eB)NC!RD(E;INkRj77"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="Wq7f)rgQ8]{Lg275+/,#"> <field name="VAR" id="]5xT`?f=/d7|ofu?OD+f">Wert_Kopie</field> <value name="VALUE"> <block type="text_getSubstring" id="#o+$}c1=}D/Imz[*At~5" 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="on_source" id="cX__+]0?P#9*bW/#}4zH"> <field name="ATTR">state.val</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="2pV%PMF|]zFrR8d|k!|v"> <field name="OP">ADD</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="text_indexOf" id="a=YoI~`;V2iT(]DZ{N/f"> <field name="END">FIRST</field> <value name="VALUE"> <block type="on_source" id="nT-y|00qNpxV5bL.ZVKd"> <field name="ATTR">state.val</field> </block> </value> <value name="FIND"> <shadow type="text" id="$oB(UPQCl}a(^;(RC1.X"> <field name="TEXT">alexa </field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="W|)XM)2:$QYpVtd.*;36"> <field name="NUM">6</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="{jmyS]eq8$u+2):SdOQi"> <field name="OP">MINUS</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="text_indexOf" id="-sn4A:Isl;-=xaVKn~6H"> <field name="END">FIRST</field> <value name="VALUE"> <block type="on_source" id="F*R:X7yO!Lg1T0g,wI+4"> <field name="ATTR">state.val</field> </block> </value> <value name="FIND"> <shadow type="text" id="9`H]s9{t_bWJ:XSpx$`U"> <field name="TEXT">sprich mir nach</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="6TE@2G9qs`Aq)X}gFVE*"> <field name="NUM">2</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="l,6-BM@}S[KL=`Myv_i]"> <field name="VAR" id="]5xT`?f=/d7|ofu?OD+f">Wert_Kopie</field> <value name="VALUE"> <block type="on_source" id="*zKBoA=S}z?Mh1*5*H:("> <field name="ATTR">state.val</field> </block> </value> </block> </statement> <next> <block type="variables_set" id="X{FOz:*I4)]D?~s*[:af"> <field name="VAR" id=";F.(K|mb2VDLFz4584#t">Echo_Ziel_gefunden</field> <value name="VALUE"> <block type="logic_boolean" id="u_RoVSM%*9n#%*`9bSaK"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="$%FoWwYys?P%_gb`qQh#"> <field name="VAR" id="C2wE+cVgznP#j}r/`dl(">Echo_Start_Seriennummer</field> <value name="VALUE"> <block type="get_value" id="Q/Ba=ZEzaq*4f(R$8TV-"> <field name="ATTR">val</field> <field name="OID">alexa2.0.History.serialNumber</field> </block> </value> <next> <block type="variables_set" id="LZ]1}/,XsI,aX4o~GhcK"> <field name="VAR" id="xci3X!4nlXF:sZ?64H_G">Echo_Ziel_Name</field> <value name="VALUE"> <block type="text_getSubstring" id="s[WY-HQC}v1/RKl+-M^_" 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=":DfQG]8SKQTjSMZhfQ!J"> <field name="VAR" id="]5xT`?f=/d7|ofu?OD+f">Wert_Kopie</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="[yArHQ;0$!|1-Yn`Gy]+"> <field name="OP">ADD</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="text_indexOf" id="M1`j/}]U}/twYy/HJxgR"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="|4@JOj6Ey0qB5|zy0Ao{"> <field name="VAR" id="]5xT`?f=/d7|ofu?OD+f">Wert_Kopie</field> </block> </value> <value name="FIND"> <shadow type="text" id=")RuL*-3h~!:bpk:p-t_1"> <field name="TEXT"> </field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="ij-%`3/ObjtA)6k_!:9-"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="yXu}HvTZ}D`N=H[dDIB)"> <field name="OP">MINUS</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="text_indexOf" id="6S~Y60NDDmAOqm8LeNUn"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="jEbW4|cw//~Lg/y)78Ta"> <field name="VAR" id="]5xT`?f=/d7|ofu?OD+f">Wert_Kopie</field> </block> </value> <value name="FIND"> <shadow type="text" id="j=3+e)dq#^!XYSRWe{[0"> <field name="TEXT">sprich mir nach</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="OHnkGP.z1R$ReX9ACsl)"> <field name="NUM">2</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="controls_if" id="4@IXZp183e(-p,uynC`e"> <value name="IF0"> <block type="variables_get" id="M@D4%5/c+R;hv5YSK!A:"> <field name="VAR" id="8tF+VtGz*J77y:md4A9?">nicht_mobil</field> </block> </value> <statement name="DO0"> <block type="control_ex" id="0;=9.dm[@Gbeic.rzh)`"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_oid"> <field name="oid">Object ID</field> </shadow> <block type="text_join" id="pvYa(o:nIy$Ijl+JGD8a"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="U1mV3H5VA;1Q9~}8;4@8"> <field name="TEXT">alexa2.0.Echo-Devices.</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="d=dX*~~wq,|J+RJ.WP?}"> <field name="VAR" id="C2wE+cVgznP#j}r/`dl(">Echo_Start_Seriennummer</field> </block> </value> <value name="ADD2"> <block type="text" id="s|M?0jJLoz`ww1t[=q)B"> <field name="TEXT">.Commands.textCommand</field> </block> </value> </block> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="text" id="O%8YVn{Y/rr0Pq6LNkFs"> <field name="TEXT">stopp</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="TV]mqifYOV~5wxxxT@S:"> <field name="NUM">0</field> </shadow> </value> </block> </statement> <next> <block type="variables_set" id="HR2n*F+$v1(^y%lvw~`_"> <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u">zu_sprechender_Text</field> <value name="VALUE"> <block type="procedures_callcustomreturn" id="uz_-6hy*/7#|dJUC`M(x"> <mutation name="Satzzeichen_umwandeln"> <arg name="TextMitSZ"></arg> </mutation> <value name="ARG0"> <block type="text_getSubstring" id="AVTjw5BgbS?U#OJ-/#5J" inline="false"> <mutation at1="true" at2="false"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">LAST</field> <value name="STRING"> <block type="on_source" id="p]+!NM1dBtx%5x$xgh:A"> <field name="ATTR">state.val</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="=mNhYS_avFHbfhtJ(~[C"> <field name="OP">ADD</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="text_indexOf" id="wb$jd4|*%cH9WTkrK6N["> <field name="END">FIRST</field> <value name="VALUE"> <block type="on_source" id="ycFTy{9]Z.M=v/aD5!1w"> <field name="ATTR">state.val</field> </block> </value> <value name="FIND"> <shadow type="text" id="ysN*GP}.XOB|zk%.;9(K"> <field name="TEXT">sprich mir nach</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="=bOP~(!6]5)HucVJdA~]"> <field name="NUM">16</field> </shadow> </value> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="n84}S|~^Si#I(rvieSD$"> <field name="VAR" id="!5j6XLhoQm_S9B.5BB`=">Pause</field> <value name="VALUE"> <block type="math_arithmetic" id="nWf(m+xLHeZfbk0|o$}("> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="sGlKFjcrPC{PM,G,Yu1T"> <field name="NUM">1</field> </shadow> <block type="text_length" id="3GBB.wJ_eOoU3~,u|sbW"> <value name="VALUE"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="variables_get" id=")iO?hn.aeX,Cf.rZ6kk_"> <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u">zu_sprechender_Text</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="4O*Yl6^{J?Q0)U-DT^K_"> <field name="NUM">80</field> </shadow> </value> </block> </value> <next> <block type="controls_forEach" id="~KP4iuN[;V#LrB5hF7r%"> <field name="VAR" id="@v/?ezVeiXzj^,$=!Nr.">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="?`6.%GbF+xM6c65S;*rU"> <field name="VAR" id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</field> <value name="VALUE"> <block type="text_join" id="__9$io,!tWsl@yWr:[CY"> <mutation items="1"></mutation> <value name="ADD0"> <block type="text_getSubstring" id="SC!fZKZLN%[aq:yR4;,#" 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="H^g(b~ln]Jl.,;u0SQS$"> <field name="VAR" id="@v/?ezVeiXzj^,$=!Nr.">i</field> </block> </value> <value name="AT2"> <block type="text_indexOf" id="wpDPI=,hr4^j6zp)~#[S"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="qWxeYwC,R[F:ieS37e|R"> <field name="VAR" id="@v/?ezVeiXzj^,$=!Nr.">i</field> </block> </value> <value name="FIND"> <shadow type="text" id="lRA]|dZrb!GE!y@3!HNV"> <field name="TEXT">.Commands</field> </shadow> </value> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="gC,0gBJchG`P+#Kh`,No"> <field name="VAR" id="#o|;Mx(pH:s{+-*%Vpai">Echo_gefunden_Name</field> <value name="VALUE"> <block type="get_value_var" id="OhB)P~;POJ*k)(AW;QVk"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="0DTEXt$;]]WC$bG~2ujA"> <field name="TEXT"></field> </shadow> <block type="text_join" id="!`sU}fMZEh=e=Mqzn:iF"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="~}@;L`@qv#SP4-HMORc7"> <field name="VAR" id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</field> </block> </value> <value name="ADD1"> <block type="text" id="I)T]Gqf/|]jCQ$EXKx%Q"> <field name="TEXT">Info.name</field> </block> </value> </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">GT</field> <value name="A"> <block type="text_indexOf" id="cg$1M$n)@c)_-yaKbepd" inline="false"> <field name="END">FIRST</field> <value name="VALUE"> <block type="text_changeCase" id="M^i|re|4t%J[wCHb=~`~"> <field name="CASE">LOWERCASE</field> <value name="TEXT"> <shadow type="text" id="E$%!K/)i0)rK3*Q0Hxb]"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="slZBP^Eql;wPI+JCK|DX"> <field name="VAR" id="#o|;Mx(pH:s{+-*%Vpai">Echo_gefunden_Name</field> </block> </value> </block> </value> <value name="FIND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="gy5Hp#t0_^q%dW~8?OUm"> <field name="VAR" id="xci3X!4nlXF:sZ?64H_G">Echo_Ziel_Name</field> </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="variables_set" id="X_eFO|_!K{Z=`uA|g?gg"> <field name="VAR" id=";F.(K|mb2VDLFz4584#t">Echo_Ziel_gefunden</field> <value name="VALUE"> <block type="logic_boolean" id=".Y+:m}scy[LgZ[!hE9TD"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="controls_if" id="iMeDg7sjZ@+H2vhU|IKm"> <value name="IF0"> <block type="get_value_var" id=":)lR7cXoiwSL]oxeIO-O"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="EiRfCY8xESJWxx|+E.kS"> <field name="TEXT"></field> </shadow> <block type="text_join" id="J_nt)3naa(c=6.+uvUV!"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id=",wLR_G%(MoOg40ggT+Vj"> <field name="VAR" id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</field> </block> </value> <value name="ADD1"> <block type="text" id="mn8KN)LOB[p|b9yFoSim"> <field name="TEXT">Player.currentState</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="+CH,}HeoL!aYZ8bkbwn_"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="em[yglSpre.~n.WvPs-^"> <field name="oid">Object ID</field> </shadow> <block type="text_join" id="%=XVR:9DN$a^Na0tJW09"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="x]Wo0B}M)h#r|K1]%+=="> <field name="VAR" id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</field> </block> </value> <value name="ADD1"> <block type="text" id="wL8ZDp+y6n(44FX^;J=?"> <field name="TEXT">Player.controlPause</field> </block> </value> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="6qcgPn3LFREv3;$vv~_7"> <field name="BOOL">TRUE</field> </shadow> <block type="logic_boolean" id="`Osb%,dhE465q`prS6}M"> <field name="BOOL">TRUE</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="GDQE|ILE}-[,:@unwhin"> <field name="NUM">0</field> </shadow> </value> <next> <block type="control_ex" id="iq.Bhp3CM-8{C:AS6W)="> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid"> <field name="oid">Object ID</field> </shadow> <block type="text_join" id="cqF!99y~+JLlD=%nch)v"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="zff5)D9f]ps?@n`/s,YJ"> <field name="VAR" id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</field> </block> </value> <value name="ADD1"> <block type="text" id="/1X}KXBW~h0wSY9!Q_pJ"> <field name="TEXT">Player.controlPlay</field> </block> </value> </block> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="logic_boolean" id="0(?Dbe6;F/DEtTx|I`w8"> <field name="BOOL">TRUE</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="QV!x39Kvw/P2a(`B?LuR"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="PL@m(d;+Os07R|k:n#,c"> <field name="VAR" id="!5j6XLhoQm_S9B.5BB`=">Pause</field> </block> </value> </block> </next> </block> </statement> <next> <block type="control_ex" id="*llwxZ6RK}X:~Z5?7[,r"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_oid"> <field name="oid">Object ID</field> </shadow> <block type="text_join" id="uNAK6PIeZK|;]vfgJ;W`"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="f0k?y`OSLlS2)V`%;?(#"> <field name="VAR" id="nhP!NL9agVO{Ru1Uv8:U">Echo_Ziel_Basis</field> </block> </value> <value name="ADD1"> <block type="text" id="f224-KDK67fnxyYJ6u1}"> <field name="TEXT">Commands.speak</field> </block> </value> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="7vGB/=SUs$N/DMY-ii/]"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="V[r9nHLsYhML~$jPS4;+"> <field name="VAR" id="b7aB$`+O!Gi*`TEysg7u">zu_sprechender_Text</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="=Jm~obL@is|,BRM5WXR0"> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="@)6`d%HOeQoURRp47|_G"> <value name="IF0"> <block type="logic_compare" id="Yje$.F.Jlq/t1K;9l[$n"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="^uBH}_uskN;+KRf84B=s"> <field name="VAR" id=";F.(K|mb2VDLFz4584#t">Echo_Ziel_gefunden</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qOs29yEpuK7fK)3Iq,D{"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="Qmpb4$v80:TPOU,QF.)i"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_oid" id="fwZLrtqkG5Ro2sbRcbdL"> <field name="oid">Object ID</field> </shadow> <block type="text_join" id="B/T;uwvUx:AZg.Tv1Z}K"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="OwO=9`U#05m*KZx_XnYp"> <field name="TEXT">alexa2.0.Echo-Devices.</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="=dGXbqL38jYJq-XBQln@"> <field name="VAR" id="C2wE+cVgznP#j}r/`dl(">Echo_Start_Seriennummer</field> </block> </value> <value name="ADD2"> <block type="text" id=")pilr%swl1]zwp3u0.Xr"> <field name="TEXT">.Commands.speak</field> </block> </value> </block> </value> <value name="VALUE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="4Q-~O)0Tq3Bl0SL#OKOU"> <field name="BOOL">TRUE</field> </shadow> <block type="text_join" id="^qxx:S%f7udQi/U+mlSx"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="{(*_9a$/z_*v{I5#;CyB"> <field name="TEXT">Leider konnte ich kein Gerät mit dem Namen "</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="Q5JW`W_e^KvL~A?S;)7E"> <field name="VAR" id="xci3X!4nlXF:sZ?64H_G">Echo_Ziel_Name</field> </block> </value> <value name="ADD2"> <block type="text" id="A1V#RQX}(d^kRXxOTaFA"> <field name="TEXT">" finden.</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="aMJx=]mX7et4[PcXye^*"> <field name="NUM">0</field> </shadow> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> <block type="procedures_defcustomreturn" id="[.kLmP/S?e;|npPP7WZN" x="-2287" y="463"> <mutation statements="false"> <arg name="TextMitSZ" varid="T0YZa/guj,^|n505HM4w"></arg> </mutation> <field name="NAME">Satzzeichen_umwandeln</field> <field name="SCRIPT">bGV0IE9obmVLb21tYXMgPSBUZXh0TWl0U1oucmVwbGFjZSgvIGtvbW1hL2csICJcLCIpOw0KbGV0IE9obmVQdW5rdCA9IE9obmVLb21tYXMucmVwbGFjZSgvIHB1bmt0L2csICJcLiIpOw0KbGV0IE9obmVTWiA9IE9obmVQdW5rdC5yZXBsYWNlKC8gZnJhZ2V6ZWljaGVuL2csICJcPyIpOw0KcmV0dXJuIE9obmVTWjs=</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> </xml>
-
@padrino Als Hinweis:
Wenn du Alexa sagst: Alexa, sage im Wohnzimmer Alles ok (das was nach sage im Wohnzimmer gesagt wird aufgenommen!)
wird im Wohnzimmer von der Alexa dort mit Deiner Stimme: Alles ok gesagt. -
@mcu
Danke.
Ankündigungen kenne ich, sind mir aber oft zu aufdringlich.
Außerdem stammt das Ur-Blockly noch aus einer Zeit in der es die noch nicht gab.
Und schließlich, man sollte nie den Reiz einer Herausforderung unterschätzen...