geschild Fortgeschrittener

  • Männlich
  • 68
  • aus Bottrop
  • Mitglied seit 9. November 2018
  • Letzte Aktivität:
Beiträge
259
Erhaltene Reaktionen
50
Punkte
1.440
Profil-Aufrufe
1.489
  • Hi!

    unter Einen Zahlenwert an Alexa übergeben hast du ne schöne anleitung geschrieben, die auch gut funktiniert... die Frage nur: wie muteste du die Blechbüchse mit der du gerade gesprochen hast? (siehe auch Frage dort)

    • Das ganze funktioniert in drei Funktion:


      1) Bisherige Lautstärke speichern

      2) Lautstärke auf 0 setzen

      3) Gespeicherte Lautstärke als aktuelle Lautstärke setzen.


      Leider fängt Alexa an zu erzählen bevor der Befehl wirkt, aber besser als sich ihren ganzen Sermon anzuhören.


      <xml xmlns="https://developers.google.com/blockly/xml">

      <variables>

      <variable id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</variable>

      <variable id="JP}ZTqU|U!oPO[z;E3Lq">alte Lautstärke Küche</variable>

      <variable id="tv^XYT#b.J{u0`h=0@bh">alteLautstärkeGerd</variable>

      <variable id="==Xv9t}(SSBrHn}Z/_Tl">alteLautstärkeTanja</variable>

      </variables>

      <block type="procedures_defnoreturn" id="w=c)jL7P}ip,|L^)-J{b" x="-1112" y="-1687">

      <field name="NAME">alexaLautstaerkeSteuern</field>

      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>

      <statement name="STACK">

      <block type="controls_if" id="^qdufuJAip!;8w/AQV(|">

      <mutation elseif="2"></mutation>

      <value name="IF0">

      <block type="logic_compare" id="UxK2zS1BECP*Au0)T-u%">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="!;ax1^-!+DZ#Ffe%W|IK">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id=".?P-^yFZ~_P7{`/D)vSf">

      <field name="TEXT">G090L91175240D68</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO0">

      <block type="comment" id="e$#{P#!FNVuP!XZB8Kz9">

      <field name="COMMENT">Alexa Küche</field>

      <next>

      <block type="control" id="#nTr-6GJ/n.sDg+_gyw7">

      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>

      <field name="OID">alexa2.0.Echo-Devices.G090L91175240D68.Player.volume</field>

      <field name="WITH_DELAY">FALSE</field>

      <value name="VALUE">

      <block type="math_number" id="ura9Dd5QjSFa:0eiD)xj">

      <field name="NUM">0</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      <value name="IF1">

      <block type="logic_compare" id="qlC!v;}wKxBGxw(1L:WY">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="x#_CT_`7R.Ed-9s]gvhd">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="_8a%3xJiHow;up-VXjmE">

      <field name="TEXT">G090U50783620CXV</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO1">

      <block type="comment" id="25Cd2[Q/N}W.cXGIhf7[">

      <field name="COMMENT">Alexa Gerd</field>

      <next>

      <block type="control" id="DgbI(#`^#cMl2F(7HXmG">

      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>

      <field name="OID">alexa2.0.Echo-Devices.G090U50783620CXV.Player.volume</field>

      <field name="WITH_DELAY">FALSE</field>

      <value name="VALUE">

      <block type="math_number" id="xf3#K?@k3$O{][)yAeB.">

      <field name="NUM">0</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      <value name="IF2">

      <block type="logic_compare" id="~?vT,$#E4+,9{Nga@86/">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="~|Y{V4j@P=$a=@.Xjg:i">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id=")9:Csa3?BC97%ccDK1%;">

      <field name="TEXT">G090LF11743300GQ</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO2">

      <block type="comment" id="E~saOWN=~IZbt_*3G(`|">

      <field name="COMMENT">Alexa Tanja</field>

      <next>

      <block type="control" id="]cTdWiS+bIdt2pJ.pAmd">

      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>

      <field name="OID">alexa2.0.Echo-Devices.G090LF11743300GQ.Player.volume</field>

      <field name="WITH_DELAY">FALSE</field>

      <value name="VALUE">

      <block type="math_number" id="mDDajK_vFz2/LB4y#{CN">

      <field name="NUM">0</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      </block>

      </statement>

      </block>

      <block type="procedures_defnoreturn" id=".%aOh)er}bnX?MR(Wx+T" x="-1112" y="-1312">

      <field name="NAME">alteLautstärkerSpeichern</field>

      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>

      <statement name="STACK">

      <block type="controls_if" id="t,X]3U*iYk$NK!V3;gzz">

      <mutation elseif="2"></mutation>

      <value name="IF0">

      <block type="logic_compare" id="o^M9Y4_W!u[vPA]lBO3_">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="[8Lt%FjgcH1K0!B@fOGw">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="vf[kH]2V[mb}=^a#lqf^">

      <field name="TEXT">G090L91175240D68</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO0">

      <block type="comment" id="R|l/c!/9^Z:SWtg+zv4S">

      <field name="COMMENT">Alexa Küche</field>

      <next>

      <block type="variables_set" id=".-#Ig/=L9Ypkt8{lOz|s">

      <field name="VAR" id="JP}ZTqU|U!oPO[z;E3Lq">alte Lautstärke Küche</field>

      <value name="VALUE">

      <block type="get_value" id="}~:~z4p*4RbOES~s?W,t">

      <field name="ATTR">val</field>

      <field name="OID">alexa2.0.Echo-Devices.G090L91175240D68.Player.volume</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      <value name="IF1">

      <block type="logic_compare" id="#Xo{N)RNB;G=AlhP4J98">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="7S]Pk`=J#{4Ap2s-;7Od">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="4lvp1]qs=y/o]nS45%+t">

      <field name="TEXT">G090U50783620CXV</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO1">

      <block type="comment" id="O=eDx-~Yo^y0ofbV*rG~">

      <field name="COMMENT">Alexa Gerd</field>

      <next>

      <block type="variables_set" id="u.`2{}!Sfkb-gXij2g.u">

      <field name="VAR" id="tv^XYT#b.J{u0`h=0@bh">alteLautstärkeGerd</field>

      <value name="VALUE">

      <block type="get_value" id="k7VVJ:rZR2]6bLUEr_lf">

      <field name="ATTR">val</field>

      <field name="OID">alexa2.0.Echo-Devices.G090U50783620CXV.Player.volume</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      <value name="IF2">

      <block type="logic_compare" id="iwo*fV)}uF$40GwNTgx0">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="6ba2*exw%0bUBeW$I_Li">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="I%lPYmxze0dGme;/J`Md">

      <field name="TEXT">G090LF11743300GQ</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO2">

      <block type="comment" id="_ZQZ5Nw3M6e|wAdgqbPO">

      <field name="COMMENT">Alexa Tanja</field>

      <next>

      <block type="variables_set" id="I6lO3YXL]-EnSGL}ca-s">

      <field name="VAR" id="==Xv9t}(SSBrHn}Z/_Tl">alteLautstärkeTanja</field>

      <value name="VALUE">

      <block type="get_value" id="rn/SL}?%[Rr?OI;}5HK4">

      <field name="ATTR">val</field>

      <field name="OID">alexa2.0.Echo-Devices.G090LF11743300GQ.Player.volume</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      </block>

      </statement>

      </block>

      <block type="procedures_defnoreturn" id="4P[Ji#h2x;98*f+;0Zg5" x="-1112" y="-962">

      <field name="NAME">alexaAlteLautstärkeNach6sek</field>

      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>

      <statement name="STACK">

      <block type="controls_if" id="+Ay#RugyhT#l7fln(d^{">

      <mutation elseif="2"></mutation>

      <value name="IF0">

      <block type="logic_compare" id="!za.43g*M}i1eem+3`VZ">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="YMO_*^3#hJl3jYG@rGE.">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="O[44a2@?j!Yf*av:)W*u">

      <field name="TEXT">G090L91175240D68</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO0">

      <block type="comment" id="Z3]-evwlNOzI%j;Jgez!">

      <field name="COMMENT">Alexa Küche</field>

      <next>

      <block type="control" id="a/(G%!SdMmV===6K)`+1">

      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>

      <field name="OID">alexa2.0.Echo-Devices.G090L91175240D68.Player.volume</field>

      <field name="WITH_DELAY">TRUE</field>

      <field name="DELAY_MS">6000</field>

      <field name="UNIT">ms</field>

      <field name="CLEAR_RUNNING">FALSE</field>

      <value name="VALUE">

      <block type="variables_get" id="?.59;vk[pY|-I5we.26O">

      <field name="VAR" id="JP}ZTqU|U!oPO[z;E3Lq">alte Lautstärke Küche</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      <value name="IF1">

      <block type="logic_compare" id="fYSv^p|FMR;LrX}Y!|TV">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="}8cf^9iX]3m1r$FLQZh{">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="mNvc%r=FKJ7$4Q#)_%g;">

      <field name="TEXT">G090U50783620CXV</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO1">

      <block type="comment" id="P-Lv,9i1Q$T~%[ByA~d}">

      <field name="COMMENT">Alexa Gerd</field>

      <next>

      <block type="control" id="IG9s,C@PmUwL@@[%KUXX">

      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>

      <field name="OID">alexa2.0.Echo-Devices.G090U50783620CXV.Player.volume</field>

      <field name="WITH_DELAY">TRUE</field>

      <field name="DELAY_MS">6000</field>

      <field name="UNIT">ms</field>

      <field name="CLEAR_RUNNING">FALSE</field>

      <value name="VALUE">

      <block type="variables_get" id="!!;AzBAo^SAK=bg:3{#4">

      <field name="VAR" id="tv^XYT#b.J{u0`h=0@bh">alteLautstärkeGerd</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      <value name="IF2">

      <block type="logic_compare" id="Z^;xlkP!r]Z~Z(|Hc4jq">

      <field name="OP">EQ</field>

      <value name="A">

      <block type="variables_get" id="a]r5Eh/C@LY-Sb9#j[6.">

      <field name="VAR" id="T)1~~*)e5l{9DDPjYdl)">ausloesendeAlexa</field>

      </block>

      </value>

      <value name="B">

      <block type="text" id="`=Kz+Ko#Agz8!q~npYkO">

      <field name="TEXT">G090LF11743300GQ</field>

      </block>

      </value>

      </block>

      </value>

      <statement name="DO2">

      <block type="comment" id="#eATtbLq7RRw$.aU-u4f">

      <field name="COMMENT">Alexa Tanja</field>

      <next>

      <block type="control" id="d3}P@IPS-oQ8pRo#-`q(">

      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>

      <field name="OID">alexa2.0.Echo-Devices.G090LF11743300GQ.Player.volume</field>

      <field name="WITH_DELAY">TRUE</field>

      <field name="DELAY_MS">6000</field>

      <field name="UNIT">ms</field>

      <field name="CLEAR_RUNNING">FALSE</field>

      <value name="VALUE">

      <block type="variables_get" id="W=(oQ|)R-{Ym,d1Ryhe]">

      <field name="VAR" id="==Xv9t}(SSBrHn}Z/_Tl">alteLautstärkeTanja</field>

      </block>

      </value>

      </block>

      </next>

      </block>

      </statement>

      </block>

      </statement>

      </block>

      </xml>


      Du kannst mir auch eine Email schreiben und wird können Tel.Nummern austauschen.

    • ich hab für den Befehl einfach eine Routine in der Alexa erstellt, mit welcher nur ein Wort zurückgegeben wird - geht auch ganz gut dann ohne die sonst fälligen Meldungen der Alexa

    • Gute Idee